Go to the documentation of this file.
39 #ifndef HMAC_PRIVATE_CONTEXT
40 #define HMAC_PRIVATE_CONTEXT
44 #define HMAC_IPAD 0x36
46 #define HMAC_OPAD 0x5C
90 const void *key,
size_t keyLen);
void hmacFinalRaw(HmacContext *context, uint8_t *digest)
Finish the HMAC calculation (no padding added)
const uint8_t HMAC_WITH_SHA512_224_OID[8]
const uint8_t HMAC_WITH_RIPEMD160_OID[8]
Generic hash algorithm context.
const uint8_t HMAC_WITH_SHA384_OID[8]
error_t hmacInit(HmacContext *context, const HashAlgo *hash, const void *key, size_t keyLen)
Initialize HMAC calculation.
const uint8_t HMAC_WITH_SHA512_256_OID[8]
const uint8_t HMAC_WITH_SHA224_OID[8]
#define HMAC_PRIVATE_CONTEXT
#define MAX_HASH_DIGEST_SIZE
const uint8_t HMAC_WITH_SHA3_224_OID[9]
#define MAX_HASH_BLOCK_SIZE
General definitions for cryptographic algorithms.
error_t hmacCompute(const HashAlgo *hash, const void *key, size_t keyLen, const void *data, size_t dataLen, uint8_t *digest)
Compute HMAC using the specified hash function.
void hmacUpdate(HmacContext *context, const void *data, size_t length)
Update the HMAC context with a portion of the message being hashed.
const uint8_t HMAC_WITH_SHA1_OID[8]
Collection of hash algorithms.
const uint8_t HMAC_WITH_TIGER_OID[8]
void hmacDeinit(HmacContext *context)
Release HMAC context.
const uint8_t HMAC_WITH_SHA3_384_OID[9]
const uint8_t HMAC_WITH_SHA3_512_OID[9]
const uint8_t HMAC_WITH_SHA512_OID[8]
const uint8_t HMAC_WITH_SM3_OID[10]
void hmacFinal(HmacContext *context, uint8_t *digest)
Finish the HMAC calculation.
const uint8_t HMAC_WITH_MD5_OID[8]
const uint8_t HMAC_WITH_SHA256_OID[8]
Common interface for hash algorithms.
const uint8_t HMAC_WITH_SHA3_256_OID[9]