Home
last modified time | relevance | path

Searched refs:crda (Results 1 – 9 of 9) sorted by relevance

/freebsd-12.1/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c820 if (crda->crd_skip + crda->crd_len > crde->crd_skip) in ccr_authenc()
963 (crda->crd_skip + crda->crd_len) + cipher_stop; in ccr_authenc()
1263 crda->crd_skip, crda->crd_len); in ccr_gcm()
1400 crda->crd_skip, crda->crd_len, dst); in ccr_gcm()
1739 crda->crd_skip, crda->crd_len); in ccr_ccm()
1864 crda->crd_skip, crda->crd_len, dst); in ccr_ccm()
2735 crda = crd; in ccr_process()
2746 ccr_init_hmac_digest(s, crda->crd_alg, crda->crd_key, in ccr_process()
2770 crda = crd; in ccr_process()
2774 ccr_init_gmac_hash(s, crda->crd_key, crda->crd_klen); in ccr_process()
[all …]
/freebsd-12.1/sys/geom/eli/
H A Dg_eli_integrity.c447 size += sizeof(*crda) * nsec; in g_eli_auth_run()
464 crda = (struct cryptodesc *)p; p += sizeof(*crda); in g_eli_auth_run()
502 crde->crd_next = crda; in g_eli_auth_run()
503 crda->crd_next = NULL; in g_eli_auth_run()
506 crp->crp_desc = crda; in g_eli_auth_run()
507 crda->crd_next = crde; in g_eli_auth_run()
526 crda->crd_skip = sc->sc_alen; in g_eli_auth_run()
527 crda->crd_len = data_secsize; in g_eli_auth_run()
528 crda->crd_inject = 0; in g_eli_auth_run()
530 crda->crd_alg = sc->sc_aalgo; in g_eli_auth_run()
[all …]
/freebsd-12.1/sys/crypto/ccp/
H A Dccp.c150 len = imin(crda->crd_len - i, sizeof(block)); in ccp_gcm_soft()
579 struct cryptodesc *crd, *crda, *crde; in ccp_process() local
629 crda = crd->crd_next; in ccp_process()
637 crda = crd; in ccp_process()
648 if (crda->crd_flags & CRD_F_KEY_EXPLICIT) in ccp_process()
649 ccp_init_hmac_digest(s, crda->crd_alg, crda->crd_key, in ccp_process()
650 crda->crd_klen); in ccp_process()
665 crda = crd->crd_next; in ccp_process()
668 crda = crd; in ccp_process()
682 ccp_gcm_soft(s, crp, crda, crde); in ccp_process()
[all …]
H A Dccp_hardware.c1701 struct cryptodesc *crda; in ccp_authenc_done() local
1708 crda = crp->crp_desc->crd_next; in ccp_authenc_done()
1710 crda = crp->crp_desc; in ccp_authenc_done()
1855 struct cryptodesc *crde, *crda; in ccp_gcm_done() local
1861 crda = crp->crp_desc->crd_next; in ccp_gcm_done()
1864 crda = crp->crp_desc; in ccp_gcm_done()
1909 if (crda->crd_len + crda->crd_skip > crde->crd_len + crde->crd_skip) in ccp_gcm()
1948 if (crda->crd_len != 0) { in ccp_gcm()
1951 crda->crd_skip, crda->crd_len); in ccp_gcm()
1999 (i == 0 && crda->crd_len == 0), in ccp_gcm()
[all …]
H A Dccp.h220 struct cryptop *crp, struct cryptodesc *crda, struct cryptodesc *crde)
225 struct cryptodesc *crda, struct cryptodesc *crde) __must_check;
/freebsd-12.1/sys/netipsec/
H A Dxform_ah.c563 struct cryptodesc *crda; in ah_input() local
638 crda = crp->crp_desc; in ah_input()
641 crda->crd_skip = 0; in ah_input()
642 crda->crd_len = m->m_pkthdr.len; in ah_input()
643 crda->crd_inject = skip + rplen; in ah_input()
646 crda->crd_alg = ahx->type; in ah_input()
867 struct cryptodesc *crda; in ah_output() local
998 crda = crp->crp_desc; in ah_output()
999 crda->crd_skip = 0; in ah_output()
1000 crda->crd_inject = skip + rplen; in ah_output()
[all …]
H A Dxform_esp.c383 struct cryptodesc *crda = crp->crp_desc; in esp_input() local
388 crda->crd_skip = skip; in esp_input()
390 crda->crd_len = 8; /* RFC4106 5, SPI + SN */ in esp_input()
393 crda->crd_inject = m->m_pkthdr.len - alen; in esp_input()
395 crda->crd_alg = esph->type; in esp_input()
402 crde = crda->crd_next; in esp_input()
653 struct cryptodesc *crde = NULL, *crda = NULL; in esp_output() local
833 crda = crde->crd_next; in esp_output()
882 crda->crd_alg = esph->type; in esp_output()
883 crda->crd_skip = skip; in esp_output()
[all …]
/freebsd-12.1/sys/opencrypto/
H A Dcryptodev.c857 crda = crde->crd_next; in cryptodev_op()
859 crda = crp->crp_desc; in cryptodev_op()
860 crde = crda->crd_next; in cryptodev_op()
863 crda = crp->crp_desc; in cryptodev_op()
878 if (crda) { in cryptodev_op()
879 crda->crd_skip = 0; in cryptodev_op()
1031 crda = crde->crd_next; in cryptodev_aead()
1033 crda = crp->crp_desc; in cryptodev_aead()
1034 crde = crda->crd_next; in cryptodev_aead()
1054 crda->crd_skip = 0; in cryptodev_aead()
[all …]
H A Dcryptosoft.c505 struct cryptodesc *crd, *crda = NULL, *crde = NULL; in swcr_authenc() local
543 crda = crd; in swcr_authenc()
554 if (crde == NULL || crda == NULL) in swcr_authenc()
562 switch (crda->crd_alg) { in swcr_authenc()
571 crda->crd_alg != CRYPTO_AES_CCM_CBC_MAC) in swcr_authenc()
579 if (crde->crd_klen != crda->crd_klen) in swcr_authenc()
612 ctx.aes_cbc_mac_ctx.authDataLength = crda->crd_len; in swcr_authenc()
620 aadlen = crda->crd_len; in swcr_authenc()
622 for (i = iskip; i < crda->crd_len; i += blksz) { in swcr_authenc()
623 len = MIN(crda->crd_len - i, blksz - oskip); in swcr_authenc()
[all …]