Home
last modified time | relevance | path

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

/freebsd/sys/crypto/openssl/
H A Dossl_aes.c98 if (crp->crp_cipher_key != NULL) { in ossl_aes_cbc()
100 error = cipher->set_encrypt_key(crp->crp_cipher_key, in ossl_aes_cbc()
103 error = cipher->set_decrypt_key(crp->crp_cipher_key, in ossl_aes_cbc()
187 if (crp->crp_cipher_key != NULL) { in ossl_aes_gcm()
189 error = s->cipher->set_encrypt_key(crp->crp_cipher_key, in ossl_aes_gcm()
193 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/sys/geom/eli/
H A Dg_eli_privacy.c109 if (sc != NULL && crp->crp_cipher_key != NULL) in g_eli_crypto_read_done()
110 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_crypto_read_done()
162 if (crp->crp_cipher_key != NULL) in g_eli_crypto_write_done()
163 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_crypto_write_done()
339 crp->crp_cipher_key = g_eli_key_hold(sc, dstoff, in g_eli_crypto_run()
H A Dg_eli_integrity.c169 if (crp->crp_cipher_key != NULL) in g_eli_auth_read_done()
170 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_auth_read_done()
311 if (crp->crp_cipher_key != NULL) in g_eli_auth_write_done()
312 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_auth_write_done()
564 crp->crp_cipher_key = g_eli_key_hold(sc, dstoff, in g_eli_auth_run()
/freebsd/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()
/freebsd/sys/crypto/via/
H A Dpadlock_cipher.c197 if (crp->crp_cipher_key != NULL) { in padlock_cipher_process()
198 padlock_cipher_key_setup(ses, crp->crp_cipher_key, in padlock_cipher_process()
/freebsd/sys/crypto/armv8/
H A Darmv8_crypto.c338 if (crp->crp_cipher_key != NULL) { in armv8_crypto_cipher_process()
339 armv8_crypto_cipher_setup(ses, csp, crp->crp_cipher_key, in armv8_crypto_cipher_process()
/freebsd/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/sys/opencrypto/
H A Dcryptosoft.c133 if (crp->crp_cipher_key != NULL) { in swcr_encdec()
134 error = exf->setkey(ctx, crp->crp_cipher_key, in swcr_encdec()
431 if (crp->crp_cipher_key != NULL) in swcr_gcm()
432 exf->setkey(ctx, crp->crp_cipher_key, in swcr_gcm()
769 if (crp->crp_cipher_key != NULL) in swcr_ccm()
770 exf->setkey(ctx, crp->crp_cipher_key, in swcr_ccm()
989 if (crp->crp_cipher_key != NULL) in swcr_chacha20_poly1305()
990 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.c1396 crp->crp_cipher_key != NULL, in crp_sanity()
/freebsd/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c2559 if (crp->crp_cipher_key != NULL) in ccr_process()
2560 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
2575 if (crp->crp_cipher_key != NULL) in ccr_process()
2576 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
2587 if (crp->crp_cipher_key != NULL) { in ccr_process()
2588 t4_init_gmac_hash(crp->crp_cipher_key, in ccr_process()
2590 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
2608 if (crp->crp_cipher_key != NULL) { in ccr_process()
2609 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
/freebsd/sys/dev/glxsb/
H A Dglxsb.c661 if (crp->crp_cipher_key != NULL) in glxsb_crypto_encdec()
662 key = crp->crp_cipher_key; in glxsb_crypto_encdec()
/freebsd/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/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/sys/crypto/aesni/
H A Daesni.c680 if (crp->crp_cipher_key != NULL) in aesni_cipher_crypt()
681 aesni_cipher_setup_common(ses, csp, crp->crp_cipher_key, in aesni_cipher_crypt()
/freebsd/sys/dev/sec/
H A Dsec.c1274 if (crp->crp_cipher_key != NULL) in sec_process()
1275 memcpy(ses->ss_key, crp->crp_cipher_key, csp->csp_cipher_klen); in sec_process()
/freebsd/sys/dev/cesa/
H A Dcesa.c1730 if (crp->crp_cipher_key != NULL) { in cesa_process()
1731 memcpy(cs->cs_key, crp->crp_cipher_key, in cesa_process()
/freebsd/sys/dev/safe/
H A Dsafe.c812 if (crp->crp_cipher_key != NULL) in safe_process()
813 safe_setup_enckey(ses, crp->crp_cipher_key); in safe_process()
/freebsd/sys/dev/hifn/
H A Dhifn7751.c2425 if (crp->crp_cipher_key != NULL) in hifn_process()
2426 cmd->ck = crp->crp_cipher_key; in hifn_process()
/freebsd/sys/dev/safexcel/
H A Dsafexcel.c1891 ckey = crp->crp_cipher_key; in safexcel_set_token()