Searched refs:mac_ctx (Results 1 – 3 of 3) 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() 214 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key() 217 if (mac_ctx) in EVP_PKEY_new_mac_key() 218 EVP_PKEY_CTX_free(mac_ctx); in EVP_PKEY_new_mac_key()
|
/external/openssl/ssl/ |
D | t1_enc.c | 327 EVP_MD_CTX *mac_ctx; in tls1_change_cipher_state() local 372 mac_ctx=ssl_replace_hash(&s->read_hash,NULL); in tls1_change_cipher_state() 414 mac_ctx = ssl_replace_hash(&s->write_hash,NULL); in tls1_change_cipher_state() 479 EVP_DigestSignInit(mac_ctx,NULL,m,NULL,mac_key); in tls1_change_cipher_state() 883 EVP_MD_CTX hmac, *mac_ctx; in tls1_mac() local 914 mac_ctx = hash; in tls1_mac() 919 mac_ctx = &hmac; in tls1_mac() 929 EVP_DigestSignUpdate(mac_ctx,dtlsseq,8); in tls1_mac() 932 EVP_DigestSignUpdate(mac_ctx,seq,8); in tls1_mac() 934 EVP_DigestSignUpdate(mac_ctx,buf,5); in tls1_mac() [all …]
|
/external/openssl/apps/ |
D | dgst.c | 364 EVP_PKEY_CTX *mac_ctx = NULL; in MAIN() local 366 if (!init_gen_str(bio_err, &mac_ctx, mac_name,e, 0)) in MAIN() 374 if (pkey_ctrl_string(mac_ctx, macopt) <= 0) in MAIN() 384 if (EVP_PKEY_keygen(mac_ctx, &sigkey) <= 0) in MAIN() 392 if (mac_ctx) in MAIN() 393 EVP_PKEY_CTX_free(mac_ctx); in MAIN()
|