| /freebsd-14.2/sys/opencrypto/ |
| H A D | criov.c | 683 cb = &crp->crp_buf; in crypto_copyback() 717 switch (crp->crp_buf.cb_type) { in crypto_copydata() 720 m_copydata(crp->crp_buf.cb_mbuf, off, size, dst); in crypto_copydata() 724 MPASS(size <= crp->crp_buf.cb_vm_page_len); in crypto_copydata() 725 MPASS(size + off <= crp->crp_buf.cb_vm_page_len + in crypto_copydata() 726 crp->crp_buf.cb_vm_page_offset); in crypto_copydata() 727 cvm_page_copydata(crp->crp_buf.cb_vm_page, in crypto_copydata() 728 off + crp->crp_buf.cb_vm_page_offset, size, dst); in crypto_copydata() 732 cuio_copydata(crp->crp_buf.cb_uio, off, size, dst); in crypto_copydata() 735 MPASS(off + size <= crp->crp_buf.cb_buf_len); in crypto_copydata() [all …]
|
| H A D | cryptodev.h | 443 struct crypto_buffer crp_buf; member 523 _crypto_use_buf(&crp->crp_buf, buf, len); in crypto_use_buf() 529 _crypto_use_mbuf(&crp->crp_buf, m); in crypto_use_mbuf() 535 _crypto_use_single_mbuf(&crp->crp_buf, m); in crypto_use_single_mbuf() 541 _crypto_use_vmpage(&crp->crp_buf, pages, len, offset); in crypto_use_vmpage() 547 _crypto_use_uio(&crp->crp_buf, uio); in crypto_use_uio()
|
| H A D | cryptosoft.c | 145 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_encdec() 356 crypto_cursor_init(&cc, &crp->crp_buf); in swcr_gmac() 451 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm() 474 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm() 560 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm() 804 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_ccm() 1011 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_chacha20_poly1305() 1229 switch (crp->crp_buf.cb_type) { in swcr_compdec() 1233 m_adj(crp->crp_buf.cb_mbuf, adj); in swcr_compdec() 1236 struct uio *uio = crp->crp_buf.cb_uio; in swcr_compdec() [all …]
|
| H A D | crypto.c | 1277 cb_sanity(&crp->crp_buf, "input"); in crp_sanity() 1278 ilen = crypto_buffer_len(&crp->crp_buf); in crp_sanity()
|
| /freebsd-14.2/sys/crypto/openssl/ |
| H A D | ossl_aes.c | 114 crypto_cursor_init(&cc_in, &crp->crp_buf); in ossl_aes_cbc() 208 crypto_cursor_init(&cc_in, &crp->crp_buf); in ossl_aes_gcm() 220 crypto_cursor_init(&cc_in, &crp->crp_buf); in ossl_aes_gcm()
|
| H A D | ossl_chacha20.c | 80 crypto_cursor_init(&cc_in, &crp->crp_buf); in ossl_chacha20() 208 crypto_cursor_init(&cc_in, &crp->crp_buf); in ossl_chacha20_poly1305_encrypt() 377 crypto_cursor_init(&cc_in, &crp->crp_buf); in ossl_chacha20_poly1305_decrypt()
|
| /freebsd-14.2/sys/dev/hifn/ |
| H A D | hifn7751.c | 1816 cmd->src_mapsize = crypto_buffer_len(&crp->crp_buf); in hifn_crypto() 1821 } else if (crp->crp_buf.cb_type == CRYPTO_BUF_MBUF) { in hifn_crypto() 1839 if (crp->crp_buf.cb_mbuf->m_flags & M_PKTHDR) { in hifn_crypto() 1842 if (m0 && !m_dup_pkthdr(m0, crp->crp_buf.cb_mbuf, in hifn_crypto() 2070 if (crp->crp_buf.cb_type == CRYPTO_BUF_MBUF) { in hifn_crypto() 2612 if (crp->crp_buf.cb_type == CRYPTO_BUF_MBUF) { in hifn_callback() 2623 crp->crp_buf.cb_mbuf->m_pkthdr.len; in hifn_callback() 2624 m_freem(crp->crp_buf.cb_mbuf); in hifn_callback() 2625 crp->crp_buf.cb_mbuf = cmd->dst_m; in hifn_callback()
|
| /freebsd-14.2/sys/dev/sec/ |
| H A D | sec.c | 841 switch (crp->crp_buf.cb_type) { in sec_desc_map_dma() 848 size = m_length(crp->crp_buf.cb_mbuf, NULL); in sec_desc_map_dma() 851 size = crp->crp_buf.cb_mbuf->m_len; in sec_desc_map_dma() 854 size = PAGE_SIZE - crp->crp_buf.cb_vm_page_offset; in sec_desc_map_dma() 1250 if (crypto_buffer_len(&crp->crp_buf) > SEC_MAX_DMA_BLOCK_SIZE) { in sec_process()
|
| /freebsd-14.2/sys/dev/safe/ |
| H A D | safe.c | 979 re->re_src_mapsize = crypto_buffer_len(&crp->crp_buf); in safe_process() 1046 } else if (crp->crp_buf.cb_type == CRYPTO_BUF_MBUF) { in safe_process() 1063 if (crp->crp_buf.cb_mbuf->m_flags & M_PKTHDR) { in safe_process() 1066 if (m && !m_dup_pkthdr(m, crp->crp_buf.cb_mbuf, in safe_process() 1151 safe_mcopy(crp->crp_buf.cb_mbuf, in safe_process()
|
| /freebsd-14.2/sys/netipsec/ |
| H A D | xform_ipcomp.c | 296 m = crp->crp_buf.cb_mbuf; in ipcomp_input_cb() 542 m = crp->crp_buf.cb_mbuf; in ipcomp_output_cb()
|
| H A D | xform_ah.c | 706 m = crp->crp_buf.cb_mbuf; in ah_input_cb() 1098 m = crp->crp_buf.cb_mbuf; in ah_output_cb()
|
| H A D | xform_esp.c | 507 m = crp->crp_buf.cb_mbuf; in esp_input_cb() 1004 m = crp->crp_buf.cb_mbuf; in esp_output_cb()
|
| /freebsd-14.2/sys/crypto/armv8/ |
| H A D | armv8_crypto.c | 330 crypto_cursor_init(&fromc, &crp->crp_buf); in armv8_crypto_cipher_process()
|
| /freebsd-14.2/sys/dev/qat/qat/ |
| H A D | qat_ocf.c | 770 &crp->crp_buf, in qat_ocf_load() 816 if (crypto_buffer_len(&crp->crp_buf) > QAT_OCF_MAX_LEN) in qat_ocf_check_input()
|
| /freebsd-14.2/sys/net/ |
| H A D | if_ovpn.c | 1482 struct mbuf *m = crp->crp_buf.cb_mbuf; in ovpn_encrypt_tx_cb() 1499 MPASS(crp->crp_buf.cb_type == CRYPTO_BUF_MBUF); in ovpn_encrypt_tx_cb() 1604 struct mbuf *m = crp->crp_buf.cb_mbuf; in ovpn_decrypt_rx_cb() 1614 MPASS(crp->crp_buf.cb_type == CRYPTO_BUF_MBUF); in ovpn_decrypt_rx_cb()
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | crypto_os.c | 591 crp->crp_buf = (void*)GET_UIO_STRUCT(data_uio); in freebsd_crypt_uio()
|
| /freebsd-14.2/sys/geom/eli/ |
| H A D | g_eli_integrity.c | 157 rel_sec = ((crp->crp_buf.cb_buf + crp->crp_payload_start) - in g_eli_auth_read_done()
|
| /freebsd-14.2/sys/crypto/ccp/ |
| H A D | ccp.c | 550 error = ccp_populate_sglist(qp->cq_sg_crp, &crp->crp_buf); in ccp_process()
|
| /freebsd-14.2/sys/kern/ |
| H A D | subr_bus_dma.c | 597 return (bus_dmamap_load_crp_buffer(dmat, map, &crp->crp_buf, callback, in bus_dmamap_load_crp()
|
| /freebsd-14.2/sys/dev/qat_c2xxx/ |
| H A D | qat.c | 1499 &crp->crp_buf, qat_crypto_load_buf_cb, &arg, in qat_crypto_load() 2144 if (__predict_false(crypto_buffer_len(&crp->crp_buf) > QAT_MAXLEN)) { in qat_process()
|
| /freebsd-14.2/sys/dev/cesa/ |
| H A D | cesa.c | 1711 if (crypto_buffer_len(&crp->crp_buf) > CESA_MAX_REQUEST_SIZE) { in cesa_process()
|
| /freebsd-14.2/sys/dev/safexcel/ |
| H A D | safexcel.c | 2532 if (__predict_false(crypto_buffer_len(&crp->crp_buf) > in safexcel_process()
|
| /freebsd-14.2/sys/dev/cxgbe/crypto/ |
| H A D | t4_crypto.c | 2536 error = ccr_populate_sglist(s->sg_input, &crp->crp_buf); in ccr_process()
|