Home
last modified time | relevance | path

Searched refs:rounds (Results 1 – 25 of 60) sorted by relevance

123

/Linux-v4.19/arch/arm64/crypto/
Daes-ce.S21 .macro load_round_keys, rounds, rk
22 cmp \rounds, #12
33 .macro enc_prepare, rounds, rk, temp
35 load_round_keys \rounds, \temp
39 .macro enc_switch_key, rounds, rk, temp
41 load_round_keys \rounds, \temp
45 .macro dec_prepare, rounds, rk, temp
47 load_round_keys \rounds, \temp
95 .macro do_block_Nx, enc, rounds, i0, i1, i2, i3
96 cmp \rounds, #12
[all …]
Daes-neonbs-glue.c29 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
32 int rounds, int blocks);
34 int rounds, int blocks);
37 int rounds, int blocks, u8 iv[]);
40 int rounds, int blocks, u8 iv[], u8 final[]);
43 int rounds, int blocks, u8 iv[]);
45 int rounds, int blocks, u8 iv[]);
49 int rounds, int blocks);
51 int rounds, int blocks, u8 iv[]);
55 int rounds; member
[all …]
Daes-glue.c67 int rounds, int blocks);
69 int rounds, int blocks);
72 int rounds, int blocks, u8 iv[]);
74 int rounds, int blocks, u8 iv[]);
77 int rounds, int blocks, u8 ctr[]);
80 int rounds, int blocks, u8 const rk2[], u8 iv[],
83 int rounds, int blocks, u8 const rk2[], u8 iv[],
86 asmlinkage void aes_mac_update(u8 const in[], u32 const rk[], int rounds,
136 int err, rounds = 6 + ctx->key_length / 4; in ecb_encrypt() local
145 (u8 *)ctx->key_enc, rounds, blocks); in ecb_encrypt()
[all …]
Daes-cipher-glue.c15 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
18 asmlinkage void __aes_arm64_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
24 int rounds = 6 + ctx->key_length / 4; in aes_encrypt() local
26 __aes_arm64_encrypt(ctx->key_enc, out, in, rounds); in aes_encrypt()
32 int rounds = 6 + ctx->key_length / 4; in aes_decrypt() local
34 __aes_arm64_decrypt(ctx->key_dec, out, in, rounds); in aes_decrypt()
Daes-neon.S88 .macro do_block, enc, in, rounds, rk, rkp, i
91 mov \i, \rounds
104 .macro encrypt_block, in, rounds, rk, rkp, i
105 do_block 1, \in, \rounds, \rk, \rkp, \i
108 .macro decrypt_block, in, rounds, rk, rkp, i
109 do_block 0, \in, \rounds, \rk, \rkp, \i
212 .macro do_block_2x, enc, in0, in1, rounds, rk, rkp, i
215 mov \i, \rounds
231 .macro do_block_4x, enc, in0, in1, in2, in3, rounds, rk, rkp, i
234 mov \i, \rounds
[all …]
Daes-ce-glue.c25 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
26 asmlinkage void __aes_arm64_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
32 asmlinkage void __aes_ce_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
33 asmlinkage void __aes_ce_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
Daes-cipher-core.S20 rounds .req x3
105 tbnz rounds, #1, 1f
110 1: subs rounds, rounds, #4
Daes-ce-ccm-glue.c35 u32 *macp, u32 const rk[], u32 rounds);
38 u32 const rk[], u32 rounds, u8 mac[],
42 u32 const rk[], u32 rounds, u8 mac[],
46 u32 rounds);
48 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
/Linux-v4.19/arch/powerpc/crypto/
Daes-spe-glue.c46 u32 rounds; member
53 u32 rounds; member
56 extern void ppc_encrypt_aes(u8 *out, const u8 *in, u32 *key_enc, u32 rounds);
57 extern void ppc_decrypt_aes(u8 *out, const u8 *in, u32 *key_dec, u32 rounds);
58 extern void ppc_encrypt_ecb(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
60 extern void ppc_decrypt_ecb(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
62 extern void ppc_encrypt_cbc(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
64 extern void ppc_decrypt_cbc(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
66 extern void ppc_crypt_ctr (u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
68 extern void ppc_encrypt_xts(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
[all …]
/Linux-v4.19/arch/arm/crypto/
Daes-cipher-glue.c16 asmlinkage void __aes_arm_encrypt(u32 *rk, int rounds, const u8 *in, u8 *out);
19 asmlinkage void __aes_arm_decrypt(u32 *rk, int rounds, const u8 *in, u8 *out);
25 int rounds = 6 + ctx->key_length / 4; in aes_encrypt() local
27 __aes_arm_encrypt(ctx->key_enc, rounds, in, out); in aes_encrypt()
33 int rounds = 6 + ctx->key_length / 4; in aes_decrypt() local
35 __aes_arm_decrypt(ctx->key_dec, rounds, in, out); in aes_decrypt()
Daes-neonbs-glue.c27 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
30 int rounds, int blocks);
32 int rounds, int blocks);
35 int rounds, int blocks, u8 iv[]);
38 int rounds, int blocks, u8 ctr[], u8 final[]);
41 int rounds, int blocks, u8 iv[]);
43 int rounds, int blocks, u8 iv[]);
46 int rounds; member
71 ctx->rounds = 6 + key_len / 4; in aesbs_setkey()
74 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey()
[all …]
Daes-ce-glue.c30 int rounds, int blocks);
32 int rounds, int blocks);
35 int rounds, int blocks, u8 iv[]);
37 int rounds, int blocks, u8 iv[]);
40 int rounds, int blocks, u8 ctr[]);
43 int rounds, int blocks, u8 iv[],
46 int rounds, int blocks, u8 iv[],
300 int err, first, rounds = num_rounds(&ctx->key1); in xts_encrypt() local
309 (u8 *)ctx->key1.key_enc, rounds, blocks, in xts_encrypt()
322 int err, first, rounds = num_rounds(&ctx->key1); in xts_decrypt() local
[all …]
Daes-cipher-core.S19 rounds .req r1
142 tst rounds, #2
148 1: subs rounds, rounds, #4
/Linux-v4.19/tools/power/cpupower/bench/
Dbenchmark.c50 unsigned int rounds = 0; in calculate_timespace() local
66 rounds = (unsigned int)(load * estimated / timed); in calculate_timespace()
67 dprintf("calibrating with %u rounds\n", rounds); in calculate_timespace()
69 ROUNDS(rounds); in calculate_timespace()
73 estimated = rounds; in calculate_timespace()
104 for (_round = 1; _round <= config->rounds; _round++) in start_benchmark()
108 for (_round = 0; _round < config->rounds; _round++) { in start_benchmark()
Dmain.c139 sscanf(optarg, "%u", &config->rounds); in main()
187 config->rounds, in main()
DREADME-BENCH47 rounds=5
66 This shows expected results of the first two test run rounds from
117 -r, --rounds<int> load/sleep rounds
/Linux-v4.19/arch/x86/crypto/
Dsha1_ssse3_glue.c35 unsigned int rounds);
74 unsigned int rounds);
127 unsigned int rounds);
198 unsigned int rounds);
211 unsigned int rounds) in sha1_apply_transform_avx2() argument
214 if (rounds >= SHA1_AVX2_BLOCK_OPTSIZE) in sha1_apply_transform_avx2()
215 sha1_transform_avx2(digest, data, rounds); in sha1_apply_transform_avx2()
217 sha1_transform_avx(digest, data, rounds); in sha1_apply_transform_avx2()
275 unsigned int rounds);
Dsha256_ssse3_glue.c44 u64 rounds);
45 typedef void (sha256_transform_fn)(u32 *digest, const char *data, u64 rounds);
148 u64 rounds);
230 u64 rounds);
310 u64 rounds); /*unsigned int rounds);*/
Dsha512_ssse3_glue.c43 u64 rounds);
45 typedef void (sha512_transform_fn)(u64 *digest, const char *data, u64 rounds);
148 u64 rounds);
229 u64 rounds);
/Linux-v4.19/drivers/crypto/vmx/
Daesp8-ppc.pl120 my ($inp,$bits,$out,$ptr,$cnt,$rounds)=map("r$_",(3..8));
261 li $rounds,10
335 li $rounds,12
343 li $rounds,14
397 stw $rounds,0($out)
417 slwi $cnt,$rounds,4
419 srwi $rounds,$rounds,1
421 mtctr $rounds
459 my ($inp,$out,$key,$rounds,$idx)=map("r$_",(3..7));
463 lwz $rounds,240($key)
[all …]
/Linux-v4.19/arch/sparc/crypto/
Dsha1_glue.c27 unsigned int rounds);
52 const unsigned int rounds = (len - done) / SHA1_BLOCK_SIZE; in __sha1_sparc64_update() local
54 sha1_sparc64_transform(sctx->state, data + done, rounds); in __sha1_sparc64_update()
55 done += rounds * SHA1_BLOCK_SIZE; in __sha1_sparc64_update()
Dmd5_glue.c30 unsigned int rounds);
57 const unsigned int rounds = (len - done) / MD5_HMAC_BLOCK_SIZE; in __md5_sparc64_update() local
59 md5_sparc64_transform(sctx->hash, data + done, rounds); in __md5_sparc64_update()
60 done += rounds * MD5_HMAC_BLOCK_SIZE; in __md5_sparc64_update()
Dsha512_glue.c26 unsigned int rounds);
73 const unsigned int rounds = (len - done) / SHA512_BLOCK_SIZE; in __sha512_sparc64_update() local
75 sha512_sparc64_transform(sctx->state, data + done, rounds); in __sha512_sparc64_update()
76 done += rounds * SHA512_BLOCK_SIZE; in __sha512_sparc64_update()
Dsha256_glue.c27 unsigned int rounds);
73 const unsigned int rounds = (len - done) / SHA256_BLOCK_SIZE; in __sha256_sparc64_update() local
75 sha256_sparc64_transform(sctx->state, data + done, rounds); in __sha256_sparc64_update()
76 done += rounds * SHA256_BLOCK_SIZE; in __sha256_sparc64_update()
/Linux-v4.19/drivers/md/
Ddm-verity-fec.c42 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave()
452 res = div64_u64(offset, v->fec->rounds << v->data_dev_block_bits); in verity_fec_decode()
458 rsb = offset - res * (v->fec->rounds << v->data_dev_block_bits); in verity_fec_decode()
722 f->rounds = f->blocks; in verity_fec_ctr()
723 if (sector_div(f->rounds, f->rsn)) in verity_fec_ctr()
724 f->rounds++; in verity_fec_ctr()
730 if (f->blocks < v->data_blocks + hash_blocks || !f->rounds) { in verity_fec_ctr()
755 ((f->start + f->rounds * f->roots) >> v->data_dev_block_bits)) { in verity_fec_ctr()

123