Searched refs:mac_ctx (Results 1 – 9 of 9) sorted by relevance
/openssl/crypto/modes/ |
H A D | siv128.c | 94 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 D | quic_srt_gen.c | 15 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 D | tls13_meth.c | 27 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 D | tls1_meth.c | 470 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 D | recmethod_local.h | 297 EVP_MAC_CTX *mac_ctx; member
|
H A D | tls_common.c | 1454 EVP_MAC_CTX_free(rl->mac_ctx); in tls_int_free()
|
/openssl/crypto/evp/ |
H A D | pmeth_gn.c | 319 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 D | dgst.c | 305 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 D | OSSL_PARAM_allocate_from_text.pod | 148 if (pkey_ctrl_string(mac_ctx, macopt) <= 0) {
|
Completed in 34 milliseconds