Changeset 8565a42 in mainline for uspace/lib/crypto/rc4.c


Ignore:
Timestamp:
2018-03-02T20:34:50Z (7 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a81f69, d5e5fd1
Parents:
3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
git-committer:
GitHub <noreply@…> (2018-03-02 20:34:50)
Message:

Remove all trailing whitespace, everywhere.

See individual commit messages for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/crypto/rc4.c

    r3061bc1 r8565a42  
    6565        for (size_t i = 0; i < SBOX_SIZE; i++)
    6666                sbox[i] = i;
    67        
     67
    6868        uint8_t j = 0;
    6969        for (size_t i = 0; i < SBOX_SIZE; i++) {
     
    9393        if ((!key) || (!input))
    9494                return EINVAL;
    95        
     95
    9696        if (!output)
    9797                return ENOMEM;
    98        
     98
    9999        /* Initialize sbox. */
    100100        uint8_t sbox[SBOX_SIZE];
    101101        create_sbox(key, key_size, sbox);
    102        
     102
    103103        /* Skip first x bytes. */
    104104        uint8_t i = 0;
     
    109109                swap(i, j, sbox);
    110110        }
    111        
     111
    112112        /* Processing loop. */
    113113        uint8_t val;
     
    119119                output[k] = val ^ input[k];
    120120        }
    121        
     121
    122122        return EOK;
    123123}
Note: See TracChangeset for help on using the changeset viewer.