Home
last modified time | relevance | path

Searched refs:ctrblk (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.4/arch/x86/crypto/
Dblowfish_glue.c252 u8 *ctrblk = walk->iv; in ctr_crypt_final() local
258 blowfish_enc_blk(ctx, keystream, ctrblk); in ctr_crypt_final()
261 crypto_inc(ctrblk, BF_BLOCK_SIZE); in ctr_crypt_final()
270 u64 ctrblk = be64_to_cpu(*(__be64 *)walk->iv); in __ctr_crypt() local
284 ctrblocks[0] = cpu_to_be64(ctrblk++); in __ctr_crypt()
285 ctrblocks[1] = cpu_to_be64(ctrblk++); in __ctr_crypt()
286 ctrblocks[2] = cpu_to_be64(ctrblk++); in __ctr_crypt()
287 ctrblocks[3] = cpu_to_be64(ctrblk++); in __ctr_crypt()
305 ctrblocks[0] = cpu_to_be64(ctrblk++); in __ctr_crypt()
314 *(__be64 *)walk->iv = cpu_to_be64(ctrblk); in __ctr_crypt()
Dcast5_avx_glue.c219 u8 *ctrblk = walk->iv; in ctr_crypt_final() local
225 __cast5_encrypt(ctx, keystream, ctrblk); in ctr_crypt_final()
228 crypto_inc(ctrblk, CAST5_BLOCK_SIZE); in ctr_crypt_final()
256 u64 ctrblk; in __ctr_crypt() local
261 ctrblk = *(u64 *)walk->iv; in __ctr_crypt()
264 __cast5_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in __ctr_crypt()
265 *dst ^= ctrblk; in __ctr_crypt()
Dserpent_sse2_glue.c50 be128 ctrblk; in serpent_crypt_ctr() local
52 le128_to_be128(&ctrblk, iv); in serpent_crypt_ctr()
55 __serpent_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in serpent_crypt_ctr()
56 u128_xor(dst, src, (u128 *)&ctrblk); in serpent_crypt_ctr()
Dglue_helper.c175 le128 ctrblk; in glue_ctr_req_128bit() local
180 be128_to_le128(&ctrblk, (be128 *)walk.iv); in glue_ctr_req_128bit()
191 gctx->funcs[i].fn_u.ctr(ctx, dst, src, &ctrblk); in glue_ctr_req_128bit()
201 le128_to_be128((be128 *)walk.iv, &ctrblk); in glue_ctr_req_128bit()
208 le128 ctrblk; in glue_ctr_req_128bit() local
211 be128_to_le128(&ctrblk, (be128 *)walk.iv); in glue_ctr_req_128bit()
214 &ctrblk); in glue_ctr_req_128bit()
216 le128_to_be128((be128 *)walk.iv, &ctrblk); in glue_ctr_req_128bit()
Dtwofish_glue_3way.c56 be128 ctrblk; in twofish_enc_blk_ctr() local
61 le128_to_be128(&ctrblk, iv); in twofish_enc_blk_ctr()
64 twofish_enc_blk(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in twofish_enc_blk_ctr()
65 u128_xor(dst, dst, (u128 *)&ctrblk); in twofish_enc_blk_ctr()
Ddes3_ede_glue.c259 u8 *ctrblk = walk->iv; in ctr_crypt_final() local
265 des3_ede_enc_blk(ctx, keystream, ctrblk); in ctr_crypt_final()
268 crypto_inc(ctrblk, DES3_EDE_BLOCK_SIZE); in ctr_crypt_final()
278 u64 ctrblk = be64_to_cpu(*(__be64 *)walk->iv); in __ctr_crypt() local
285 ctrblocks[0] = cpu_to_be64(ctrblk++); in __ctr_crypt()
286 ctrblocks[1] = cpu_to_be64(ctrblk++); in __ctr_crypt()
287 ctrblocks[2] = cpu_to_be64(ctrblk++); in __ctr_crypt()
306 ctrblocks[0] = cpu_to_be64(ctrblk++); in __ctr_crypt()
317 *(__be64 *)walk->iv = cpu_to_be64(ctrblk); in __ctr_crypt()
Dserpent_avx_glue.c49 be128 ctrblk; in __serpent_crypt_ctr() local
51 le128_to_be128(&ctrblk, iv); in __serpent_crypt_ctr()
54 __serpent_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in __serpent_crypt_ctr()
55 u128_xor(dst, src, (u128 *)&ctrblk); in __serpent_crypt_ctr()
Dcast6_avx_glue.c58 be128 ctrblk; in cast6_crypt_ctr() local
60 le128_to_be128(&ctrblk, iv); in cast6_crypt_ctr()
63 __cast6_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in cast6_crypt_ctr()
64 u128_xor(dst, src, (u128 *)&ctrblk); in cast6_crypt_ctr()
Dcamellia_glue.c1282 be128 ctrblk; in camellia_crypt_ctr() local
1287 le128_to_be128(&ctrblk, iv); in camellia_crypt_ctr()
1290 camellia_enc_blk_xor(ctx, (u8 *)dst, (u8 *)&ctrblk); in camellia_crypt_ctr()
Daesni-intel_glue.c472 u8 *ctrblk = walk->iv; in ctr_crypt_final() local
478 aesni_enc(ctx, keystream, ctrblk); in ctr_crypt_final()
481 crypto_inc(ctrblk, AES_BLOCK_SIZE); in ctr_crypt_final()
/Linux-v5.4/crypto/
Dctr.c32 u8 *ctrblk = walk->iv; in crypto_ctr_crypt_final() local
39 crypto_cipher_encrypt_one(tfm, keystream, ctrblk); in crypto_ctr_crypt_final()
42 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_final()
51 u8 *ctrblk = walk->iv; in crypto_ctr_crypt_segment() local
58 fn(crypto_cipher_tfm(tfm), dst, ctrblk); in crypto_ctr_crypt_segment()
62 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_segment()
79 u8 *ctrblk = walk->iv; in crypto_ctr_crypt_inplace() local
86 fn(crypto_cipher_tfm(tfm), keystream, ctrblk); in crypto_ctr_crypt_inplace()
90 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_inplace()
/Linux-v5.4/arch/s390/crypto/
Ddes_s390.c24 static u8 *ctrblk; variable
381 n = __ctrblk_init(ctrblk, walk->iv, nbytes); in ctr_desall_crypt()
382 ctrptr = (n > DES_BLOCK_SIZE) ? ctrblk : walk->iv; in ctr_desall_crypt()
385 if (ctrptr == ctrblk) in ctr_desall_crypt()
504 if (ctrblk) in des_s390_exit()
505 free_page((unsigned long) ctrblk); in des_s390_exit()
546 ctrblk = (u8 *) __get_free_page(GFP_KERNEL); in des_s390_init()
547 if (!ctrblk) { in des_s390_init()
Dpaes_s390.c37 static u8 *ctrblk; variable
605 n = __ctrblk_init(ctrblk, walk->iv, nbytes); in ctr_paes_crypt()
606 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk->iv; in ctr_paes_crypt()
611 if (ctrptr == ctrblk) in ctr_paes_crypt()
700 if (ctrblk) in paes_s390_fini()
701 free_page((unsigned long) ctrblk); in paes_s390_fini()
746 ctrblk = (u8 *) __get_free_page(GFP_KERNEL); in paes_s390_init()
747 if (!ctrblk) { in paes_s390_init()
Daes_s390.c36 static u8 *ctrblk; variable
713 n = __ctrblk_init(ctrblk, walk->iv, nbytes); in ctr_aes_crypt()
714 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk->iv; in ctr_aes_crypt()
718 if (ctrptr == ctrblk) in ctr_aes_crypt()
1137 if (ctrblk) in aes_s390_fini()
1138 free_page((unsigned long) ctrblk); in aes_s390_fini()
1183 ctrblk = (u8 *) __get_free_page(GFP_KERNEL); in aes_s390_init()
1184 if (!ctrblk) { in aes_s390_init()
/Linux-v5.4/drivers/crypto/vmx/
Daes_ctr.c72 u8 *ctrblk = walk->iv; in p8_aes_ctr_final() local
81 aes_p8_encrypt(ctrblk, keystream, &ctx->enc_key); in p8_aes_ctr_final()
87 crypto_inc(ctrblk, AES_BLOCK_SIZE); in p8_aes_ctr_final()
/Linux-v5.4/arch/sparc/crypto/
Daes_glue.c340 u8 *ctrblk = walk->iv; in ctr_crypt_final() local
346 ctx->ops->ecb_encrypt(&ctx->key[0], (const u64 *)ctrblk, in ctr_crypt_final()
349 crypto_inc(ctrblk, AES_BLOCK_SIZE); in ctr_crypt_final()