Lines Matching defs:hmac
27 #include <wolfssl/wolfcrypt/hmac.h>
379 Hmac hmac;
389 err = wc_HmacInit(&hmac, NULL, INVALID_DEVID);
395 err = wc_HmacSetKey(&hmac, type, key, (word32) key_len);
402 err = wc_HmacUpdate(&hmac, addr[i], len[i]);
408 err = wc_HmacFinal(&hmac, mac);
416 wc_HmacFree(&hmac);
1173 Hmac hmac;
1214 if (wc_HmacInit(&hash->hmac, NULL, INVALID_DEVID) != 0 ||
1215 wc_HmacSetKey(&hash->hmac, type, key, key_len) != 0)
1230 wc_HmacUpdate(&ctx->hmac, data, len);
1244 if (wc_HmacFinal(&ctx->hmac, mac) != 0) {