diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 21:06:09 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 21:06:09 +0200 |
commit | 9855a34f48acf6ae3aaeba9ec37756da41507e64 (patch) | |
tree | a02c2a507b3d536182d81e78b878b6b29c617cb9 /src/hkdf_sha256.c | |
parent | 1ae3aae35193dce25e5534b12a46011ec7912bb4 (diff) | |
download | fastd-9855a34f48acf6ae3aaeba9ec37756da41507e64.tar fastd-9855a34f48acf6ae3aaeba9ec37756da41507e64.zip |
Coding style: always add a space between a pointer's type and the *
Diffstat (limited to 'src/hkdf_sha256.c')
-rw-r--r-- | src/hkdf_sha256.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hkdf_sha256.c b/src/hkdf_sha256.c index f521f41..3a7d9ad 100644 --- a/src/hkdf_sha256.c +++ b/src/hkdf_sha256.c @@ -45,14 +45,14 @@ void fastd_hkdf_sha256_expand(fastd_sha256_t *out, size_t blocks, const fastd_sh memset(buf, 0, FASTD_SHA256_HASH_BYTES); memcpy(buf+FASTD_SHA256_HASH_WORDS, info, infolen); - ((uint8_t*)buf)[len-1] = 0x01; + ((uint8_t *)buf)[len-1] = 0x01; fastd_hmacsha256(out, prk->w, buf+FASTD_SHA256_HASH_WORDS, infolen + 1); while (--blocks) { memcpy(buf, out, FASTD_SHA256_HASH_BYTES); out++; - ((uint8_t*)buf)[len-1]++; + ((uint8_t *)buf)[len-1]++; fastd_hmacsha256(out, prk->w, buf, len); } |