/openbmc/linux/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 …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/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()
|
H A D | n2_core.c | 1099 .block_size = DES_BLOCK_SIZE, 1112 .block_size = DES_BLOCK_SIZE, 1116 .ivsize = DES_BLOCK_SIZE, 1126 .block_size = DES_BLOCK_SIZE, 1141 .block_size = DES_BLOCK_SIZE, 1154 .block_size = DES_BLOCK_SIZE, 1158 .ivsize = DES_BLOCK_SIZE, 1168 .block_size = DES_BLOCK_SIZE,
|
H A D | sa2ul.c | 2027 .base.cra_blocksize = DES_BLOCK_SIZE, 2034 .ivsize = DES_BLOCK_SIZE, 2050 .base.cra_blocksize = DES_BLOCK_SIZE,
|
/openbmc/linux/include/crypto/ |
H A D | des.h | 13 #define DES_BLOCK_SIZE 8 macro 17 #define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE
|
/openbmc/linux/drivers/crypto/stm32/ |
H A D | stm32-cryp.c | 1067 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_ecb_encrypt() 1078 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_ecb_decrypt() 1089 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_cbc_encrypt() 1100 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_cbc_decrypt() 1111 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_ecb_encrypt() 1122 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_ecb_decrypt() 1133 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_cbc_encrypt() 1144 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_cbc_decrypt() 1176 cryp->hw_blocksize = is_aes(cryp) ? AES_BLOCK_SIZE : DES_BLOCK_SIZE; in stm32_cryp_prepare_req() 1762 .base.cra_blocksize = DES_BLOCK_SIZE, [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/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,
|
/openbmc/linux/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 …]
|
/openbmc/linux/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,
|
/openbmc/linux/drivers/crypto/marvell/cesa/ |
H A D | cipher.c | 524 .cra_blocksize = DES_BLOCK_SIZE, 539 memcpy(tmpl->ctx.skcipher.iv, req->iv, DES_BLOCK_SIZE); in mv_cesa_cbc_des_op() 568 .ivsize = DES_BLOCK_SIZE, 575 .cra_blocksize = DES_BLOCK_SIZE,
|
/openbmc/linux/drivers/crypto/qce/ |
H A D | skcipher.c | 402 .blocksize = DES_BLOCK_SIZE, 411 .blocksize = DES_BLOCK_SIZE, 412 .ivsize = DES_BLOCK_SIZE,
|
H A D | aead.c | 705 .blocksize = DES_BLOCK_SIZE, 706 .ivsize = DES_BLOCK_SIZE, 721 .blocksize = DES_BLOCK_SIZE, 722 .ivsize = DES_BLOCK_SIZE,
|
/openbmc/linux/crypto/ |
H A D | des_generic.c | 90 .cra_blocksize = DES_BLOCK_SIZE,
|
/openbmc/linux/drivers/crypto/bcm/ |
H A D | cipher.c | 3224 .cra_blocksize = DES_BLOCK_SIZE, 3230 .ivsize = DES_BLOCK_SIZE, 3249 .cra_blocksize = DES_BLOCK_SIZE, 3255 .ivsize = DES_BLOCK_SIZE, 3274 .cra_blocksize = DES_BLOCK_SIZE, 3280 .ivsize = DES_BLOCK_SIZE, 3299 .cra_blocksize = DES_BLOCK_SIZE, 3305 .ivsize = DES_BLOCK_SIZE, 3324 .cra_blocksize = DES_BLOCK_SIZE, 3330 .ivsize = DES_BLOCK_SIZE, [all …]
|
/openbmc/linux/drivers/crypto/intel/ixp4xx/ |
H A D | ixp4xx_crypto.c | 1319 .base.cra_blocksize = DES_BLOCK_SIZE, 1323 .ivsize = DES_BLOCK_SIZE, 1331 .base.cra_blocksize = DES_BLOCK_SIZE, 1413 .cra_blocksize = DES_BLOCK_SIZE, 1415 .ivsize = DES_BLOCK_SIZE, 1438 .cra_blocksize = DES_BLOCK_SIZE, 1440 .ivsize = DES_BLOCK_SIZE,
|
/openbmc/linux/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 425 .ivsize = DES_BLOCK_SIZE, 443 .ivsize = DES_BLOCK_SIZE,
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_cipher.c | 132 if (IS_ALIGNED(size, DES_BLOCK_SIZE)) in validate_data_size() 1296 .blocksize = DES_BLOCK_SIZE, 1303 .ivsize = DES_BLOCK_SIZE, 1313 .blocksize = DES_BLOCK_SIZE,
|
/openbmc/linux/drivers/crypto/hisilicon/sec/ |
H A D | sec_algs.c | 1020 .cra_blocksize = DES_BLOCK_SIZE, 1040 .cra_blocksize = DES_BLOCK_SIZE, 1052 .ivsize = DES_BLOCK_SIZE,
|
/openbmc/qemu/crypto/ |
H A D | cipher-nettle.c.inc | 244 uint8_t iv[DES_BLOCK_SIZE]; 260 DES_BLOCK_SIZE, des_encrypt_native, des_decrypt_native)
|