aboutsummaryrefslogtreecommitdiff
path: root/util/broadcom/secimage/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/broadcom/secimage/crypto.c')
-rw-r--r--util/broadcom/secimage/crypto.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/util/broadcom/secimage/crypto.c b/util/broadcom/secimage/crypto.c
index c1afbc898d..b7041c994b 100644
--- a/util/broadcom/secimage/crypto.c
+++ b/util/broadcom/secimage/crypto.c
@@ -11,14 +11,12 @@
* GNU General Public License for more details.
*/
-
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "secimage.h"
#include <openssl/hmac.h>
-
/*----------------------------------------------------------------------
* Name : HmacSha256Hash
* Purpose :
@@ -32,8 +30,7 @@ int HmacSha256Hash(uint8_t *data, uint32_t len, uint8_t *hash, uint8_t *key)
HMAC_CTX_init(&hctx);
HMAC_Init_ex(&hctx, key, 32, EVP_sha256(), NULL);
- /*
- * FIXME: why we need this? NULL means to use whatever there is?
+ /* FIXME: why we need this? NULL means to use whatever there is?
* if removed, result is different
*/
HMAC_Init_ex(&hctx, NULL, 0, NULL, NULL);
@@ -44,7 +41,6 @@ int HmacSha256Hash(uint8_t *data, uint32_t len, uint8_t *hash, uint8_t *key)
return 0;
}
-
/*----------------------------------------------------------------------
* Name : AppendHMACSignature
* Purpose : Appends HMAC signature at the end of the data