Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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.c52 be128 ctrblk; in serpent_crypt_ctr() local
56 le128_to_be128(&ctrblk, iv); in serpent_crypt_ctr()
59 __serpent_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in serpent_crypt_ctr()
60 u128_xor(dst, src, (u128 *)&ctrblk); in serpent_crypt_ctr()
Dglue_helper.c176 le128 ctrblk; in glue_ctr_req_128bit() local
181 be128_to_le128(&ctrblk, (be128 *)walk.iv); in glue_ctr_req_128bit()
194 &ctrblk); in glue_ctr_req_128bit()
204 le128_to_be128((be128 *)walk.iv, &ctrblk); in glue_ctr_req_128bit()
211 le128 ctrblk; in glue_ctr_req_128bit() local
214 be128_to_le128(&ctrblk, (be128 *)walk.iv); in glue_ctr_req_128bit()
218 &ctrblk); in glue_ctr_req_128bit()
220 le128_to_be128((be128 *)walk.iv, &ctrblk); in glue_ctr_req_128bit()
Dtwofish_glue_3way.c57 be128 ctrblk; in twofish_enc_blk_ctr() local
64 le128_to_be128(&ctrblk, iv); in twofish_enc_blk_ctr()
67 twofish_enc_blk(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in twofish_enc_blk_ctr()
68 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()
Dcast6_avx_glue.c53 be128 ctrblk; in cast6_crypt_ctr() local
57 le128_to_be128(&ctrblk, iv); in cast6_crypt_ctr()
60 __cast6_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in cast6_crypt_ctr()
61 u128_xor(dst, src, (u128 *)&ctrblk); in cast6_crypt_ctr()
Dserpent_avx_glue.c49 be128 ctrblk; in __serpent_crypt_ctr() local
53 le128_to_be128(&ctrblk, iv); in __serpent_crypt_ctr()
56 __serpent_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); in __serpent_crypt_ctr()
57 u128_xor(dst, src, (u128 *)&ctrblk); in __serpent_crypt_ctr()
Dcamellia_glue.c1279 be128 ctrblk; in camellia_crypt_ctr() local
1286 le128_to_be128(&ctrblk, iv); in camellia_crypt_ctr()
1289 camellia_enc_blk_xor(ctx, (u8 *)dst, (u8 *)&ctrblk); in camellia_crypt_ctr()
Daesni-intel_glue.c464 u8 *ctrblk = walk->iv; in ctr_crypt_final() local
470 aesni_enc(ctx, keystream, ctrblk); in ctr_crypt_final()
473 crypto_inc(ctrblk, AES_BLOCK_SIZE); in ctr_crypt_final()
/kernel/linux/linux-5.10/arch/s390/crypto/
Ddes_s390.c25 static u8 *ctrblk; variable
333 n = __ctrblk_init(ctrblk, walk.iv, nbytes); in ctr_desall_crypt()
334 ctrptr = (n > DES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_desall_crypt()
337 if (ctrptr == ctrblk) in ctr_desall_crypt()
429 if (ctrblk) in des_s390_exit()
430 free_page((unsigned long) ctrblk); in des_s390_exit()
471 ctrblk = (u8 *) __get_free_page(GFP_KERNEL); in des_s390_init()
472 if (!ctrblk) { in des_s390_init()
Dpaes_s390.c39 static u8 *ctrblk; variable
651 n = __ctrblk_init(ctrblk, walk.iv, nbytes); in ctr_paes_crypt()
652 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_paes_crypt()
656 if (ctrptr == ctrblk) in ctr_paes_crypt()
729 if (ctrblk) in paes_s390_fini()
730 free_page((unsigned long) ctrblk); in paes_s390_fini()
768 ctrblk = (u8 *) __get_free_page(GFP_KERNEL); in paes_s390_init()
769 if (!ctrblk) { in paes_s390_init()
Daes_s390.c36 static u8 *ctrblk; variable
587 n = __ctrblk_init(ctrblk, walk.iv, nbytes); in ctr_aes_crypt()
588 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_aes_crypt()
591 if (ctrptr == ctrblk) in ctr_aes_crypt()
979 if (ctrblk) in aes_s390_fini()
980 free_page((unsigned long) ctrblk); in aes_s390_fini()
1026 ctrblk = (u8 *) __get_free_page(GFP_KERNEL); in aes_s390_init()
1027 if (!ctrblk) { in aes_s390_init()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/sparc/crypto/
Daes_glue.c322 u8 *ctrblk = walk->iv; in ctr_crypt_final() local
328 ctx->ops->ecb_encrypt(&ctx->key[0], (const u64 *)ctrblk, in ctr_crypt_final()
331 crypto_inc(ctrblk, AES_BLOCK_SIZE); in ctr_crypt_final()