summaryrefslogtreecommitdiffstats
path: root/src/hkdf_sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hkdf_sha256.c')
-rw-r--r--src/hkdf_sha256.c4
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);
}