Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/s390/crypto/
H A 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 …]
/openbmc/linux/arch/sparc/crypto/
H A 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 …]
/openbmc/linux/drivers/crypto/aspeed/
H A Daspeed-hace-crypto.c56 !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 Datmel-tdes.c86 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 Domap-des.c41 #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 Dn2_core.c1099 .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 Dsa2ul.c2027 .base.cra_blocksize = DES_BLOCK_SIZE,
2034 .ivsize = DES_BLOCK_SIZE,
2050 .base.cra_blocksize = DES_BLOCK_SIZE,
/openbmc/linux/include/crypto/
H A Ddes.h13 #define DES_BLOCK_SIZE 8 macro
17 #define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE
/openbmc/linux/drivers/crypto/stm32/
H A Dstm32-cryp.c1067 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 Dcaamalg_qi.c1519 .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 Dcaamalg.c1931 .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 Dcaamalg_qi2.c1712 .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 Drk3288_crypto_skcipher.c262 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 Dsafexcel_cipher.c1534 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 Dsun4i-ss-core.c139 .ivsize = DES_BLOCK_SIZE,
144 .cra_blocksize = DES_BLOCK_SIZE,
165 .cra_blocksize = DES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/marvell/cesa/
H A 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,
/openbmc/linux/drivers/crypto/qce/
H A Dskcipher.c402 .blocksize = DES_BLOCK_SIZE,
411 .blocksize = DES_BLOCK_SIZE,
412 .ivsize = DES_BLOCK_SIZE,
H A Daead.c705 .blocksize = DES_BLOCK_SIZE,
706 .ivsize = DES_BLOCK_SIZE,
721 .blocksize = DES_BLOCK_SIZE,
722 .ivsize = DES_BLOCK_SIZE,
/openbmc/linux/crypto/
H A Ddes_generic.c90 .cra_blocksize = DES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/bcm/
H A Dcipher.c3224 .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 Dixp4xx_crypto.c1319 .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 Dcptvf_algs.c425 .ivsize = DES_BLOCK_SIZE,
443 .ivsize = DES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/ccree/
H A 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,
/openbmc/linux/drivers/crypto/hisilicon/sec/
H A Dsec_algs.c1020 .cra_blocksize = DES_BLOCK_SIZE,
1040 .cra_blocksize = DES_BLOCK_SIZE,
1052 .ivsize = DES_BLOCK_SIZE,
/openbmc/qemu/crypto/
H A Dcipher-nettle.c.inc244 uint8_t iv[DES_BLOCK_SIZE];
260 DES_BLOCK_SIZE, des_encrypt_native, des_decrypt_native)

12