summaryrefslogtreecommitdiff
path: root/include/u-boot
diff options
context:
space:
mode:
authorRaymond Mao <[email protected]>2024-10-03 14:50:19 -0700
committerTom Rini <[email protected]>2024-10-14 17:58:31 -0600
commitbdc3f44a6bf4de61d99c818b3e8e71b07a9eea52 (patch)
treeeea6e753771c0f31203026663bc22b5fe4d514cb /include/u-boot
parent988e749d9770bad0a8d8fbf45bfa8af3ca88da38 (diff)
mbedtls: add digest shim layer for MbedTLS
Implement digest shim layer on top of MbedTLS crypto library. Introduce <alg>_MBEDTLS kconfig for MbedTLS crypto implementations. Signed-off-by: Raymond Mao <[email protected]>
Diffstat (limited to 'include/u-boot')
-rw-r--r--include/u-boot/sha1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/u-boot/sha1.h b/include/u-boot/sha1.h
index 36c3db15e22..2fca7f1be16 100644
--- a/include/u-boot/sha1.h
+++ b/include/u-boot/sha1.h
@@ -41,6 +41,10 @@ extern "C" {
#define SHA1_DEF_CHUNK_SZ 0x10000
+#define K_IPAD_VAL 0x36
+#define K_OPAD_VAL 0x5C
+#define K_PAD_LEN 64
+
extern const uint8_t sha1_der_prefix[];
#if defined(CONFIG_MBEDTLS_LIB_CRYPTO)