summaryrefslogtreecommitdiffhomepage
path: root/libtomcrypt/src/mac/hmac/hmac_init.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-06-10 23:01:33 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-06-10 23:01:33 +0800
commit615885be01188e433cf931e2f7f85394fdc31c5d (patch)
treefae717f5964faafb98d6469a963f084f7d31622e /libtomcrypt/src/mac/hmac/hmac_init.c
parent6b823d617c8e2999767ad00232652b234a1048bc (diff)
Fix whitespace changes vs upstream libtomcrypt
Diffstat (limited to 'libtomcrypt/src/mac/hmac/hmac_init.c')
-rw-r--r--libtomcrypt/src/mac/hmac/hmac_init.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libtomcrypt/src/mac/hmac/hmac_init.c b/libtomcrypt/src/mac/hmac/hmac_init.c
index 57eca7b..c8b6a2e 100644
--- a/libtomcrypt/src/mac/hmac/hmac_init.c
+++ b/libtomcrypt/src/mac/hmac/hmac_init.c
@@ -20,7 +20,7 @@
/**
Initialize an HMAC context.
@param hmac The HMAC state
- @param hash The index of the hash you want to use
+ @param hash The index of the hash you want to use
@param key The secret key
@param keylen The length of the secret key (octets)
@return CRYPT_OK if successful
@@ -64,9 +64,9 @@ int hmac_init(hmac_state *hmac, int hash, const unsigned char *key, unsigned lon
XMEMCPY(hmac->key, key, (size_t)keylen);
}
- if(keylen < LTC_HMAC_BLOCKSIZE) {
- zeromem((hmac->key) + keylen, (size_t)(LTC_HMAC_BLOCKSIZE - keylen));
- }
+ if(keylen < LTC_HMAC_BLOCKSIZE) {
+ zeromem((hmac->key) + keylen, (size_t)(LTC_HMAC_BLOCKSIZE - keylen));
+ }
/* Create the initialization vector for step (3) */
for(i=0; i < LTC_HMAC_BLOCKSIZE; i++) {
@@ -89,8 +89,8 @@ done:
#ifdef LTC_CLEAN_STACK
zeromem(buf, LTC_HMAC_BLOCKSIZE);
#endif
-
- return err;
+
+ return err;
}
#endif