Home | History | Annotate | Download | only in kdfs

Lines Matching defs:hmac

11  * HMAC low level APIs are deprecated for public use, but still ok for internal
19 #include <openssl/hmac.h>
430 * Refer to "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)"
444 * k is the output length in bits of the hash function used with HMAC
482 * Refer to "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)"
503 * PRK = HMAC-Hash(salt, IKM)
518 /* calc: PRK = HMAC-Hash(salt, IKM) */
519 return EVP_Q_mac(libctx, "HMAC", NULL, EVP_MD_get0_name(evp_md), NULL, salt,
525 HMAC-based Extract-and-Expand Key Derivation Function (HKDF)"
555 * T(1) = HMAC-Hash(PRK, T(0) | info | 0x01)
556 * T(2) = HMAC-Hash(PRK, T(1) | info | 0x02)
557 * T(3) = HMAC-Hash(PRK, T(2) | info | 0x03)
568 HMAC_CTX *hmac;
587 if ((hmac = HMAC_CTX_new()) == NULL)
590 if (!HMAC_Init_ex(hmac, prk, prk_len, evp_md, NULL))
597 /* calc: T(i) = HMAC-Hash(PRK, T(i - 1) | info | i) */
599 if (!HMAC_Init_ex(hmac, NULL, 0, NULL, NULL))
602 if (!HMAC_Update(hmac, prev, dig_len))
606 if (!HMAC_Update(hmac, info, info_len))
609 if (!HMAC_Update(hmac, &ctr, 1))
612 if (!HMAC_Final(hmac, prev, NULL))
625 HMAC_CTX_free(hmac);