| /freebsd-12.1/sys/crypto/via/ |
| H A D | padlock_cipher.c | 216 if ((enccrd->crd_flags & CRD_F_KEY_EXPLICIT) != 0) { in padlock_cipher_process() 226 if ((enccrd->crd_flags & CRD_F_ENCRYPT) != 0) { in padlock_cipher_process() 229 if ((enccrd->crd_flags & CRD_F_IV_EXPLICIT) != 0) in padlock_cipher_process() 232 if ((enccrd->crd_flags & CRD_F_IV_PRESENT) == 0) { in padlock_cipher_process() 239 if ((enccrd->crd_flags & CRD_F_IV_EXPLICIT) != 0) in padlock_cipher_process() 264 if ((enccrd->crd_flags & CRD_F_ENCRYPT) != 0) { in padlock_cipher_process()
|
| /freebsd-12.1/sys/opencrypto/ |
| H A D | cryptosoft.c | 111 if (crd->crd_flags & CRD_F_ENCRYPT) { in swcr_encdec() 113 if (crd->crd_flags & CRD_F_IV_EXPLICIT) in swcr_encdec() 119 if (!(crd->crd_flags & CRD_F_IV_PRESENT)) in swcr_encdec() 124 if (crd->crd_flags & CRD_F_IV_EXPLICIT) in swcr_encdec() 132 if (crd->crd_flags & CRD_F_KEY_EXPLICIT) { in swcr_encdec() 194 if (crd->crd_flags & CRD_F_ENCRYPT) { in swcr_encdec() 583 if (crde->crd_flags & CRD_F_ENCRYPT) { in swcr_authenc() 585 if (crde->crd_flags & CRD_F_IV_EXPLICIT) in swcr_authenc() 655 if (crde->crd_flags & CRD_F_ENCRYPT) { in swcr_authenc() 753 if (crd->crd_flags & CRD_F_COMP) in swcr_compdec() [all …]
|
| H A D | cryptodev.c | 890 crde->crd_flags |= CRD_F_ENCRYPT; in cryptodev_op() 892 crde->crd_flags &= ~CRD_F_ENCRYPT; in cryptodev_op() 925 crde->crd_flags |= CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT; in cryptodev_op() 930 crde->crd_flags |= CRD_F_IV_PRESENT; in cryptodev_op() 1067 crde->crd_flags |= CRD_F_ENCRYPT; in cryptodev_aead() 1069 crde->crd_flags &= ~CRD_F_ENCRYPT; in cryptodev_aead() 1097 crde->crd_flags |= CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT; in cryptodev_aead() 1099 crde->crd_flags |= CRD_F_IV_PRESENT; in cryptodev_aead()
|
| /freebsd-12.1/sys/dev/cxgbe/crypto/ |
| H A D | t4_crypto.c | 605 if (crd->crd_flags & CRD_F_ENCRYPT) in ccr_blkcipher() 710 if (crd->crd_flags & CRD_F_ENCRYPT) in ccr_blkcipher() 725 if (crd->crd_flags & CRD_F_ENCRYPT) in ccr_blkcipher() 831 if (crde->crd_flags & CRD_F_ENCRYPT) in ccr_authenc() 1047 if (crde->crd_flags & CRD_F_ENCRYPT) in ccr_authenc() 1062 if (crde->crd_flags & CRD_F_ENCRYPT) in ccr_authenc() 1168 if (crde->crd_flags & CRD_F_ENCRYPT) in ccr_gcm() 1486 if (crde->crd_flags & CRD_F_ENCRYPT) { in ccr_gcm_soft() 1542 if (crde->crd_flags & CRD_F_ENCRYPT) { in ccr_gcm_soft() 1663 if (crde->crd_flags & CRD_F_ENCRYPT) in ccr_ccm() [all …]
|
| /freebsd-12.1/sys/crypto/ccp/ |
| H A D | ccp.c | 126 if (crde->crd_flags & CRD_F_ENCRYPT) { in ccp_gcm_soft() 127 if (crde->crd_flags & CRD_F_IV_EXPLICIT) in ccp_gcm_soft() 135 if (crde->crd_flags & CRD_F_IV_EXPLICIT) in ccp_gcm_soft() 163 if (crde->crd_flags & CRD_F_ENCRYPT) { in ccp_gcm_soft() 605 if (crd->crd_flags & CRD_F_KEY_EXPLICIT) in ccp_process() 611 if (crd->crd_flags & CRD_F_KEY_EXPLICIT) { in ccp_process() 630 if (!(crde->crd_flags & CRD_F_ENCRYPT)) { in ccp_process() 639 if (crde->crd_flags & CRD_F_ENCRYPT) { in ccp_process() 648 if (crda->crd_flags & CRD_F_KEY_EXPLICIT) in ccp_process() 651 if (crde->crd_flags & CRD_F_KEY_EXPLICIT) { in ccp_process() [all …]
|
| H A D | ccp_hardware.c | 1349 if (crd->crd_flags & CRD_F_ENCRYPT) { in ccp_collect_iv() 1350 if (crd->crd_flags & CRD_F_IV_EXPLICIT) in ccp_collect_iv() 1355 if ((crd->crd_flags & CRD_F_IV_PRESENT) == 0) in ccp_collect_iv() 1360 if (crd->crd_flags & CRD_F_IV_EXPLICIT) in ccp_collect_iv() 1523 if ((crd->crd_flags & CRD_F_ENCRYPT) != 0) in ccp_do_blkcipher() 1875 if ((crde->crd_flags & CRD_F_ENCRYPT) != 0) in ccp_gcm_done() 1914 if ((crde->crd_flags & CRD_F_ENCRYPT) != 0) in ccp_gcm()
|
| /freebsd-12.1/sys/mips/nlm/dev/sec/ |
| H A D | nlmsec.c | 222 crp_desc->crd_skip, crp_desc->crd_len, crp_desc->crd_flags, in xlp_sec_print_data() 321 (crd->crd_flags & CRD_F_ENCRYPT)) { in nlm_xlpsec_msgring_handler() 525 if (enccrd->crd_flags & CRD_F_ENCRYPT) { in xlp_copyiv() 526 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) { in xlp_copyiv() 531 if ((enccrd->crd_flags & CRD_F_IV_PRESENT) == 0) { in xlp_copyiv() 537 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) { in xlp_copyiv() 676 if (((crd1 != NULL) && (crd1->crd_flags & CRD_F_IV_EXPLICIT)) || in xlp_sec_process() 677 ((crd2 != NULL) && (crd2->crd_flags & CRD_F_IV_EXPLICIT))) { in xlp_sec_process() 697 if (crd1->crd_flags & CRD_F_IV_EXPLICIT) in xlp_sec_process() 702 if (crd1->crd_flags & CRD_F_IV_PRESENT) in xlp_sec_process() [all …]
|
| H A D | nlmseclib.c | 106 if (cipdesc->crd_flags & CRD_F_IV_EXPLICIT) { in nlm_crypto_form_srcdst_segs() 168 if (!(cipdesc->crd_flags & CRD_F_ENCRYPT)) { in nlm_crypto_do_cipher() 183 (cipdesc->crd_flags & CRD_F_ENCRYPT) ? 1 : 0, cmd->ivoff, in nlm_crypto_do_cipher() 227 if (!(cipdesc->crd_flags & CRD_F_ENCRYPT)) { in nlm_crypto_do_cipher_digest() 243 (cipdesc->crd_flags & CRD_F_ENCRYPT) ? 1 : 0, cmd->hashsrc, in nlm_crypto_do_cipher_digest()
|
| /freebsd-12.1/sys/crypto/armv8/ |
| H A D | armv8_crypto.c | 383 encflag = (enccrd->crd_flags & CRD_F_ENCRYPT) == CRD_F_ENCRYPT; in armv8_crypto_cipher_process() 396 if ((enccrd->crd_flags & CRD_F_KEY_EXPLICIT) != 0) { in armv8_crypto_cipher_process() 408 if ((enccrd->crd_flags & CRD_F_IV_EXPLICIT) != 0) in armv8_crypto_cipher_process() 413 if ((enccrd->crd_flags & CRD_F_IV_PRESENT) == 0) in armv8_crypto_cipher_process() 417 if ((enccrd->crd_flags & CRD_F_IV_EXPLICIT) != 0) in armv8_crypto_cipher_process()
|
| /freebsd-12.1/sys/crypto/aesni/ |
| H A D | aesni.c | 681 (enccrd->crd_flags & CRD_F_IV_EXPLICIT) == 0) in aesni_cipher_process() 755 encflag = (enccrd->crd_flags & CRD_F_ENCRYPT) == CRD_F_ENCRYPT; in aesni_cipher_crypt() 756 if ((enccrd->crd_flags & CRD_F_KEY_EXPLICIT) != 0) { in aesni_cipher_crypt() 779 if ((enccrd->crd_flags & CRD_F_IV_EXPLICIT) != 0) in aesni_cipher_crypt() 784 if ((enccrd->crd_flags & CRD_F_IV_PRESENT) == 0) in aesni_cipher_crypt() 788 if ((enccrd->crd_flags & CRD_F_IV_EXPLICIT) != 0) in aesni_cipher_crypt() 895 if ((crd->crd_flags & ~CRD_F_KEY_EXPLICIT) != 0) { in aesni_cipher_mac() 897 (crd->crd_flags & ~CRD_F_KEY_EXPLICIT)); in aesni_cipher_mac() 900 if ((crd->crd_flags & CRD_F_KEY_EXPLICIT) != 0) { in aesni_cipher_mac()
|
| /freebsd-12.1/sys/mips/cavium/cryptocteon/ |
| H A D | cryptocteon.c | 338 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) { in cryptocteon_process() 394 if (enccrd->crd_flags & CRD_F_KEY_EXPLICIT) { in cryptocteon_process() 400 if (maccrd->crd_flags & CRD_F_KEY_EXPLICIT) { in cryptocteon_process() 413 if (!enccrd || (enccrd->crd_flags & CRD_F_ENCRYPT)) in cryptocteon_process()
|
| /freebsd-12.1/sys/geom/eli/ |
| H A D | g_eli_privacy.c | 299 crd->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT; in g_eli_crypto_run() 301 crd->crd_flags |= CRD_F_KEY_EXPLICIT; in g_eli_crypto_run() 303 crd->crd_flags |= CRD_F_ENCRYPT; in g_eli_crypto_run()
|
| H A D | g_eli_crypto.c | 91 crd->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT; in g_eli_crypto_cipher() 93 crd->crd_flags |= CRD_F_ENCRYPT; in g_eli_crypto_cipher()
|
| H A D | g_eli_integrity.c | 513 crde->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT; in g_eli_auth_run() 515 crde->crd_flags |= CRD_F_KEY_EXPLICIT; in g_eli_auth_run() 517 crde->crd_flags |= CRD_F_ENCRYPT; in g_eli_auth_run() 529 crda->crd_flags = CRD_F_KEY_EXPLICIT; in g_eli_auth_run()
|
| /freebsd-12.1/sys/dev/glxsb/ |
| H A D | glxsb.c | 683 if (crd->crd_flags & CRD_F_ENCRYPT) { in glxsb_crypto_encdec() 685 if (crd->crd_flags & CRD_F_IV_EXPLICIT) in glxsb_crypto_encdec() 690 if ((crd->crd_flags & CRD_F_IV_PRESENT) == 0) { in glxsb_crypto_encdec() 696 if (crd->crd_flags & CRD_F_IV_EXPLICIT) in glxsb_crypto_encdec() 741 if (crd->crd_flags & CRD_F_ENCRYPT) in glxsb_crypto_encdec()
|
| H A D | glxsb_hash.c | 163 if ((maccrd->crd_flags & CRD_F_KEY_EXPLICIT) != 0) in glxsb_hash_process()
|
| /freebsd-12.1/sys/dev/sec/ |
| H A D | sec.c | 1325 if (enc && enc->crd_flags & CRD_F_ENCRYPT) { in sec_process() 1326 if (enc->crd_flags & CRD_F_IV_EXPLICIT) in sec_process() 1332 if ((enc->crd_flags & CRD_F_IV_PRESENT) == 0) in sec_process() 1337 if (enc->crd_flags & CRD_F_IV_EXPLICIT) in sec_process() 1346 if (enc && enc->crd_flags & CRD_F_KEY_EXPLICIT) { in sec_process() 1354 if (!error && mac && mac->crd_flags & CRD_F_KEY_EXPLICIT) { in sec_process() 1558 if (enc->crd_flags & CRD_F_ENCRYPT) { in sec_aesu_make_desc() 1625 if (enc->crd_flags & CRD_F_ENCRYPT) { in sec_deu_make_desc()
|
| /freebsd-12.1/sys/kgssapi/krb5/ |
| H A D | kcrypto_des3.c | 189 crd->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT | encdec; in des3_encrypt_1() 247 crd->crd_flags = 0; in des3_checksum()
|
| H A D | kcrypto_aes.c | 153 crd->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT | encdec; in aes_encrypt_1() 333 crd->crd_flags = 0; in aes_checksum()
|
| H A D | kcrypto_des.c | 179 crd->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT | encdec; in des1_encrypt_1()
|
| /freebsd-12.1/sys/dev/cesa/ |
| H A D | cesa.c | 802 (cr->cr_enc->crd_flags & CRD_F_ENCRYPT) == 0) in cesa_create_chain() 826 if (cr->cr_enc && (cr->cr_enc->crd_flags & CRD_F_ENCRYPT) == 0) in cesa_create_chain() 1769 if (enc && enc->crd_flags & CRD_F_ENCRYPT) { in cesa_process() 1770 if (enc->crd_flags & CRD_F_IV_EXPLICIT) in cesa_process() 1775 if ((enc->crd_flags & CRD_F_IV_PRESENT) == 0) in cesa_process() 1779 if (enc->crd_flags & CRD_F_IV_EXPLICIT) in cesa_process() 1786 if (enc && enc->crd_flags & CRD_F_KEY_EXPLICIT) { in cesa_process() 1796 if (!error && mac && mac->crd_flags & CRD_F_KEY_EXPLICIT) { in cesa_process()
|
| /freebsd-12.1/sys/dev/safe/ |
| H A D | safe.c | 878 ((crd2->crd_flags & CRD_F_ENCRYPT) == 0)) { in safe_process() 888 (crd1->crd_flags & CRD_F_ENCRYPT)) { in safe_process() 900 if (enccrd->crd_flags & CRD_F_KEY_EXPLICIT) in safe_process() 935 if (enccrd->crd_flags & CRD_F_ENCRYPT) { in safe_process() 938 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) in safe_process() 942 if ((enccrd->crd_flags & CRD_F_IV_PRESENT) == 0) { in safe_process() 952 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) { in safe_process() 977 if (maccrd->crd_flags & CRD_F_KEY_EXPLICIT) { in safe_process()
|
| /freebsd-12.1/sys/netipsec/ |
| H A D | xform_esp.c | 446 crde->crd_flags |= CRD_F_IV_EXPLICIT; in esp_input() 838 crde->crd_flags = CRD_F_ENCRYPT; in esp_output() 860 crde->crd_flags |= CRD_F_IV_EXPLICIT|CRD_F_IV_PRESENT; in esp_output()
|
| /freebsd-12.1/sys/dev/hifn/ |
| H A D | hifn7751.c | 2430 if ((crd1->crd_flags & CRD_F_ENCRYPT) == 0) in hifn_process() 2447 ((crd2->crd_flags & CRD_F_ENCRYPT) == 0)) { in hifn_process() 2459 (crd1->crd_flags & CRD_F_ENCRYPT)) { in hifn_process() 2500 if (enccrd->crd_flags & CRD_F_ENCRYPT) { in hifn_process() 2501 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) in hifn_process() 2506 if ((enccrd->crd_flags & CRD_F_IV_PRESENT) in hifn_process() 2513 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) in hifn_process() 2523 if (enccrd->crd_flags & CRD_F_KEY_EXPLICIT) in hifn_process()
|
| /freebsd-12.1/sys/dev/ubsec/ |
| H A D | ubsec.c | 1054 ((crd2->crd_flags & CRD_F_ENCRYPT) == 0)) { in ubsec_process() 1061 (crd1->crd_flags & CRD_F_ENCRYPT)) { in ubsec_process() 1075 if (enccrd->crd_flags & CRD_F_KEY_EXPLICIT) { in ubsec_process() 1083 if (enccrd->crd_flags & CRD_F_ENCRYPT) { in ubsec_process() 1086 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) in ubsec_process() 1093 if ((enccrd->crd_flags & CRD_F_IV_PRESENT) == 0) { in ubsec_process() 1100 if (enccrd->crd_flags & CRD_F_IV_EXPLICIT) in ubsec_process() 1119 if (maccrd->crd_flags & CRD_F_KEY_EXPLICIT) { in ubsec_process()
|