39 #if defined(HMAC_ALG_NAME)
41 #define HMAC_CONCAT_INNER(name,suffix) name##suffix
42 #define HMAC_CONCAT(name,suffix) HMAC_CONCAT_INNER(name,suffix)
45 #define HMAC_IPAD 0x36
48 #define HMAC_OPAD 0x5C
59 (
unsigned char *out,
const unsigned char *in,
60 size_t size,
unsigned char pad)
91 while (posn < keylen) {
95 HMAC_CONCAT(
HMAC_ALG_NAME,_xor_pad)(temp, key + posn, len, pad);
110 memset(temp, pad,
sizeof(temp));
125 const unsigned char *key,
size_t keylen,
126 const unsigned char *in,
size_t inlen)
180 #undef HMAC_HASH_SIZE
181 #undef HMAC_BLOCK_SIZE
183 #undef HMAC_HASH_INIT
184 #undef HMAC_HASH_REINIT
185 #undef HMAC_HASH_UPDATE
186 #undef HMAC_HASH_FINALIZE
187 #undef HMAC_CONCAT_INNER
#define HMAC_HASH_FINALIZE
ascon_state_t state
[snippet_key]
void ascon_clean(void *buf, unsigned size)
Cleans a buffer that contains sensitive material.