/third_party/node/deps/openssl/openssl/crypto/engine/ |
H A D | eng_openssl.c | 451 OSSL_HMAC_PKEY_CTX *hctx; in ossl_hmac_init() local 453 if ((hctx = OPENSSL_zalloc(sizeof(*hctx))) == NULL) { in ossl_hmac_init() 457 hctx->ktmp.type = V_ASN1_OCTET_STRING; in ossl_hmac_init() 458 hctx->ctx = HMAC_CTX_new(); in ossl_hmac_init() 459 if (hctx->ctx == NULL) { in ossl_hmac_init() 460 OPENSSL_free(hctx); in ossl_hmac_init() 463 EVP_PKEY_CTX_set_data(ctx, hctx); in ossl_hmac_init() 499 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); in ossl_hmac_cleanup() local 501 if (hctx) { in ossl_hmac_cleanup() 512 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); ossl_hmac_keygen() local 525 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(EVP_MD_CTX_get_pkey_ctx(ctx)); ossl_int_update() local 542 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); ossl_hmac_signctx() local 559 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); ossl_hmac_ctrl() local [all...] |
/third_party/openssl/crypto/engine/ |
H A D | eng_openssl.c | 451 OSSL_HMAC_PKEY_CTX *hctx; in ossl_hmac_init() local 453 if ((hctx = OPENSSL_zalloc(sizeof(*hctx))) == NULL) { in ossl_hmac_init() 457 hctx->ktmp.type = V_ASN1_OCTET_STRING; in ossl_hmac_init() 458 hctx->ctx = HMAC_CTX_new(); in ossl_hmac_init() 459 if (hctx->ctx == NULL) { in ossl_hmac_init() 460 OPENSSL_free(hctx); in ossl_hmac_init() 463 EVP_PKEY_CTX_set_data(ctx, hctx); in ossl_hmac_init() 499 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); in ossl_hmac_cleanup() local 501 if (hctx) { in ossl_hmac_cleanup() 512 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); ossl_hmac_keygen() local 525 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(EVP_MD_CTX_get_pkey_ctx(ctx)); ossl_int_update() local 542 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); ossl_hmac_signctx() local 559 OSSL_HMAC_PKEY_CTX *hctx = EVP_PKEY_CTX_get_data(ctx); ossl_hmac_ctrl() local [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/ |
H A D | pbkdf2.c | 284 HMAC_CTX *hctx_tpl = NULL, *hctx = NULL; in pbkdf2_derive() local 321 hctx = HMAC_CTX_new(); in pbkdf2_derive() 322 if (hctx == NULL) in pbkdf2_derive() 337 if (!HMAC_CTX_copy(hctx, hctx_tpl)) in pbkdf2_derive() 339 if (!HMAC_Update(hctx, salt, saltlen) in pbkdf2_derive() 340 || !HMAC_Update(hctx, itmp, 4) in pbkdf2_derive() 341 || !HMAC_Final(hctx, digtmp, NULL)) in pbkdf2_derive() 345 if (!HMAC_CTX_copy(hctx, hctx_tpl)) in pbkdf2_derive() 347 if (!HMAC_Update(hctx, digtmp, mdlen) in pbkdf2_derive() 348 || !HMAC_Final(hctx, digtm in pbkdf2_derive() [all...] |
/third_party/openssl/providers/implementations/kdfs/ |
H A D | pbkdf2.c | 284 HMAC_CTX *hctx_tpl = NULL, *hctx = NULL; in pbkdf2_derive() local 321 hctx = HMAC_CTX_new(); in pbkdf2_derive() 322 if (hctx == NULL) in pbkdf2_derive() 337 if (!HMAC_CTX_copy(hctx, hctx_tpl)) in pbkdf2_derive() 339 if (!HMAC_Update(hctx, salt, saltlen) in pbkdf2_derive() 340 || !HMAC_Update(hctx, itmp, 4) in pbkdf2_derive() 341 || !HMAC_Final(hctx, digtmp, NULL)) in pbkdf2_derive() 345 if (!HMAC_CTX_copy(hctx, hctx_tpl)) in pbkdf2_derive() 347 if (!HMAC_Update(hctx, digtmp, mdlen) in pbkdf2_derive() 348 || !HMAC_Final(hctx, digtm in pbkdf2_derive() [all...] |
/third_party/node/deps/openssl/openssl/ssl/statem/ |
H A D | extensions_srvr.c | 692 EVP_MD_CTX *hctx; in tls_parse_ctos_cookie() local 723 hctx = EVP_MD_CTX_create(); in tls_parse_ctos_cookie() 728 if (hctx == NULL || pkey == NULL) { in tls_parse_ctos_cookie() 729 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie() 736 if (EVP_DigestSignInit_ex(hctx, NULL, "SHA2-256", s->ctx->libctx, in tls_parse_ctos_cookie() 738 || EVP_DigestSign(hctx, hmac, &hmaclen, data, in tls_parse_ctos_cookie() 741 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie() 747 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie() 1760 EVP_MD_CTX *hctx; in tls_construct_stoc_cookie() local 1834 hctx in tls_construct_stoc_cookie() [all...] |
H A D | statem_srvr.c | 3692 SSL_HMAC *hctx = NULL; in construct_stateless_ticket() local 3721 hctx = ssl_hmac_new(tctx); in construct_stateless_ticket() 3722 if (ctx == NULL || hctx == NULL) { in construct_stateless_ticket() 3772 ssl_hmac_get0_EVP_MAC_CTX(hctx), in construct_stateless_ticket() 3778 ssl_hmac_get0_HMAC_CTX(hctx), 1); in construct_stateless_ticket() 3799 ssl_hmac_free(hctx); in construct_stateless_ticket() 3826 || !ssl_hmac_init(hctx, tctx->ext.secure->tick_hmac_key, in construct_stateless_ticket() 3859 || !ssl_hmac_update(hctx, in construct_stateless_ticket() 3863 || !ssl_hmac_final(hctx, macdata1, &hlen, EVP_MAX_MD_SIZE) in construct_stateless_ticket() 3881 ssl_hmac_free(hctx); in construct_stateless_ticket() [all...] |
/third_party/openssl/ssl/statem/ |
H A D | extensions_srvr.c | 692 EVP_MD_CTX *hctx; in tls_parse_ctos_cookie() local 723 hctx = EVP_MD_CTX_create(); in tls_parse_ctos_cookie() 728 if (hctx == NULL || pkey == NULL) { in tls_parse_ctos_cookie() 729 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie() 736 if (EVP_DigestSignInit_ex(hctx, NULL, "SHA2-256", s->ctx->libctx, in tls_parse_ctos_cookie() 738 || EVP_DigestSign(hctx, hmac, &hmaclen, data, in tls_parse_ctos_cookie() 741 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie() 747 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie() 1727 EVP_MD_CTX *hctx; in tls_construct_stoc_cookie() local 1801 hctx in tls_construct_stoc_cookie() [all...] |
H A D | statem_srvr.c | 3671 SSL_HMAC *hctx = NULL; in construct_stateless_ticket() local 3700 hctx = ssl_hmac_new(tctx); in construct_stateless_ticket() 3701 if (ctx == NULL || hctx == NULL) { in construct_stateless_ticket() 3751 ssl_hmac_get0_EVP_MAC_CTX(hctx), in construct_stateless_ticket() 3757 ssl_hmac_get0_HMAC_CTX(hctx), 1); in construct_stateless_ticket() 3778 ssl_hmac_free(hctx); in construct_stateless_ticket() 3805 || !ssl_hmac_init(hctx, tctx->ext.secure->tick_hmac_key, in construct_stateless_ticket() 3838 || !ssl_hmac_update(hctx, in construct_stateless_ticket() 3842 || !ssl_hmac_final(hctx, macdata1, &hlen, EVP_MAX_MD_SIZE) in construct_stateless_ticket() 3860 ssl_hmac_free(hctx); in construct_stateless_ticket() [all...] |
/third_party/node/src/crypto/ |
H A D | crypto_context.h | 129 HMAC_CTX* hctx, 136 HMAC_CTX* hctx,
|
H A D | crypto_context.cc | 1169 HMAC_CTX* hctx, in TicketKeyCallback() 1242 HMAC_Init_ex(hctx, in TicketKeyCallback() 1270 HMAC_CTX* hctx, in TicketCompatibilityCallback() 1280 HMAC_Init_ex(hctx, in TicketCompatibilityCallback() 1297 HMAC_Init_ex(hctx, sc->ticket_key_hmac_, sizeof(sc->ticket_key_hmac_), in TicketCompatibilityCallback() 1165 TicketKeyCallback(SSL* ssl, unsigned char* name, unsigned char* iv, EVP_CIPHER_CTX* ectx, HMAC_CTX* hctx, int enc) TicketKeyCallback() argument 1266 TicketCompatibilityCallback(SSL* ssl, unsigned char* name, unsigned char* iv, EVP_CIPHER_CTX* ectx, HMAC_CTX* hctx, int enc) TicketCompatibilityCallback() argument
|
/third_party/node/deps/openssl/openssl/ssl/ |
H A D | t1_lib.c | 1814 SSL_HMAC *hctx = NULL; in tls_decrypt_ticket() local 1844 hctx = ssl_hmac_new(tctx); in tls_decrypt_ticket() 1845 if (hctx == NULL) { in tls_decrypt_ticket() 1867 ssl_hmac_get0_EVP_MAC_CTX(hctx), in tls_decrypt_ticket() 1874 ctx, ssl_hmac_get0_HMAC_CTX(hctx), 0); in tls_decrypt_ticket() 1899 || ssl_hmac_init(hctx, tctx->ext.secure->tick_hmac_key, in tls_decrypt_ticket() 1917 mlen = ssl_hmac_size(hctx); in tls_decrypt_ticket() 1936 if (ssl_hmac_update(hctx, etick, eticklen) <= 0 in tls_decrypt_ticket() 1937 || ssl_hmac_final(hctx, tick_hmac, NULL, sizeof(tick_hmac)) <= 0) { in tls_decrypt_ticket() 2000 ssl_hmac_free(hctx); in tls_decrypt_ticket() [all...] |
H A D | ssl_local.h | 1056 EVP_CIPHER_CTX *ectx, HMAC_CTX *hctx, int enc); 1060 EVP_CIPHER_CTX *ectx, EVP_MAC_CTX *hctx,
|
/third_party/openssl/ssl/ |
H A D | t1_lib.c | 1794 SSL_HMAC *hctx = NULL; in tls_decrypt_ticket() local 1824 hctx = ssl_hmac_new(tctx); in tls_decrypt_ticket() 1825 if (hctx == NULL) { in tls_decrypt_ticket() 1847 ssl_hmac_get0_EVP_MAC_CTX(hctx), in tls_decrypt_ticket() 1854 ctx, ssl_hmac_get0_HMAC_CTX(hctx), 0); in tls_decrypt_ticket() 1879 || ssl_hmac_init(hctx, tctx->ext.secure->tick_hmac_key, in tls_decrypt_ticket() 1897 mlen = ssl_hmac_size(hctx); in tls_decrypt_ticket() 1916 if (ssl_hmac_update(hctx, etick, eticklen) <= 0 in tls_decrypt_ticket() 1917 || ssl_hmac_final(hctx, tick_hmac, NULL, sizeof(tick_hmac)) <= 0) { in tls_decrypt_ticket() 1980 ssl_hmac_free(hctx); in tls_decrypt_ticket() [all...] |
H A D | ssl_local.h | 1047 EVP_CIPHER_CTX *ectx, HMAC_CTX *hctx, int enc); 1051 EVP_CIPHER_CTX *ectx, EVP_MAC_CTX *hctx,
|
/third_party/nghttp2/src/ |
H A D | shrpx_tls.cc | 538 EVP_MAC_CTX *hctx, in ticket_key_cb() 540 HMAC_CTX *hctx, in ticket_key_cb() 584 if (!EVP_MAC_CTX_set_params(hctx, params.data())) { in ticket_key_cb() 591 HMAC_Init_ex(hctx, key.data.hmac_key.data(), key.hmac_keylen, key.hmac, in ticket_key_cb() 629 if (!EVP_MAC_CTX_set_params(hctx, params.data())) { in ticket_key_cb() 636 HMAC_Init_ex(hctx, key.data.hmac_key.data(), key.hmac_keylen, key.hmac, in ticket_key_cb() 535 ticket_key_cb(SSL *ssl, unsigned char *key_name, unsigned char *iv, EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc) ticket_key_cb() argument
|
/third_party/openssl/test/helpers/ |
H A D | handshake.c | 328 EVP_MAC_CTX *hctx, int enc) in broken_session_ticket_cb() 336 EVP_MAC_CTX *hctx, int enc) in do_not_call_session_ticket_cb() 326 broken_session_ticket_cb(SSL *s, unsigned char *key_name, unsigned char *iv, EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc) broken_session_ticket_cb() argument 333 do_not_call_session_ticket_cb(SSL *s, unsigned char *key_name, unsigned char *iv, EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc) do_not_call_session_ticket_cb() argument
|
/third_party/openssl/test/ |
H A D | sslapitest.c | 7839 HMAC_CTX *hctx, int enc) in tick_key_cb() 7866 || !HMAC_Init_ex(hctx, tick_hmac_key, sizeof(tick_hmac_key), sha256, in tick_key_cb() 7881 EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc) in tick_key_evp_cb() 7905 || !EVP_MAC_init(hctx, tick_hmac_key, sizeof(tick_hmac_key), in tick_key_evp_cb() 7837 tick_key_cb(SSL *s, unsigned char key_name[16], unsigned char iv[EVP_MAX_IV_LENGTH], EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc) tick_key_cb() argument 7879 tick_key_evp_cb(SSL *s, unsigned char key_name[16], unsigned char iv[EVP_MAX_IV_LENGTH], EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc) tick_key_evp_cb() argument
|