Searched refs:mac_ctx (Results 1 – 7 of 7) sorted by relevance
/external/openssl/crypto/evp/ |
D | pmeth_gn.c | 204 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/ |
D | evp.c | 223 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/ |
D | t1_enc.c | 338 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 …]
|
D | s3_cbc.c | 718 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()
|
D | ssl_locl.h | 1190 const EVP_CIPHER_CTX *cipher_ctx, EVP_MD_CTX *mac_ctx,
|
/external/chromium_org/third_party/boringssl/src/ssl/ |
D | t1_enc.c | 416 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/ |
D | dgst.c | 369 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()
|