Home
last modified time | relevance | path

Searched refs:mac_ctx (Results 1 – 9 of 9) sorted by relevance

/openssl/crypto/modes/
H A Dsiv128.c94 EVP_MAC_CTX *mac_ctx; in siv128_do_s2v_p() local
97 mac_ctx = EVP_MAC_CTX_dup(ctx->mac_ctx_init); in siv128_do_s2v_p()
98 if (mac_ctx == NULL) in siv128_do_s2v_p()
124 EVP_MAC_CTX_free(mac_ctx); in siv128_do_s2v_p()
169 EVP_MAC_CTX *mac_ctx = NULL; in ossl_siv128_init() local
206 EVP_MAC_CTX_free(mac_ctx); in ossl_siv128_init()
210 EVP_MAC_CTX_free(mac_ctx); in ossl_siv128_init()
251 EVP_MAC_CTX *mac_ctx; in ossl_siv128_aad() local
256 || !EVP_MAC_update(mac_ctx, aad, len) in ossl_siv128_aad()
260 EVP_MAC_CTX_free(mac_ctx); in ossl_siv128_aad()
[all …]
/openssl/ssl/quic/
H A Dquic_srt_gen.c15 EVP_MAC_CTX *mac_ctx; member
34 if ((srt_gen->mac_ctx = EVP_MAC_CTX_new(srt_gen->mac)) == NULL) in ossl_quic_srt_gen_new()
43 if (!EVP_MAC_init(srt_gen->mac_ctx, key, key_len, params)) in ossl_quic_srt_gen_new()
58 EVP_MAC_CTX_free(srt_gen->mac_ctx); in ossl_quic_srt_gen_free()
70 if (!EVP_MAC_init(srt_gen->mac_ctx, NULL, 0, NULL)) in ossl_quic_srt_gen_calculate_token()
73 if (!EVP_MAC_update(srt_gen->mac_ctx, (const unsigned char *)dcid->id, in ossl_quic_srt_gen_calculate_token()
77 if (!EVP_MAC_final(srt_gen->mac_ctx, mac, &outl, sizeof(mac)) in ossl_quic_srt_gen_calculate_token()
/openssl/ssl/record/methods/
H A Dtls13_meth.c27 EVP_MAC_CTX *mac_ctx; in tls13_set_crypto_state() local
47 || (mac_ctx = rl->mac_ctx = EVP_MAC_CTX_new(mac)) == NULL) { in tls13_set_crypto_state()
56 if (!EVP_MAC_init(mac_ctx, key, keylen, params)) { in tls13_set_crypto_state()
100 EVP_MAC_CTX *mac_ctx = NULL; in tls13_cipher() local
113 if (enc_ctx == NULL && rl->mac_ctx == NULL) { in tls13_cipher()
131 if (rl->mac_ctx != NULL) { in tls13_cipher()
132 nonce_len = EVP_MAC_CTX_get_mac_size(rl->mac_ctx); in tls13_cipher()
183 if (rl->mac_ctx != NULL) { in tls13_cipher()
186 if ((mac_ctx = EVP_MAC_CTX_dup(rl->mac_ctx)) == NULL in tls13_cipher()
187 || !EVP_MAC_update(mac_ctx, nonce, nonce_len) in tls13_cipher()
[all …]
H A Dtls1_meth.c470 EVP_MD_CTX *hmac = NULL, *mac_ctx; in tls1_mac() local
483 mac_ctx = hash; in tls1_mac()
489 mac_ctx = hmac; in tls1_mac()
494 && EVP_MD_CTX_ctrl(mac_ctx, EVP_MD_CTRL_TLSTREE, 0, seq) <= 0) in tls1_mac()
516 && ssl3_cbc_record_digest_supported(mac_ctx)) { in tls1_mac()
523 if (!EVP_PKEY_CTX_set_params(EVP_MD_CTX_get_pkey_ctx(mac_ctx), in tls1_mac()
528 if (EVP_DigestSignUpdate(mac_ctx, header, sizeof(header)) <= 0 in tls1_mac()
529 || EVP_DigestSignUpdate(mac_ctx, rec->input, rec->length) <= 0 in tls1_mac()
530 || EVP_DigestSignFinal(mac_ctx, md, &md_size) <= 0) in tls1_mac()
H A Drecmethod_local.h297 EVP_MAC_CTX *mac_ctx; member
H A Dtls_common.c1454 EVP_MAC_CTX_free(rl->mac_ctx); in tls_int_free()
/openssl/crypto/evp/
H A Dpmeth_gn.c319 EVP_PKEY_CTX *mac_ctx = NULL; in EVP_PKEY_new_mac_key() local
321 mac_ctx = EVP_PKEY_CTX_new_id(type, e); in EVP_PKEY_new_mac_key()
322 if (!mac_ctx) in EVP_PKEY_new_mac_key()
324 if (EVP_PKEY_keygen_init(mac_ctx) <= 0) in EVP_PKEY_new_mac_key()
326 if (EVP_PKEY_CTX_set_mac_key(mac_ctx, key, keylen) <= 0) in EVP_PKEY_new_mac_key()
328 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key()
331 EVP_PKEY_CTX_free(mac_ctx); in EVP_PKEY_new_mac_key()
/openssl/apps/
H A Ddgst.c305 EVP_PKEY_CTX *mac_ctx = NULL; in dgst_main() local
307 if (!init_gen_str(&mac_ctx, mac_name, impl, 0, NULL, NULL)) in dgst_main()
313 if (pkey_ctrl_string(mac_ctx, macopt) <= 0) { in dgst_main()
314 EVP_PKEY_CTX_free(mac_ctx); in dgst_main()
321 sigkey = app_keygen(mac_ctx, mac_name, 0, 0 /* not verbose */); in dgst_main()
323 EVP_PKEY_CTX_free(mac_ctx); in dgst_main()
/openssl/doc/man3/
H A DOSSL_PARAM_allocate_from_text.pod148 if (pkey_ctrl_string(mac_ctx, macopt) <= 0) {

Completed in 28 milliseconds