Lines Matching defs:hmac
21 #include <openssl/hmac.h>
47 /* If salt is not given, HashLength zeros are used. However, HMAC does that
50 if (HMAC(digest, salt, salt_len, secret, secret_len, out_key, &len) == NULL) {
68 HMAC_CTX hmac;
77 HMAC_CTX_init(&hmac);
78 if (!HMAC_Init_ex(&hmac, prk, prk_len, digest, NULL)) {
86 if (i != 0 && (!HMAC_Init_ex(&hmac, NULL, 0, NULL, NULL) ||
87 !HMAC_Update(&hmac, previous, digest_len))) {
90 if (!HMAC_Update(&hmac, info, info_len) ||
91 !HMAC_Update(&hmac, &ctr, 1) ||
92 !HMAC_Final(&hmac, previous, NULL)) {
107 HMAC_CTX_cleanup(&hmac);