Lines Matching refs:hmac
290 HMAC_CTX *hmac = NULL; in ossl_rsa_prf() local
303 hmac = HMAC_CTX_new(); in ossl_rsa_prf()
304 if (hmac == NULL) { in ossl_rsa_prf()
322 if (HMAC_Init_ex(hmac, kdk, SHA256_DIGEST_LENGTH, md, NULL) <= 0) { in ossl_rsa_prf()
328 if (HMAC_Init_ex(hmac, NULL, 0, NULL, NULL) <= 0) { in ossl_rsa_prf()
336 if (HMAC_Update(hmac, be_iter, sizeof(be_iter)) <= 0) { in ossl_rsa_prf()
340 if (HMAC_Update(hmac, (unsigned char *)label, llen) <= 0) { in ossl_rsa_prf()
344 if (HMAC_Update(hmac, be_bitlen, sizeof(be_bitlen)) <= 0) { in ossl_rsa_prf()
356 if (HMAC_Final(hmac, hmac_out, &md_len) <= 0) { in ossl_rsa_prf()
362 if (HMAC_Final(hmac, to + pos, &md_len) <= 0) { in ossl_rsa_prf()
372 HMAC_CTX_free(hmac); in ossl_rsa_prf()