Home
last modified time | relevance | path

Searched refs:hctx (Results 1 – 14 of 14) sorted by relevance

/third_party/openssl/crypto/hmac/
Dhm_pmeth.c29 HMAC_PKEY_CTX *hctx; in pkey_hmac_init() local
31 if ((hctx = OPENSSL_zalloc(sizeof(*hctx))) == NULL) { in pkey_hmac_init()
35 hctx->ktmp.type = V_ASN1_OCTET_STRING; in pkey_hmac_init()
36 hctx->ctx = HMAC_CTX_new(); in pkey_hmac_init()
37 if (hctx->ctx == NULL) { in pkey_hmac_init()
38 OPENSSL_free(hctx); in pkey_hmac_init()
42 ctx->data = hctx; in pkey_hmac_init()
76 HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); in pkey_hmac_cleanup() local
78 if (hctx != NULL) { in pkey_hmac_cleanup()
79 HMAC_CTX_free(hctx->ctx); in pkey_hmac_cleanup()
[all …]
/third_party/openssl/crypto/engine/
Deng_openssl.c434 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()
[all …]
/third_party/openssl/crypto/evp/
Dp5_crpt2.c39 HMAC_CTX *hctx_tpl = NULL, *hctx = NULL; in PKCS5_PBKDF2_HMAC() local
60 hctx = HMAC_CTX_new(); in PKCS5_PBKDF2_HMAC()
61 if (hctx == NULL) { in PKCS5_PBKDF2_HMAC()
78 if (!HMAC_CTX_copy(hctx, hctx_tpl)) { in PKCS5_PBKDF2_HMAC()
79 HMAC_CTX_free(hctx); in PKCS5_PBKDF2_HMAC()
83 if (!HMAC_Update(hctx, salt, saltlen) in PKCS5_PBKDF2_HMAC()
84 || !HMAC_Update(hctx, itmp, 4) in PKCS5_PBKDF2_HMAC()
85 || !HMAC_Final(hctx, digtmp, NULL)) { in PKCS5_PBKDF2_HMAC()
86 HMAC_CTX_free(hctx); in PKCS5_PBKDF2_HMAC()
92 if (!HMAC_CTX_copy(hctx, hctx_tpl)) { in PKCS5_PBKDF2_HMAC()
[all …]
/third_party/openssl/doc/man3/
DSSL_CTX_set_tlsext_ticket_key_cb.pod14 EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc));
40 Before the callback function is started I<ctx> and I<hctx> have been
47 I<iv>, and set the cipher context I<ctx> and the hash context I<hctx>.
65 I<iv>. using a function like L<EVP_DecryptInit_ex(3)>. The I<hctx> needs to be
79 This indicates that the I<ctx> and I<hctx> have been set and the session can
87 This indicates that the I<ctx> and I<hctx> have been set and the session can
137 HMAC_CTX *hctx, int enc)
160 HMAC_Init_ex(&hctx, key->hmac_key, 32, EVP_sha256(), NULL);
171 HMAC_Init_ex(&hctx, key->hmac_key, 32, EVP_sha256(), NULL);
/third_party/openssl/ssl/statem/
Dextensions_srvr.c736 EVP_MD_CTX *hctx; in tls_parse_ctos_cookie() local
769 hctx = EVP_MD_CTX_create(); in tls_parse_ctos_cookie()
774 if (hctx == NULL || pkey == NULL) { in tls_parse_ctos_cookie()
775 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
783 if (EVP_DigestSignInit(hctx, NULL, EVP_sha256(), NULL, pkey) <= 0 in tls_parse_ctos_cookie()
784 || EVP_DigestSign(hctx, hmac, &hmaclen, data, in tls_parse_ctos_cookie()
787 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
794 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
1778 EVP_MD_CTX *hctx; in tls_construct_stoc_cookie() local
1858 hctx = EVP_MD_CTX_create(); in tls_construct_stoc_cookie()
[all …]
Dstatem_srvr.c3861 HMAC_CTX *hctx = NULL; in construct_stateless_ticket() local
3892 hctx = HMAC_CTX_new(); in construct_stateless_ticket()
3893 if (ctx == NULL || hctx == NULL) { in construct_stateless_ticket()
3941 hctx, 1); in construct_stateless_ticket()
3955 HMAC_CTX_free(hctx); in construct_stateless_ticket()
3971 || !HMAC_Init_ex(hctx, tctx->ext.secure->tick_hmac_key, in construct_stateless_ticket()
4003 || !HMAC_Update(hctx, in construct_stateless_ticket()
4007 || !HMAC_Final(hctx, macdata1, &hlen) in construct_stateless_ticket()
4027 HMAC_CTX_free(hctx); in construct_stateless_ticket()
/third_party/openssl/ssl/
Dt1_lib.c1367 HMAC_CTX *hctx = NULL; in tls_decrypt_ticket() local
1397 hctx = HMAC_CTX_new(); in tls_decrypt_ticket()
1398 if (hctx == NULL) { in tls_decrypt_ticket()
1411 ctx, hctx, 0); in tls_decrypt_ticket()
1429 if (HMAC_Init_ex(hctx, tctx->ext.secure->tick_hmac_key, in tls_decrypt_ticket()
1445 mlen = HMAC_size(hctx); in tls_decrypt_ticket()
1459 if (HMAC_Update(hctx, etick, eticklen) <= 0 in tls_decrypt_ticket()
1460 || HMAC_Final(hctx, tick_hmac, NULL) <= 0) { in tls_decrypt_ticket()
1523 HMAC_CTX_free(hctx); in tls_decrypt_ticket()
Dssl_local.h935 EVP_CIPHER_CTX *ectx, HMAC_CTX *hctx, int enc);
/third_party/openssl/apps/
Dspeed.c628 HMAC_CTX *hctx; member
706 HMAC_CTX *hctx = tempargs->hctx; in HMAC_loop() local
711 HMAC_Init_ex(hctx, NULL, 0, NULL, NULL); in HMAC_loop()
712 HMAC_Update(hctx, buf, lengths[testnum]); in HMAC_loop()
713 HMAC_Final(hctx, hmac, NULL); in HMAC_loop()
2207 loopargs[i].hctx = HMAC_CTX_new(); in speed_main()
2208 if (loopargs[i].hctx == NULL) { in speed_main()
2213 HMAC_Init_ex(loopargs[i].hctx, hmac_key, len, EVP_md5(), NULL); in speed_main()
2224 HMAC_CTX_free(loopargs[i].hctx); in speed_main()
/third_party/node/src/
Dnode_crypto.h172 HMAC_CTX* hctx,
179 HMAC_CTX* hctx,
Dnode_crypto.cc1590 HMAC_CTX* hctx, in TicketKeyCallback() argument
1649 HMAC_Init_ex(hctx, in TicketKeyCallback()
1678 HMAC_CTX* hctx, in TicketCompatibilityCallback() argument
1688 HMAC_Init_ex(hctx, sc->ticket_key_hmac_, sizeof(sc->ticket_key_hmac_), in TicketCompatibilityCallback()
1702 HMAC_Init_ex(hctx, sc->ticket_key_hmac_, sizeof(sc->ticket_key_hmac_), in TicketCompatibilityCallback()
/third_party/nghttp2/src/
Dshrpx_tls.cc477 EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc) { in ticket_key_cb() argument
510 HMAC_Init_ex(hctx, key.data.hmac_key.data(), key.hmac_keylen, key.hmac, in ticket_key_cb()
538 HMAC_Init_ex(hctx, key.data.hmac_key.data(), key.hmac_keylen, key.hmac, in ticket_key_cb()
/third_party/openssl/test/
Dhandshake_helper.c321 EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc) in broken_session_ticket_cb() argument
329 HMAC_CTX *hctx, int enc) in do_not_call_session_ticket_cb() argument
Dsslapitest.c5724 HMAC_CTX *hctx, int enc) in tick_key_cb() argument
5733 || !HMAC_Init_ex(hctx, tick_hmac_key, sizeof(tick_hmac_key), in tick_key_cb()