/freebsd/sys/opencrypto/ |
H A D | criov.c | 682 cb = &crp->crp_buf; in crypto_copyback() 716 switch (crp->crp_buf.cb_type) { in crypto_copydata() 719 m_copydata(crp->crp_buf.cb_mbuf, off, size, dst); in crypto_copydata() 723 MPASS(size <= crp->crp_buf.cb_vm_page_len); in crypto_copydata() 724 MPASS(size + off <= crp->crp_buf.cb_vm_page_len + in crypto_copydata() 725 crp->crp_buf.cb_vm_page_offset); in crypto_copydata() 726 cvm_page_copydata(crp->crp_buf.cb_vm_page, in crypto_copydata() 727 off + crp->crp_buf.cb_vm_page_offset, size, dst); in crypto_copydata() 731 cuio_copydata(crp->crp_buf.cb_uio, off, size, dst); in crypto_copydata() 734 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 | 144 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_encdec() 355 crypto_cursor_init(&cc, &crp->crp_buf); in swcr_gmac() 450 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm() 473 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm() 559 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm() 803 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_ccm() 894 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_ccm() 1010 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_chacha20_poly1305() 1099 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_chacha20_poly1305() 1228 switch (crp->crp_buf.cb_type) { in swcr_compdec() [all …]
|
H A D | crypto.c | 1270 cb_sanity(&crp->crp_buf, "input"); in crp_sanity() 1271 ilen = crypto_buffer_len(&crp->crp_buf); in crp_sanity()
|
/freebsd/sys/crypto/openssl/ |
H A D | ossl_aes.c | 117 crypto_cursor_init(&cc_in, &crp->crp_buf); in ossl_aes_cbc() 211 crypto_cursor_init(&cc_in, &crp->crp_buf); in ossl_aes_gcm() 223 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/sys/dev/hifn/ |
H A D | hifn7751.c | 1814 cmd->src_mapsize = crypto_buffer_len(&crp->crp_buf); in hifn_crypto() 1819 } else if (crp->crp_buf.cb_type == CRYPTO_BUF_MBUF) { in hifn_crypto() 1837 if (crp->crp_buf.cb_mbuf->m_flags & M_PKTHDR) { in hifn_crypto() 1840 if (m0 && !m_dup_pkthdr(m0, crp->crp_buf.cb_mbuf, in hifn_crypto() 2068 if (crp->crp_buf.cb_type == CRYPTO_BUF_MBUF) { in hifn_crypto() 2610 if (crp->crp_buf.cb_type == CRYPTO_BUF_MBUF) { in hifn_callback() 2621 crp->crp_buf.cb_mbuf->m_pkthdr.len; in hifn_callback() 2622 m_freem(crp->crp_buf.cb_mbuf); in hifn_callback() 2623 crp->crp_buf.cb_mbuf = cmd->dst_m; in hifn_callback()
|
/freebsd/sys/dev/sec/ |
H A D | sec.c | 840 switch (crp->crp_buf.cb_type) { in sec_desc_map_dma() 847 size = m_length(crp->crp_buf.cb_mbuf, NULL); in sec_desc_map_dma() 850 size = crp->crp_buf.cb_mbuf->m_len; in sec_desc_map_dma() 853 size = PAGE_SIZE - crp->crp_buf.cb_vm_page_offset; in sec_desc_map_dma() 1249 if (crypto_buffer_len(&crp->crp_buf) > SEC_MAX_DMA_BLOCK_SIZE) { in sec_process()
|
/freebsd/sys/dev/safe/ |
H A D | safe.c | 978 re->re_src_mapsize = crypto_buffer_len(&crp->crp_buf); in safe_process() 1045 } else if (crp->crp_buf.cb_type == CRYPTO_BUF_MBUF) { in safe_process() 1062 if (crp->crp_buf.cb_mbuf->m_flags & M_PKTHDR) { in safe_process() 1065 if (m && !m_dup_pkthdr(m, crp->crp_buf.cb_mbuf, in safe_process() 1150 safe_mcopy(crp->crp_buf.cb_mbuf, in safe_process()
|
/freebsd/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_esp.c | 506 m = crp->crp_buf.cb_mbuf; in esp_input_cb() 1003 m = crp->crp_buf.cb_mbuf; in esp_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()
|
/freebsd/sys/crypto/armv8/ |
H A D | armv8_crypto.c | 329 crypto_cursor_init(&fromc, &crp->crp_buf); in armv8_crypto_cipher_process()
|
/freebsd/sys/net/ |
H A D | if_ovpn.c | 1487 struct mbuf *m = crp->crp_buf.cb_mbuf; in ovpn_encrypt_tx_cb() 1504 MPASS(crp->crp_buf.cb_type == CRYPTO_BUF_MBUF); in ovpn_encrypt_tx_cb() 1609 struct mbuf *m = crp->crp_buf.cb_mbuf; in ovpn_decrypt_rx_cb() 1619 MPASS(crp->crp_buf.cb_type == CRYPTO_BUF_MBUF); in ovpn_decrypt_rx_cb()
|
/freebsd/sys/geom/eli/ |
H A D | g_eli_integrity.c | 156 rel_sec = ((crp->crp_buf.cb_buf + crp->crp_payload_start) - in g_eli_auth_read_done()
|
/freebsd/sys/crypto/ccp/ |
H A D | ccp.c | 550 error = ccp_populate_sglist(qp->cq_sg_crp, &crp->crp_buf); in ccp_process()
|
/freebsd/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/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/sys/dev/cesa/ |
H A D | cesa.c | 1710 if (crypto_buffer_len(&crp->crp_buf) > CESA_MAX_REQUEST_SIZE) { in cesa_process()
|
/freebsd/sys/dev/safexcel/ |
H A D | safexcel.c | 2531 if (__predict_false(crypto_buffer_len(&crp->crp_buf) > in safexcel_process()
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.c | 2535 error = ccr_populate_sglist(s->sg_input, &crp->crp_buf); in ccr_process()
|