Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/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 …]
/freebsd/crypto/openssl/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);
/freebsd/sys/opencrypto/
H A Dcryptodev.c90 uint32_t mackey; member
100 uint32_t mackey; member
147 PTRIN_CP(*from, *to, mackey); in session_op_from_32()
171 PTROUT_CP(*from, *to, mackey); in session_op_to_32()
274 void *mackey; member
339 void *mackey = NULL; in cse_create() local
445 mackey = malloc(csp.csp_auth_klen, M_CRYPTODEV, in cse_create()
447 error = copyin(sop->mackey, mackey, csp.csp_auth_klen); in cse_create()
454 csp.csp_auth_key = mackey; in cse_create()
500 cse->mackey = mackey; in cse_create()
[all …]
H A Dcryptodev.h231 const void *mackey; member
248 const void *mackey; member
/freebsd/tests/sys/opencrypto/
H A Dcryptodev.py176 def __init__(self, cipher=0, key=None, mac=0, mackey=None, argument
192 if mackey is not None:
193 ses.mackeylen = len(mackey)
194 mk = array.array('B', mackey)
195 ses.mackey = mk.buffer_info()[0]
H A Dcryptotest.py264 mackey=key, maclen=Tlen, ivlen=Nlen)
305 mackey=key, maclen=Tlen, ivlen=Nlen)
431 c = Crypto(mac=alg, mackey=key,
H A Dblake2_test.c104 sop.mackey = key; in create_session()
H A Dpoly1305_test.c318 sop.mackey = key; in create_session()
/freebsd/contrib/netbsd-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_gcm.c67 cs.mackey = key; in main()
/freebsd/crypto/openssl/ssl/statem/
H A Dextensions.c1467 EVP_PKEY *mackey = NULL; in tls_psk_do_binder() local
1603 mackey = EVP_PKEY_new_raw_private_key_ex(s->ctx->libctx, "HMAC", in tls_psk_do_binder()
1606 if (mackey == NULL) { in tls_psk_do_binder()
1616 s->ctx->propq, mackey, NULL) <= 0 in tls_psk_do_binder()
1636 EVP_PKEY_free(mackey); in tls_psk_do_binder()
/freebsd/crypto/openssl/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()
/freebsd/sys/dev/hifn/
H A Dhifn7751.c2381 const void *mackey; in hifn_process() local
2476 mackey = crp->crp_auth_key; in hifn_process()
2478 mackey = csp->csp_auth_key; in hifn_process()
2480 bcopy(mackey, cmd->mac, keylen); in hifn_process()
/freebsd/tools/tools/crypto/
H A Dcryptotest.c280 sop.mackey = key; in runtest()
H A Dcryptocheck.c631 sop.mackey = key; in ocf_hmac()
902 sop.mackey = auth_key; in ocf_init_eta_session()
1157 sop.mackey = key; in ocf_mac()
/freebsd/crypto/openssl/doc/man3/
H A DEVP_EncryptInit.pod884 =item "mackey" (B<OSSL_CIPHER_PARAM_AEAD_MAC_KEY>) <octet string>
1014 with an L<OSSL_PARAM(3)> item with the key "mackey"