summaryrefslogtreecommitdiff
path: root/util/broadcom/secimage/crypto.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2015-08-06 16:55:09 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-08-09 12:34:15 +0200
commit9dd8f888418e75debb767fa799e5a4ce2b924bf6 (patch)
tree7eb0d3459f3dead94c0d308cdb0fa9aeae10f6cc /util/broadcom/secimage/crypto.c
parent133108af2550ae3f6dc6eda14c03d2e195b81240 (diff)
secimage: reformat
Change-Id: Ibfa8b6b60b2b39212cef27bb2a5f8849218164bb Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/11133 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
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