Home
last modified time | relevance | path

Searched refs:mac_ctx (Results 1 – 3 of 3) 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()
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/
Dt1_enc.c328 EVP_MD_CTX *mac_ctx; in tls1_change_cipher_state() local
374 mac_ctx=ssl_replace_hash(&s->read_hash,NULL); in tls1_change_cipher_state()
416 mac_ctx = ssl_replace_hash(&s->write_hash,NULL); in tls1_change_cipher_state()
483 EVP_DigestSignInit(mac_ctx,NULL,m,NULL,mac_key); in tls1_change_cipher_state()
887 EVP_MD_CTX hmac, *mac_ctx; in tls1_mac() local
920 mac_ctx = hash; in tls1_mac()
925 mac_ctx = &hmac; in tls1_mac()
935 EVP_DigestSignUpdate(mac_ctx,dtlsseq,8); in tls1_mac()
938 EVP_DigestSignUpdate(mac_ctx,seq,8); in tls1_mac()
940 EVP_DigestSignUpdate(mac_ctx,buf,5); in tls1_mac()
[all …]
/external/openssl/apps/
Ddgst.c364 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()