Home
last modified time | relevance | path

Searched full:rounds (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/kernel/linux/linux-4.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
65 /* up to 4 interleaved encryption rounds with the same round key */
74 /* up to 4 interleaved final rounds */
[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-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);
42 * # of rounds specified by AES: in num_rounds()
43 * 128 bit key 10 rounds in num_rounds()
44 * 192 bit key 12 rounds in num_rounds()
45 * 256 bit key 14 rounds in num_rounds()
46 * => n byte key => 6 + (n/4) rounds in num_rounds()
/kernel/linux/linux-5.10/arch/arm64/crypto/
Daes-ce.S28 .macro load_round_keys, rounds, rk
29 cmp \rounds, #12
40 .macro enc_prepare, rounds, rk, temp
42 load_round_keys \rounds, \temp
46 .macro enc_switch_key, rounds, rk, temp
48 load_round_keys \rounds, \temp
52 .macro dec_prepare, rounds, rk, temp
54 load_round_keys \rounds, \temp
76 /* up to 5 interleaved encryption rounds with the same round key */
85 /* up to 5 interleaved final rounds */
[all …]
Daes-neonbs-glue.c26 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
29 int rounds, int blocks);
31 int rounds, int blocks);
34 int rounds, int blocks, u8 iv[]);
37 int rounds, int blocks, u8 iv[], u8 final[]);
40 int rounds, int blocks, u8 iv[]);
42 int rounds, int blocks, u8 iv[]);
46 int rounds, int blocks);
48 int rounds, int blocks, u8 iv[]);
50 u32 const rk1[], int rounds, int bytes,
[all …]
Daes-glue.c75 int rounds, int blocks);
77 int rounds, int blocks);
80 int rounds, int blocks, u8 iv[]);
82 int rounds, int blocks, u8 iv[]);
85 int rounds, int bytes, u8 const iv[]);
87 int rounds, int bytes, u8 const iv[]);
90 int rounds, int blocks, u8 ctr[]);
93 int rounds, int bytes, u32 const rk2[], u8 iv[],
96 int rounds, int bytes, u32 const rk2[], u8 iv[],
100 int rounds, int blocks, u8 iv[],
[all …]
Daes-cipher-glue.c12 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
13 asmlinkage void __aes_arm64_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
18 int rounds = 6 + ctx->key_length / 4; in aes_arm64_encrypt() local
20 __aes_arm64_encrypt(ctx->key_enc, out, in, rounds); in aes_arm64_encrypt()
26 int rounds = 6 + ctx->key_length / 4; in aes_arm64_decrypt() local
28 __aes_arm64_decrypt(ctx->key_dec, out, in, rounds); in aes_arm64_decrypt()
Daes-ce-glue.c27 asmlinkage void __aes_ce_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
28 asmlinkage void __aes_ce_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
37 * # of rounds specified by AES: in num_rounds()
38 * 128 bit key 10 rounds in num_rounds()
39 * 192 bit key 12 rounds in num_rounds()
40 * 256 bit key 14 rounds in num_rounds()
41 * => n byte key => 6 + (n/4) rounds in num_rounds()
/kernel/linux/linux-5.10/tools/power/cpupower/bench/
Dbenchmark.c24 * compute how many rounds of calculation we should do
29 * @retval rounds of calculation
37 unsigned int rounds = 0; in calculate_timespace() local
43 /* get the initial calculation time for a specific number of rounds */ in calculate_timespace()
45 ROUNDS(estimated); in calculate_timespace()
53 rounds = (unsigned int)(load * estimated / timed); in calculate_timespace()
54 dprintf("calibrating with %u rounds\n", rounds); in calculate_timespace()
56 ROUNDS(rounds); in calculate_timespace()
60 estimated = rounds; in calculate_timespace()
91 for (_round = 1; _round <= config->rounds; _round++) in start_benchmark()
[all …]
/kernel/linux/linux-4.19/arch/x86/crypto/
Dsha1_ni_asm.S87 * The indented lines in the loop are instructions related to rounds processing.
116 /* Save hash values for addition after rounds */
120 /* Rounds 0-3 */
127 /* Rounds 4-7 */
135 /* Rounds 8-11 */
144 /* Rounds 12-15 */
154 /* Rounds 16-19 */
162 /* Rounds 20-23 */
170 /* Rounds 24-27 */
178 /* Rounds 28-31 */
[all …]
Dsha256_ni_asm.S88 * The indented lines in the loop are instructions related to rounds processing.
124 /* Save hash values for addition after rounds */
128 /* Rounds 0-3 */
137 /* Rounds 4-7 */
147 /* Rounds 8-11 */
157 /* Rounds 12-15 */
171 /* Rounds 16-19 */
183 /* Rounds 20-23 */
195 /* Rounds 24-27 */
207 /* Rounds 28-31 */
[all …]
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);
/kernel/linux/linux-5.10/arch/x86/crypto/
Dsha1_ni_asm.S87 * The indented lines in the loop are instructions related to rounds processing.
116 /* Save hash values for addition after rounds */
120 /* Rounds 0-3 */
127 /* Rounds 4-7 */
135 /* Rounds 8-11 */
144 /* Rounds 12-15 */
154 /* Rounds 16-19 */
162 /* Rounds 20-23 */
170 /* Rounds 24-27 */
178 /* Rounds 28-31 */
[all …]
Dsha256_ni_asm.S88 * The indented lines in the loop are instructions related to rounds processing.
124 /* Save hash values for addition after rounds */
128 /* Rounds 0-3 */
137 /* Rounds 4-7 */
147 /* Rounds 8-11 */
157 /* Rounds 12-15 */
171 /* Rounds 16-19 */
183 /* Rounds 20-23 */
195 /* Rounds 24-27 */
207 /* Rounds 28-31 */
[all …]
/kernel/linux/linux-4.19/tools/power/cpupower/bench/
Dbenchmark.c37 * compute how many rounds of calculation we should do
42 * @retval rounds of calculation
50 unsigned int rounds = 0; in calculate_timespace() local
56 /* get the initial calculation time for a specific number of rounds */ in calculate_timespace()
58 ROUNDS(estimated); in calculate_timespace()
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()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/crypto/
Daes-spe-glue.c44 u32 rounds; member
51 u32 rounds; member
54 extern void ppc_encrypt_aes(u8 *out, const u8 *in, u32 *key_enc, u32 rounds);
55 extern void ppc_decrypt_aes(u8 *out, const u8 *in, u32 *key_dec, u32 rounds);
56 extern void ppc_encrypt_ecb(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
58 extern void ppc_decrypt_ecb(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
60 extern void ppc_encrypt_cbc(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
62 extern void ppc_decrypt_cbc(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
64 extern void ppc_crypt_ctr (u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
66 extern void ppc_encrypt_xts(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
[all …]
/kernel/linux/linux-4.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 …]
/kernel/linux/linux-4.19/arch/arm/crypto/
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-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-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[],
56 * # of rounds specified by AES: in num_rounds()
57 * 128 bit key 10 rounds in num_rounds()
58 * 192 bit key 12 rounds in num_rounds()
[all …]
/kernel/linux/linux-5.10/arch/arm/crypto/
Daes-neonbs-glue.c26 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
29 int rounds, int blocks);
31 int rounds, int blocks);
34 int rounds, int blocks, u8 iv[]);
37 int rounds, int blocks, u8 ctr[], u8 final[]);
40 int rounds, int blocks, u8 iv[], int);
42 int rounds, int blocks, u8 iv[], int);
45 int rounds; member
76 ctx->rounds = 6 + key_len / 4; in aesbs_setkey()
79 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey()
[all …]
Daes-cipher-glue.c13 asmlinkage void __aes_arm_encrypt(u32 *rk, int rounds, const u8 *in, u8 *out);
14 asmlinkage void __aes_arm_decrypt(u32 *rk, int rounds, const u8 *in, u8 *out);
19 int rounds = 6 + ctx->key_length / 4; in aes_arm_encrypt() local
21 __aes_arm_encrypt(ctx->key_enc, rounds, in, out); in aes_arm_encrypt()
27 int rounds = 6 + ctx->key_length / 4; in aes_arm_decrypt() local
29 __aes_arm_decrypt(ctx->key_dec, rounds, in, out); in aes_arm_decrypt()
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[]);
39 int rounds, int bytes, u8 const iv[]);
41 int rounds, int bytes, u8 const iv[]);
44 int rounds, int blocks, u8 ctr[]);
47 int rounds, int bytes, u8 iv[],
50 int rounds, int bytes, u8 iv[],
60 * # of rounds specified by AES: in num_rounds()
[all …]

12345678910>>...13