Home
last modified time | relevance | path

Searched refs:DES_BLOCK_SIZE (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v6.1/arch/s390/crypto/
Ddes_s390.c31 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 …]
/Linux-v6.1/arch/sparc/crypto/
Ddes_glue.c113 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 …]
/Linux-v6.1/drivers/crypto/aspeed/
Daspeed-hace-crypto.c45 !IS_ALIGNED(areq->cryptlen, DES_BLOCK_SIZE)) in aspeed_crypto_need_fallback()
377 memcpy(crypto_engine->cipher_ctx + DES_BLOCK_SIZE, in aspeed_hace_skcipher_trigger()
378 req->iv, DES_BLOCK_SIZE); in aspeed_hace_skcipher_trigger()
406 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) in aspeed_des_crypt()
844 .cra_blocksize = DES_BLOCK_SIZE,
853 .ivsize = DES_BLOCK_SIZE,
868 .cra_blocksize = DES_BLOCK_SIZE,
877 .ivsize = DES_BLOCK_SIZE,
892 .cra_blocksize = DES_BLOCK_SIZE,
901 .ivsize = DES_BLOCK_SIZE,
[all …]
/Linux-v6.1/drivers/crypto/
Datmel-tdes.c86 u8 lastc[DES_BLOCK_SIZE];
329 dd->buflen &= ~(DES_BLOCK_SIZE - 1); in atmel_tdes_buff_init()
714 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) { in atmel_tdes_crypt()
718 ctx->block_size = DES_BLOCK_SIZE; in atmel_tdes_crypt()
917 .base.cra_blocksize = DES_BLOCK_SIZE,
929 .base.cra_blocksize = DES_BLOCK_SIZE,
934 .ivsize = DES_BLOCK_SIZE,
942 .base.cra_blocksize = DES_BLOCK_SIZE,
947 .ivsize = DES_BLOCK_SIZE,
960 .ivsize = DES_BLOCK_SIZE,
[all …]
Domap-des.c45 #define DES_BLOCK_WORDS (DES_BLOCK_SIZE >> 2)
551 ret = omap_crypto_align_sg(&dd->in_sg, dd->total, DES_BLOCK_SIZE, in omap_des_prepare_req()
557 ret = omap_crypto_align_sg(&dd->out_sg, dd->total, DES_BLOCK_SIZE, in omap_des_prepare_req()
642 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) in omap_des_crypt()
741 .base.cra_blocksize = DES_BLOCK_SIZE,
758 .base.cra_blocksize = DES_BLOCK_SIZE,
764 .ivsize = DES_BLOCK_SIZE,
900 BUG_ON(dd->total < DES_BLOCK_SIZE); in omap_des_irq()
902 dd->total -= DES_BLOCK_SIZE; in omap_des_irq()
Dixp4xx_crypto.c1313 .base.cra_blocksize = DES_BLOCK_SIZE,
1317 .ivsize = DES_BLOCK_SIZE,
1325 .base.cra_blocksize = DES_BLOCK_SIZE,
1407 .cra_blocksize = DES_BLOCK_SIZE,
1409 .ivsize = DES_BLOCK_SIZE,
1432 .cra_blocksize = DES_BLOCK_SIZE,
1434 .ivsize = DES_BLOCK_SIZE,
Dn2_core.c1098 .block_size = DES_BLOCK_SIZE,
1111 .block_size = DES_BLOCK_SIZE,
1115 .ivsize = DES_BLOCK_SIZE,
1125 .block_size = DES_BLOCK_SIZE,
1140 .block_size = DES_BLOCK_SIZE,
1153 .block_size = DES_BLOCK_SIZE,
1157 .ivsize = DES_BLOCK_SIZE,
1167 .block_size = DES_BLOCK_SIZE,
Dsa2ul.c2027 .base.cra_blocksize = DES_BLOCK_SIZE,
2034 .ivsize = DES_BLOCK_SIZE,
2050 .base.cra_blocksize = DES_BLOCK_SIZE,
/Linux-v6.1/drivers/crypto/stm32/
Dstm32-cryp.c910 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_ecb_encrypt()
921 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_ecb_decrypt()
932 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_cbc_encrypt()
943 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_des_cbc_decrypt()
954 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_ecb_encrypt()
965 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_ecb_decrypt()
976 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_cbc_encrypt()
987 if (req->cryptlen % DES_BLOCK_SIZE) in stm32_cryp_tdes_cbc_decrypt()
1022 cryp->hw_blocksize = is_aes(cryp) ? AES_BLOCK_SIZE : DES_BLOCK_SIZE; in stm32_cryp_prepare_req()
1615 .base.cra_blocksize = DES_BLOCK_SIZE,
[all …]
/Linux-v6.1/include/crypto/
Ddes.h13 #define DES_BLOCK_SIZE 8 macro
17 #define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE
/Linux-v6.1/drivers/crypto/rockchip/
Drk3288_crypto_skcipher.c208 if (block == DES_BLOCK_SIZE) { in rk_ablk_hw_init()
328 if (ivsize == DES_BLOCK_SIZE) in rk_update_iv()
455 .base.cra_blocksize = DES_BLOCK_SIZE,
477 .base.cra_blocksize = DES_BLOCK_SIZE,
486 .ivsize = DES_BLOCK_SIZE,
500 .base.cra_blocksize = DES_BLOCK_SIZE,
522 .base.cra_blocksize = DES_BLOCK_SIZE,
531 .ivsize = DES_BLOCK_SIZE,
/Linux-v6.1/drivers/crypto/caam/
Dcaamalg_qi.c1503 .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 …]
Dcaamalg.c1904 .cra_blocksize = DES_BLOCK_SIZE,
1911 .ivsize = DES_BLOCK_SIZE,
1978 .cra_blocksize = DES_BLOCK_SIZE,
2750 .cra_blocksize = DES_BLOCK_SIZE,
2756 .ivsize = DES_BLOCK_SIZE,
2772 .cra_blocksize = DES_BLOCK_SIZE,
2778 .ivsize = DES_BLOCK_SIZE,
2794 .cra_blocksize = DES_BLOCK_SIZE,
2800 .ivsize = DES_BLOCK_SIZE,
2816 .cra_blocksize = DES_BLOCK_SIZE,
[all …]
Dcaamalg_qi2.c1707 .cra_blocksize = DES_BLOCK_SIZE,
1714 .ivsize = DES_BLOCK_SIZE,
2401 .cra_blocksize = DES_BLOCK_SIZE,
2407 .ivsize = DES_BLOCK_SIZE,
2423 .cra_blocksize = DES_BLOCK_SIZE,
2429 .ivsize = DES_BLOCK_SIZE,
2445 .cra_blocksize = DES_BLOCK_SIZE,
2451 .ivsize = DES_BLOCK_SIZE,
2467 .cra_blocksize = DES_BLOCK_SIZE,
2473 .ivsize = DES_BLOCK_SIZE,
[all …]
/Linux-v6.1/drivers/crypto/inside-secure/
Dsafexcel_cipher.c1532 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_skcipher_des_cbc_cra_init()
1547 .ivsize = DES_BLOCK_SIZE,
1555 .cra_blocksize = DES_BLOCK_SIZE,
1593 .cra_blocksize = DES_BLOCK_SIZE,
2110 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_aead_sha1_des_cra_init()
2122 .ivsize = DES_BLOCK_SIZE,
2131 .cra_blocksize = DES_BLOCK_SIZE,
2147 ctx->blocksz = DES_BLOCK_SIZE; in safexcel_aead_sha256_des_cra_init()
2159 .ivsize = DES_BLOCK_SIZE,
2168 .cra_blocksize = DES_BLOCK_SIZE,
[all …]
/Linux-v6.1/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-core.c140 .ivsize = DES_BLOCK_SIZE,
145 .cra_blocksize = DES_BLOCK_SIZE,
166 .cra_blocksize = DES_BLOCK_SIZE,
/Linux-v6.1/drivers/crypto/qce/
Dskcipher.c402 .blocksize = DES_BLOCK_SIZE,
411 .blocksize = DES_BLOCK_SIZE,
412 .ivsize = DES_BLOCK_SIZE,
Daead.c705 .blocksize = DES_BLOCK_SIZE,
706 .ivsize = DES_BLOCK_SIZE,
721 .blocksize = DES_BLOCK_SIZE,
722 .ivsize = DES_BLOCK_SIZE,
/Linux-v6.1/drivers/crypto/marvell/cesa/
Dcipher.c524 .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,
/Linux-v6.1/crypto/
Ddes_generic.c90 .cra_blocksize = DES_BLOCK_SIZE,
/Linux-v6.1/drivers/crypto/bcm/
Dcipher.c3258 .cra_blocksize = DES_BLOCK_SIZE,
3264 .ivsize = DES_BLOCK_SIZE,
3283 .cra_blocksize = DES_BLOCK_SIZE,
3289 .ivsize = DES_BLOCK_SIZE,
3308 .cra_blocksize = DES_BLOCK_SIZE,
3314 .ivsize = DES_BLOCK_SIZE,
3333 .cra_blocksize = DES_BLOCK_SIZE,
3339 .ivsize = DES_BLOCK_SIZE,
3358 .cra_blocksize = DES_BLOCK_SIZE,
3364 .ivsize = DES_BLOCK_SIZE,
[all …]
/Linux-v6.1/drivers/crypto/cavium/cpt/
Dcptvf_algs.c427 .ivsize = DES_BLOCK_SIZE,
445 .ivsize = DES_BLOCK_SIZE,
/Linux-v6.1/drivers/crypto/ccree/
Dcc_cipher.c132 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,
/Linux-v6.1/drivers/crypto/hisilicon/sec/
Dsec_algs.c1020 .cra_blocksize = DES_BLOCK_SIZE,
1040 .cra_blocksize = DES_BLOCK_SIZE,
1052 .ivsize = DES_BLOCK_SIZE,
/Linux-v6.1/drivers/crypto/ux500/cryp/
Dcryp_core.c1139 .base.cra_blocksize = DES_BLOCK_SIZE,
1179 .base.cra_blocksize = DES_BLOCK_SIZE,
1189 .ivsize = DES_BLOCK_SIZE,

12