Home
last modified time | relevance | path

Searched refs:crp_cipher_key (Results 1 – 22 of 22) sorted by relevance

/freebsd-14.2/sys/crypto/openssl/
H A Dossl_aes.c95 if (crp->crp_cipher_key != NULL) { in ossl_aes_cbc()
97 error = cipher->set_encrypt_key(crp->crp_cipher_key, in ossl_aes_cbc()
100 error = cipher->set_decrypt_key(crp->crp_cipher_key, in ossl_aes_cbc()
184 if (crp->crp_cipher_key != NULL) { in ossl_aes_gcm()
186 error = s->cipher->set_encrypt_key(crp->crp_cipher_key, in ossl_aes_gcm()
190 error = s->cipher->set_decrypt_key(crp->crp_cipher_key, in ossl_aes_gcm()
H A Dossl_chacha20.c69 if (crp->crp_cipher_key != NULL) in ossl_chacha20()
70 cipher_key = crp->crp_cipher_key; in ossl_chacha20()
171 if (crp->crp_cipher_key != NULL) in ossl_chacha20_poly1305_encrypt()
172 cipher_key = crp->crp_cipher_key; in ossl_chacha20_poly1305_encrypt()
318 if (crp->crp_cipher_key != NULL) in ossl_chacha20_poly1305_decrypt()
319 cipher_key = crp->crp_cipher_key; in ossl_chacha20_poly1305_decrypt()
/freebsd-14.2/sys/geom/eli/
H A Dg_eli_privacy.c110 if (sc != NULL && crp->crp_cipher_key != NULL) in g_eli_crypto_read_done()
111 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_crypto_read_done()
163 if (crp->crp_cipher_key != NULL) in g_eli_crypto_write_done()
164 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_crypto_write_done()
340 crp->crp_cipher_key = g_eli_key_hold(sc, dstoff, in g_eli_crypto_run()
H A Dg_eli_integrity.c170 if (crp->crp_cipher_key != NULL) in g_eli_auth_read_done()
171 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_auth_read_done()
312 if (crp->crp_cipher_key != NULL) in g_eli_auth_write_done()
313 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_auth_write_done()
565 crp->crp_cipher_key = g_eli_key_hold(sc, dstoff, in g_eli_auth_run()
/freebsd-14.2/sys/dev/qat/qat/
H A Dqat_ocf_utils.c128 cipherKey = crp->crp_cipher_key; in qat_ocf_handle_session_update()
152 if (crp->crp_cipher_key || crp->crp_auth_key || in qat_ocf_handle_session_update()
H A Dqat_ocf.c265 if (crp->crp_cipher_key) in qat_ocf_session_init()
267 crp->crp_cipher_key; in qat_ocf_session_init()
/freebsd-14.2/sys/crypto/via/
H A Dpadlock_cipher.c198 if (crp->crp_cipher_key != NULL) { in padlock_cipher_process()
199 padlock_cipher_key_setup(ses, crp->crp_cipher_key, in padlock_cipher_process()
/freebsd-14.2/sys/crypto/armv8/
H A Darmv8_crypto.c339 if (crp->crp_cipher_key != NULL) { in armv8_crypto_cipher_process()
340 armv8_crypto_cipher_setup(ses, csp, crp->crp_cipher_key, in armv8_crypto_cipher_process()
/freebsd-14.2/sys/dev/wg/
H A Dwg_crypto.c230 crp.crp_cipher_key = key; in chacha20poly1305_encrypt_mbuf()
253 crp.crp_cipher_key = key; in chacha20poly1305_decrypt_mbuf()
/freebsd-14.2/sys/opencrypto/
H A Dcryptosoft.c134 if (crp->crp_cipher_key != NULL) { in swcr_encdec()
135 error = exf->setkey(ctx, crp->crp_cipher_key, in swcr_encdec()
432 if (crp->crp_cipher_key != NULL) in swcr_gcm()
433 exf->setkey(ctx, crp->crp_cipher_key, in swcr_gcm()
770 if (crp->crp_cipher_key != NULL) in swcr_ccm()
771 exf->setkey(ctx, crp->crp_cipher_key, in swcr_ccm()
990 if (crp->crp_cipher_key != NULL) in swcr_chacha20_poly1305()
991 exf->setkey(ctx, crp->crp_cipher_key, in swcr_chacha20_poly1305()
H A Dcryptodev.h463 const void *crp_cipher_key; /* New cipher key if non-NULL. */ member
H A Dcrypto.c1403 crp->crp_cipher_key != NULL, in crp_sanity()
/freebsd-14.2/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c2560 if (crp->crp_cipher_key != NULL) in ccr_process()
2561 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
2576 if (crp->crp_cipher_key != NULL) in ccr_process()
2577 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
2588 if (crp->crp_cipher_key != NULL) { in ccr_process()
2589 t4_init_gmac_hash(crp->crp_cipher_key, in ccr_process()
2591 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
2609 if (crp->crp_cipher_key != NULL) { in ccr_process()
2610 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
/freebsd-14.2/sys/dev/glxsb/
H A Dglxsb.c662 if (crp->crp_cipher_key != NULL) in glxsb_crypto_encdec()
663 key = crp->crp_cipher_key; in glxsb_crypto_encdec()
/freebsd-14.2/sys/dev/qat_c2xxx/
H A Dqat_hw15.c558 if (crp != NULL && crp->crp_cipher_key != NULL) in qat_hw15_crypto_setup_cipher_config()
559 key = crp->crp_cipher_key; in qat_hw15_crypto_setup_cipher_config()
838 if (__predict_false(crp->crp_cipher_key != NULL || in qat_hw15_crypto_setup_req_params()
/freebsd-14.2/sys/crypto/ccp/
H A Dccp.c558 if (crp->crp_cipher_key != NULL) in ccp_process()
559 ccp_aes_setkey(s, csp->csp_cipher_alg, crp->crp_cipher_key, in ccp_process()
/freebsd-14.2/sys/crypto/aesni/
H A Daesni.c681 if (crp->crp_cipher_key != NULL) in aesni_cipher_crypt()
682 aesni_cipher_setup_common(ses, csp, crp->crp_cipher_key, in aesni_cipher_crypt()
/freebsd-14.2/sys/dev/sec/
H A Dsec.c1275 if (crp->crp_cipher_key != NULL) in sec_process()
1276 memcpy(ses->ss_key, crp->crp_cipher_key, csp->csp_cipher_klen); in sec_process()
/freebsd-14.2/sys/dev/cesa/
H A Dcesa.c1751 if (crp->crp_cipher_key != NULL) { in cesa_process()
1752 memcpy(cs->cs_key, crp->crp_cipher_key, in cesa_process()
/freebsd-14.2/sys/dev/safe/
H A Dsafe.c813 if (crp->crp_cipher_key != NULL) in safe_process()
814 safe_setup_enckey(ses, crp->crp_cipher_key); in safe_process()
/freebsd-14.2/sys/dev/hifn/
H A Dhifn7751.c2427 if (crp->crp_cipher_key != NULL) in hifn_process()
2428 cmd->ck = crp->crp_cipher_key; in hifn_process()
/freebsd-14.2/sys/dev/safexcel/
H A Dsafexcel.c1892 ckey = crp->crp_cipher_key; in safexcel_set_token()