Searched refs:mac_ctx (Results 1 – 4 of 4) 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/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()
|
/external/openssh/ |
D | hostfile.c | 117 HMAC_CTX mac_ctx; in host_hash() local 135 HMAC_Init(&mac_ctx, salt, len, md); in host_hash() 136 HMAC_Update(&mac_ctx, host, strlen(host)); in host_hash() 137 HMAC_Final(&mac_ctx, result, NULL); in host_hash() 138 HMAC_cleanup(&mac_ctx); in host_hash()
|
/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() 425 mac_ctx = ssl_replace_hash(&s->write_hash,NULL); in tls1_change_cipher_state() 497 EVP_DigestSignInit(mac_ctx,NULL,m,NULL,mac_key); in tls1_change_cipher_state() 995 EVP_MD_CTX hmac, *mac_ctx; in tls1_mac() local 1026 mac_ctx = hash; in tls1_mac() 1031 mac_ctx = &hmac; in tls1_mac() 1041 EVP_DigestSignUpdate(mac_ctx,dtlsseq,8); in tls1_mac() 1044 EVP_DigestSignUpdate(mac_ctx,seq,8); in tls1_mac() 1046 EVP_DigestSignUpdate(mac_ctx,buf,5); in tls1_mac() [all …]
|