mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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 <raymond.mao@linaro.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user