SHA: add HAL layer and refactor driver

Add a LL and HAL layer for SHA.
This commit is contained in:
Marius Vikhammer
2020-08-13 16:30:59 +08:00
committed by bot
parent a587cd1774
commit 949fb8e63a
42 changed files with 1752 additions and 2166 deletions

View File

@@ -24,6 +24,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
@@ -44,7 +45,7 @@ enum SHA_TYPE {
SHA_INVALID = -1,
};
/* Do not use these function in multi core mode due to
/* Do not use these function in multi core mode due to
* inside they have no safe implementation (without DPORT workaround).
*/
void ets_sha_init(SHA_CTX *ctx);