Home
last modified time | relevance | path

Searched refs:mackey (Results 1 – 13 of 13) sorted by relevance

/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c66 MAC_KEY *mackey; in ossl_mac_key_new() local
71 mackey = OPENSSL_zalloc(sizeof(*mackey)); in ossl_mac_key_new()
72 if (mackey == NULL) in ossl_mac_key_new()
75 mackey->lock = CRYPTO_THREAD_lock_new(); in ossl_mac_key_new()
76 if (mackey->lock == NULL) { in ossl_mac_key_new()
77 OPENSSL_free(mackey); in ossl_mac_key_new()
80 mackey->libctx = libctx; in ossl_mac_key_new()
81 mackey->refcnt = 1; in ossl_mac_key_new()
82 mackey->cmac = cmac; in ossl_mac_key_new()
84 return mackey; in ossl_mac_key_new()
[all …]
/netbsd-src/sys/opencrypto/
H A Docryptodev.c232 cnop.mackey = ocnop->mackey; in ocryptodev_mop()
258 sop.mackey = osop->mackey; in ocryptodev_session()
280 os_op.mackey = osn_ops->mackey; in ocryptodev_msession()
H A Docryptodev.h96 void * mackey; member
108 void * mackey; member
151 void * mackey; member
H A Dcryptodev.h169 void * mackey; member
184 void * mackey; member
237 void * mackey; member
H A Dcryptodev.c121 void * mackey; member
578 crda->crd_key = cse->mackey; in cryptodev_op()
965 void *mackey, u_int64_t mackeylen, u_int32_t cipher, u_int32_t mac, in csecreate() argument
976 cse->mackey = mackey; in csecreate()
1001 if (cse->mackey) in csefree()
1002 free(cse->mackey, M_XDATA); in csefree()
1211 crda->crd_key = cse->mackey; in cryptodev_mop()
1645 if ((error = copyin(sop->mackey, cria.cri_key, in cryptodev_session()
1699 s_op.mackey = sn_ops->mackey; in cryptodev_msession()
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/include/prov/
H A Dmacsignature.h29 void ossl_mac_key_free(MAC_KEY *mackey);
30 int ossl_mac_key_up_ref(MAC_KEY *mackey);
/netbsd-src/tests/crypto/opencrypto/
H A Dh_xcbcmac.c87 cs.mackey = key; in main()
H A Dh_md5hmac.c157 cs.mackey = __UNCONST(&tests[i].key); in main()
H A Dh_sha1hmac.c167 cs.mackey = __UNCONST(&tests[i].key); in main()
H A Dh_sha2hmac.c243 cs.mackey = __UNCONST(&tests[i].key); in main()
H A Dh_gcm.c67 cs.mackey = key; in main()
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/statem/
H A Dextensions.c1474 EVP_PKEY *mackey = NULL; in tls_psk_do_binder() local
1617 mackey = EVP_PKEY_new_raw_private_key(EVP_PKEY_HMAC, NULL, finishedkey, in tls_psk_do_binder()
1619 if (mackey == NULL) { in tls_psk_do_binder()
1629 if (EVP_DigestSignInit(mctx, NULL, md, NULL, mackey) <= 0 in tls_psk_do_binder()
1651 EVP_PKEY_free(mackey); in tls_psk_do_binder()
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha256_hw.c685 const unsigned char *mackey, in aesni_cbc_hmac_sha256_set_mac_key() argument
696 sha256_update(&ctx->head, mackey, len); in aesni_cbc_hmac_sha256_set_mac_key()
699 memcpy(hmac_key, mackey, len); in aesni_cbc_hmac_sha256_set_mac_key()