mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-31 07:26:28 +08:00
feat(util): support SHA224/SHA384 calculation although call sha256/sha512 APIs
This commit is contained in:
@ -31,12 +31,16 @@ typedef struct {
|
||||
uint32_t total[2];
|
||||
uint32_t state[8];
|
||||
uint8_t buffer[64];
|
||||
|
||||
int is224;
|
||||
} esp_sha256_t;
|
||||
|
||||
typedef struct {
|
||||
uint64_t total[2];
|
||||
uint64_t state[8];
|
||||
uint8_t buffer[128];
|
||||
|
||||
int is384;
|
||||
} esp_sha512_t;
|
||||
|
||||
typedef esp_sha256_t esp_sha224_t;
|
||||
|
Reference in New Issue
Block a user