summaryrefslogtreecommitdiff
path: root/include/sha256.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-06-10 10:44:46 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-06-14 05:59:37 -0700
commitc5b31e3868079b50d3f0db72632271d2b1eedea8 (patch)
tree1fa198885df7630128e6735d0ea613ee9de122ce /include/sha256.h
parent98dc270b23ae2fc931ffb4960dd1c2127fed4c8f (diff)
downloadchrome-ec-c5b31e3868079b50d3f0db72632271d2b1eedea8.tar.gz
sha256: add support for hmac_sha256, and add test for sha256
BRANCH=none BUG=b:38486828 TEST=make run-sha256 TEST=make buildall -j Change-Id: I4c5b5d81ae5650ebfbdc989a0d860eeb0a60f68b Reviewed-on: https://chromium-review.googlesource.com/530207 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/sha256.h')
-rw-r--r--include/sha256.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sha256.h b/include/sha256.h
index 11260f9351..8fbb19dea2 100644
--- a/include/sha256.h
+++ b/include/sha256.h
@@ -26,4 +26,7 @@ void SHA256_init(struct sha256_ctx *ctx);
void SHA256_update(struct sha256_ctx *ctx, const uint8_t *data, uint32_t len);
uint8_t *SHA256_final(struct sha256_ctx *ctx);
+void hmac_SHA256(uint8_t *output, const uint8_t *key, const int key_len,
+ const uint8_t *message, const int message_len);
+
#endif /* __CROS_EC_SHA256_H */