/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | des_s390.c | 31 u8 iv[DES_BLOCK_SIZE]; 59 cpacf_km(CPACF_KM_DEA, ctx->key, out, in, DES_BLOCK_SIZE); in s390_des_encrypt() 67 ctx->key, out, in, DES_BLOCK_SIZE); in s390_des_decrypt() 75 .cra_blocksize = DES_BLOCK_SIZE, 100 n = nbytes & ~(DES_BLOCK_SIZE - 1); in ecb_desall_crypt() 116 u8 iv[DES_BLOCK_SIZE]; in cbc_desall_crypt() 123 memcpy(param.iv, walk.iv, DES_BLOCK_SIZE); in cbc_desall_crypt() 127 n = nbytes & ~(DES_BLOCK_SIZE - 1); in cbc_desall_crypt() 130 memcpy(walk.iv, param.iv, DES_BLOCK_SIZE); in cbc_desall_crypt() 150 .base.cra_blocksize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | des_s390.c | 31 u8 iv[DES_BLOCK_SIZE]; 59 cpacf_km(CPACF_KM_DEA, ctx->key, out, in, DES_BLOCK_SIZE); in s390_des_encrypt() 67 ctx->key, out, in, DES_BLOCK_SIZE); in s390_des_decrypt() 75 .cra_blocksize = DES_BLOCK_SIZE, 100 n = nbytes & ~(DES_BLOCK_SIZE - 1); in ecb_desall_crypt() 116 u8 iv[DES_BLOCK_SIZE]; in cbc_desall_crypt() 123 memcpy(param.iv, walk.iv, DES_BLOCK_SIZE); in cbc_desall_crypt() 127 n = nbytes & ~(DES_BLOCK_SIZE - 1); in cbc_desall_crypt() 130 memcpy(walk.iv, param.iv, DES_BLOCK_SIZE); in cbc_desall_crypt() 150 .base.cra_blocksize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-5.10/arch/sparc/crypto/ |
H A D | des_glue.c | 113 round_down(nbytes, DES_BLOCK_SIZE)); in __ecb_crypt() 114 err = skcipher_walk_done(&walk, nbytes % DES_BLOCK_SIZE); in __ecb_crypt() 157 DES_BLOCK_SIZE), in __cbc_crypt() 163 DES_BLOCK_SIZE), in __cbc_crypt() 165 err = skcipher_walk_done(&walk, nbytes % DES_BLOCK_SIZE); in __cbc_crypt() 265 round_down(nbytes, DES_BLOCK_SIZE)); in __ecb3_crypt() 266 err = skcipher_walk_done(&walk, nbytes % DES_BLOCK_SIZE); in __ecb3_crypt() 313 DES_BLOCK_SIZE), in __cbc3_crypt() 319 DES_BLOCK_SIZE), in __cbc3_crypt() 321 err = skcipher_walk_done(&walk, nbytes % DES_BLOCK_SIZE); in __cbc3_crypt() [all...] |
/kernel/linux/linux-6.6/arch/sparc/crypto/ |
H A D | des_glue.c | 113 round_down(nbytes, DES_BLOCK_SIZE)); in __ecb_crypt() 114 err = skcipher_walk_done(&walk, nbytes % DES_BLOCK_SIZE); in __ecb_crypt() 157 DES_BLOCK_SIZE), in __cbc_crypt() 163 DES_BLOCK_SIZE), in __cbc_crypt() 165 err = skcipher_walk_done(&walk, nbytes % DES_BLOCK_SIZE); in __cbc_crypt() 265 round_down(nbytes, DES_BLOCK_SIZE)); in __ecb3_crypt() 266 err = skcipher_walk_done(&walk, nbytes % DES_BLOCK_SIZE); in __ecb3_crypt() 313 DES_BLOCK_SIZE), in __cbc3_crypt() 319 DES_BLOCK_SIZE), in __cbc3_crypt() 321 err = skcipher_walk_done(&walk, nbytes % DES_BLOCK_SIZE); in __cbc3_crypt() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/aspeed/ |
H A D | aspeed-hace-crypto.c | 56 !IS_ALIGNED(areq->cryptlen, DES_BLOCK_SIZE)) in aspeed_crypto_need_fallback() 388 memcpy(crypto_engine->cipher_ctx + DES_BLOCK_SIZE, in aspeed_hace_skcipher_trigger() 389 req->iv, DES_BLOCK_SIZE); in aspeed_hace_skcipher_trigger() 417 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) in aspeed_des_crypt() 863 .cra_blocksize = DES_BLOCK_SIZE, 875 .ivsize = DES_BLOCK_SIZE, 890 .cra_blocksize = DES_BLOCK_SIZE, 902 .ivsize = DES_BLOCK_SIZE, 917 .cra_blocksize = DES_BLOCK_SIZE, 929 .ivsize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | atmel-tdes.c | 86 u8 lastc[DES_BLOCK_SIZE]; 337 dd->buflen &= ~(DES_BLOCK_SIZE - 1); in atmel_tdes_buff_init() 721 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) { in atmel_tdes_crypt() 725 ctx->block_size = DES_BLOCK_SIZE; in atmel_tdes_crypt() 925 .base.cra_blocksize = DES_BLOCK_SIZE, 937 .base.cra_blocksize = DES_BLOCK_SIZE, 942 .ivsize = DES_BLOCK_SIZE, 950 .base.cra_blocksize = DES_BLOCK_SIZE, 955 .ivsize = DES_BLOCK_SIZE, 968 .ivsize = DES_BLOCK_SIZE, [all...] |
H A D | omap-des.c | 45 #define DES_BLOCK_WORDS (DES_BLOCK_SIZE >> 2) 552 ret = omap_crypto_align_sg(&dd->in_sg, dd->total, DES_BLOCK_SIZE, in omap_des_prepare_req() 558 ret = omap_crypto_align_sg(&dd->out_sg, dd->total, DES_BLOCK_SIZE, in omap_des_prepare_req() 643 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) in omap_des_crypt() 742 .base.cra_blocksize = DES_BLOCK_SIZE, 759 .base.cra_blocksize = DES_BLOCK_SIZE, 765 .ivsize = DES_BLOCK_SIZE, 901 BUG_ON(dd->total < DES_BLOCK_SIZE); in omap_des_irq() 903 dd->total -= DES_BLOCK_SIZE; in omap_des_irq()
|
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | atmel-tdes.c | 86 u8 lastc[DES_BLOCK_SIZE]; 329 dd->buflen &= ~(DES_BLOCK_SIZE - 1); in atmel_tdes_buff_init() 709 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) { in atmel_tdes_crypt() 713 ctx->block_size = DES_BLOCK_SIZE; in atmel_tdes_crypt() 912 .base.cra_blocksize = DES_BLOCK_SIZE, 924 .base.cra_blocksize = DES_BLOCK_SIZE, 929 .ivsize = DES_BLOCK_SIZE, 937 .base.cra_blocksize = DES_BLOCK_SIZE, 942 .ivsize = DES_BLOCK_SIZE, 955 .ivsize = DES_BLOCK_SIZE, [all...] |
H A D | omap-des.c | 41 #define DES_BLOCK_WORDS (DES_BLOCK_SIZE >> 2) 541 ret = omap_crypto_align_sg(&dd->in_sg, dd->total, DES_BLOCK_SIZE, in omap_des_prepare_req() 547 ret = omap_crypto_align_sg(&dd->out_sg, dd->total, DES_BLOCK_SIZE, in omap_des_prepare_req() 633 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) in omap_des_crypt() 722 .base.cra_blocksize = DES_BLOCK_SIZE, 742 .base.cra_blocksize = DES_BLOCK_SIZE, 748 .ivsize = DES_BLOCK_SIZE, 892 BUG_ON(dd->total < DES_BLOCK_SIZE); in omap_des_irq() 894 dd->total -= DES_BLOCK_SIZE; in omap_des_irq()
|
/kernel/linux/linux-5.10/include/crypto/ |
H A D | des.h | 13 #define DES_BLOCK_SIZE 8 macro 17 #define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE
|
/kernel/linux/linux-6.6/include/crypto/ |
H A D | des.h | 13 #define DES_BLOCK_SIZE 8 macro 17 #define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE
|
/kernel/linux/linux-5.10/drivers/crypto/stm32/ |
H A D | stm32-cryp.c | 897 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_ecb_encrypt() 908 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_ecb_decrypt() 919 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_cbc_encrypt() 930 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_cbc_decrypt() 941 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_ecb_encrypt() 952 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_ecb_decrypt() 963 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_cbc_encrypt() 974 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_cbc_decrypt() 1009 cryp->hw_blocksize = is_aes(cryp) ? AES_BLOCK_SIZE : DES_BLOCK_SIZE; in stm32_cryp_prepare_req() 1602 .base.cra_blocksize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-6.6/drivers/crypto/stm32/ |
H A D | stm32-cryp.c | 1066 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_ecb_encrypt() 1077 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_ecb_decrypt() 1088 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_cbc_encrypt() 1099 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_cbc_decrypt() 1110 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_ecb_encrypt() 1121 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_ecb_decrypt() 1132 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_cbc_encrypt() 1143 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_cbc_decrypt() 1175 cryp->hw_blocksize = is_aes(cryp) ? AES_BLOCK_SIZE : DES_BLOCK_SIZE; in stm32_cryp_prepare_req() 1758 .base.cra_blocksize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-5.10/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_skcipher.c | 275 if (block == DES_BLOCK_SIZE) { in rk_ablk_hw_init() 372 if (ivsize == DES_BLOCK_SIZE) in rk_cipher_run() 522 .base.cra_blocksize = DES_BLOCK_SIZE, 544 .base.cra_blocksize = DES_BLOCK_SIZE, 553 .ivsize = DES_BLOCK_SIZE, 567 .base.cra_blocksize = DES_BLOCK_SIZE, 589 .base.cra_blocksize = DES_BLOCK_SIZE, 598 .ivsize = DES_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_skcipher.c | 262 if (block == DES_BLOCK_SIZE) { in rk_cipher_hw_init() 368 if (ivsize == DES_BLOCK_SIZE) in rk_cipher_run() 520 .base.cra_blocksize = DES_BLOCK_SIZE, 545 .base.cra_blocksize = DES_BLOCK_SIZE, 554 .ivsize = DES_BLOCK_SIZE, 571 .base.cra_blocksize = DES_BLOCK_SIZE, 596 .base.cra_blocksize = DES_BLOCK_SIZE, 605 .ivsize = DES_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | caamalg_qi.c | 1503 .cra_blocksize = DES_BLOCK_SIZE, 1510 .ivsize = DES_BLOCK_SIZE, 2181 .cra_blocksize = DES_BLOCK_SIZE, 2187 .ivsize = DES_BLOCK_SIZE, 2203 .cra_blocksize = DES_BLOCK_SIZE, 2209 .ivsize = DES_BLOCK_SIZE, 2225 .cra_blocksize = DES_BLOCK_SIZE, 2231 .ivsize = DES_BLOCK_SIZE, 2247 .cra_blocksize = DES_BLOCK_SIZE, 2253 .ivsize = DES_BLOCK_SIZE, [all...] |
H A D | caamalg.c | 1899 .cra_blocksize = DES_BLOCK_SIZE, 1906 .ivsize = DES_BLOCK_SIZE, 1973 .cra_blocksize = DES_BLOCK_SIZE, 2745 .cra_blocksize = DES_BLOCK_SIZE, 2751 .ivsize = DES_BLOCK_SIZE, 2767 .cra_blocksize = DES_BLOCK_SIZE, 2773 .ivsize = DES_BLOCK_SIZE, 2789 .cra_blocksize = DES_BLOCK_SIZE, 2795 .ivsize = DES_BLOCK_SIZE, 2811 .cra_blocksize = DES_BLOCK_SIZE, [all...] |
H A D | caamalg_qi2.c | 1705 .cra_blocksize = DES_BLOCK_SIZE, 1712 .ivsize = DES_BLOCK_SIZE, 2399 .cra_blocksize = DES_BLOCK_SIZE, 2405 .ivsize = DES_BLOCK_SIZE, 2421 .cra_blocksize = DES_BLOCK_SIZE, 2427 .ivsize = DES_BLOCK_SIZE, 2443 .cra_blocksize = DES_BLOCK_SIZE, 2449 .ivsize = DES_BLOCK_SIZE, 2465 .cra_blocksize = DES_BLOCK_SIZE, 2471 .ivsize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-6.6/drivers/crypto/caam/ |
H A D | caamalg_qi.c | 1519 .cra_blocksize = DES_BLOCK_SIZE, 1526 .ivsize = DES_BLOCK_SIZE, 2197 .cra_blocksize = DES_BLOCK_SIZE, 2203 .ivsize = DES_BLOCK_SIZE, 2219 .cra_blocksize = DES_BLOCK_SIZE, 2225 .ivsize = DES_BLOCK_SIZE, 2241 .cra_blocksize = DES_BLOCK_SIZE, 2247 .ivsize = DES_BLOCK_SIZE, 2263 .cra_blocksize = DES_BLOCK_SIZE, 2269 .ivsize = DES_BLOCK_SIZE, [all...] |
H A D | caamalg.c | 1931 .cra_blocksize = DES_BLOCK_SIZE, 1938 .ivsize = DES_BLOCK_SIZE, 2017 .cra_blocksize = DES_BLOCK_SIZE, 2897 .cra_blocksize = DES_BLOCK_SIZE, 2903 .ivsize = DES_BLOCK_SIZE, 2922 .cra_blocksize = DES_BLOCK_SIZE, 2928 .ivsize = DES_BLOCK_SIZE, 2947 .cra_blocksize = DES_BLOCK_SIZE, 2953 .ivsize = DES_BLOCK_SIZE, 2972 .cra_blocksize = DES_BLOCK_SIZE, [all...] |
H A D | caamalg_qi2.c | 1712 .cra_blocksize = DES_BLOCK_SIZE, 1719 .ivsize = DES_BLOCK_SIZE, 2406 .cra_blocksize = DES_BLOCK_SIZE, 2412 .ivsize = DES_BLOCK_SIZE, 2428 .cra_blocksize = DES_BLOCK_SIZE, 2434 .ivsize = DES_BLOCK_SIZE, 2450 .cra_blocksize = DES_BLOCK_SIZE, 2456 .ivsize = DES_BLOCK_SIZE, 2472 .cra_blocksize = DES_BLOCK_SIZE, 2478 .ivsize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/ |
H A D | safexcel_cipher.c | 1514 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_skcipher_des_cbc_cra_init() 1529 .ivsize = DES_BLOCK_SIZE, 1537 .cra_blocksize = DES_BLOCK_SIZE, 1575 .cra_blocksize = DES_BLOCK_SIZE, 2092 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_aead_sha1_des_cra_init() 2104 .ivsize = DES_BLOCK_SIZE, 2113 .cra_blocksize = DES_BLOCK_SIZE, 2129 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_aead_sha256_des_cra_init() 2141 .ivsize = DES_BLOCK_SIZE, 2150 .cra_blocksize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-6.6/drivers/crypto/inside-secure/ |
H A D | safexcel_cipher.c | 1534 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_skcipher_des_cbc_cra_init() 1549 .ivsize = DES_BLOCK_SIZE, 1557 .cra_blocksize = DES_BLOCK_SIZE, 1595 .cra_blocksize = DES_BLOCK_SIZE, 2112 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_aead_sha1_des_cra_init() 2124 .ivsize = DES_BLOCK_SIZE, 2133 .cra_blocksize = DES_BLOCK_SIZE, 2149 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_aead_sha256_des_cra_init() 2161 .ivsize = DES_BLOCK_SIZE, 2170 .cra_blocksize = DES_BLOCK_SIZE, [all...] |
/kernel/linux/linux-5.10/drivers/crypto/qce/ |
H A D | skcipher.c | 351 .blocksize = DES_BLOCK_SIZE, 360 .blocksize = DES_BLOCK_SIZE, 361 .ivsize = DES_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-core.c | 139 .ivsize = DES_BLOCK_SIZE, 144 .cra_blocksize = DES_BLOCK_SIZE, 165 .cra_blocksize = DES_BLOCK_SIZE,
|