Home
last modified time | relevance | path

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

/external/openssl/crypto/evp/
Dpmeth_gn.c204 EVP_PKEY_CTX *mac_ctx = NULL; in EVP_PKEY_new_mac_key() local
206 mac_ctx = EVP_PKEY_CTX_new_id(type, e); in EVP_PKEY_new_mac_key()
207 if (!mac_ctx) in EVP_PKEY_new_mac_key()
209 if (EVP_PKEY_keygen_init(mac_ctx) <= 0) in EVP_PKEY_new_mac_key()
211 if (EVP_PKEY_CTX_ctrl(mac_ctx, -1, EVP_PKEY_OP_KEYGEN, in EVP_PKEY_new_mac_key()
215 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key()
218 if (mac_ctx) in EVP_PKEY_new_mac_key()
219 EVP_PKEY_CTX_free(mac_ctx); in EVP_PKEY_new_mac_key()
/external/chromium_org/third_party/boringssl/src/crypto/evp/
Devp.c223 EVP_PKEY_CTX *mac_ctx = NULL; in EVP_PKEY_new_mac_key() local
226 mac_ctx = EVP_PKEY_CTX_new_id(type, e); in EVP_PKEY_new_mac_key()
227 if (!mac_ctx) { in EVP_PKEY_new_mac_key()
231 if (EVP_PKEY_keygen_init(mac_ctx) <= 0 || in EVP_PKEY_new_mac_key()
232 EVP_PKEY_CTX_ctrl(mac_ctx, -1, EVP_PKEY_OP_KEYGEN, in EVP_PKEY_new_mac_key()
235 EVP_PKEY_keygen(mac_ctx, &ret) <= 0) { in EVP_PKEY_new_mac_key()
241 if (mac_ctx) in EVP_PKEY_new_mac_key()
242 EVP_PKEY_CTX_free(mac_ctx); in EVP_PKEY_new_mac_key()
/external/openssl/ssl/
Dt1_enc.c338 EVP_MD_CTX *mac_ctx; in tls1_change_cipher_state() local
383 mac_ctx=ssl_replace_hash(&s->read_hash,NULL); in tls1_change_cipher_state()
424 mac_ctx = EVP_MD_CTX_create(); in tls1_change_cipher_state()
425 if (!mac_ctx) in tls1_change_cipher_state()
427 s->write_hash = mac_ctx; in tls1_change_cipher_state()
430 mac_ctx = ssl_replace_hash(&s->write_hash,NULL); in tls1_change_cipher_state()
502 EVP_DigestSignInit(mac_ctx,NULL,m,NULL,mac_key); in tls1_change_cipher_state()
985 EVP_MD_CTX hmac, *mac_ctx; in tls1_mac() local
1010 mac_ctx = hash; in tls1_mac()
1016 mac_ctx = &hmac; in tls1_mac()
[all …]
Ds3_cbc.c718 const EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *mac_ctx, in tls_fips_digest_extra() argument
724 block_size = EVP_MD_CTX_block_size(mac_ctx); in tls_fips_digest_extra()
752 EVP_DigestSignUpdate(mac_ctx, data, in tls_fips_digest_extra()
Dssl_locl.h1190 const EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *mac_ctx,
/external/chromium_org/third_party/boringssl/src/ssl/
Dt1_enc.c416 EVP_MD_CTX *mac_ctx; in tls1_change_cipher_state_cipher() local
426 mac_ctx = ssl_replace_hash(&s->read_hash, NULL); in tls1_change_cipher_state_cipher()
450 mac_ctx = EVP_MD_CTX_create(); in tls1_change_cipher_state_cipher()
451 if (!mac_ctx) in tls1_change_cipher_state_cipher()
453 s->write_hash = mac_ctx; in tls1_change_cipher_state_cipher()
456 mac_ctx = ssl_replace_hash(&s->write_hash, NULL); in tls1_change_cipher_state_cipher()
467 EVP_DigestSignInit(mac_ctx, NULL, s->s3->tmp.new_hash, NULL, mac_key); in tls1_change_cipher_state_cipher()
1081 EVP_MD_CTX hmac, *mac_ctx; in tls1_mac() local
1104 mac_ctx = &hmac; in tls1_mac()
1130 ssl3_cbc_record_digest_supported(mac_ctx)) in tls1_mac()
[all …]
/external/openssl/apps/
Ddgst.c369 EVP_PKEY_CTX *mac_ctx = NULL; in MAIN() local
371 if (!init_gen_str(bio_err, &mac_ctx, mac_name,e, 0)) in MAIN()
379 if (pkey_ctrl_string(mac_ctx, macopt) <= 0) in MAIN()
389 if (EVP_PKEY_keygen(mac_ctx, &sigkey) <= 0) in MAIN()
397 if (mac_ctx) in MAIN()
398 EVP_PKEY_CTX_free(mac_ctx); in MAIN()