• Home
  • Raw
  • Download

Lines Matching refs:hctx

434     OSSL_HMAC_PKEY_CTX *hctx;  in ossl_hmac_init()  local
436 if ((hctx = OPENSSL_zalloc(sizeof(*hctx))) == NULL) { in ossl_hmac_init()
440 hctx->ktmp.type = V_ASN1_OCTET_STRING; in ossl_hmac_init()
441 hctx->ctx = HMAC_CTX_new(); in ossl_hmac_init()
442 if (hctx->ctx == NULL) { in ossl_hmac_init()
443 OPENSSL_free(hctx); in ossl_hmac_init()
446 EVP_PKEY_CTX_set_data(ctx, hctx); in ossl_hmac_init()
482 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); in ossl_hmac_cleanup() local
484 if (hctx) { in ossl_hmac_cleanup()
485 HMAC_CTX_free(hctx->ctx); in ossl_hmac_cleanup()
486 OPENSSL_clear_free(hctx->ktmp.data, hctx->ktmp.length); in ossl_hmac_cleanup()
487 OPENSSL_free(hctx); in ossl_hmac_cleanup()
495 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); in ossl_hmac_keygen() local
496 if (!hctx->ktmp.data) in ossl_hmac_keygen()
498 hkey = ASN1_OCTET_STRING_dup(&hctx->ktmp); in ossl_hmac_keygen()
508 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(EVP_MD_CTX_pkey_ctx(ctx)); in ossl_int_update() local
509 if (!HMAC_Update(hctx->ctx, data, count)) in ossl_int_update()
525 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); in ossl_hmac_signctx() local
534 if (!HMAC_Final(hctx->ctx, sig, &hlen)) in ossl_hmac_signctx()
542 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); in ossl_hmac_ctrl() local
550 if (!ASN1_OCTET_STRING_set(&hctx->ktmp, p2, p1)) in ossl_hmac_ctrl()
555 hctx->md = p2; in ossl_hmac_ctrl()
561 if (!HMAC_Init_ex(hctx->ctx, key->data, key->length, hctx->md, NULL)) in ossl_hmac_ctrl()