20 #define SHA1_STATESIZE 20
21 #define SHA1_BLOCKSIZE 64
25 #define crypto_sha1_context_t ESP_SHA1_CTX
26 #define crypto_sha1_init ESP_SHA1_Init
27 #define crypto_sha1_update ESP_SHA1_Update
28 #define crypto_sha1_final ESP_SHA1_Final
51 ESP_hmac_sha1_v(
key, key_len, 1, &msg, &msg_len, digest);
56 ESP_hmac_sha1_v(
key, key_len, count, msg, msg_len, digest);
65 crypto_sha1_hmac_v(&msg, &msg_len, 1,
key, key_len, digest);