Home
last modified time | relevance | path

Searched refs:num_rounds (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/contrib/bearssl/inc/
H A Dbearssl_block.h714 unsigned num_rounds; member
729 unsigned num_rounds; member
745 unsigned num_rounds; member
761 unsigned num_rounds; member
934 unsigned num_rounds; member
949 unsigned num_rounds; member
965 unsigned num_rounds; member
981 unsigned num_rounds; member
1153 unsigned num_rounds; member
1168 unsigned num_rounds; member
[all …]
/freebsd/contrib/bearssl/src/symcipher/
H A Daes_x86ni_ctrcbc.c43 ctx->num_rounds = br_aes_x86ni_keysched_enc(ctx->skey.skni, key, len); in br_aes_x86ni_ctrcbc_init()
55 unsigned num_rounds; in br_aes_x86ni_ctrcbc_ctr() local
62 num_rounds = ctx->num_rounds; in br_aes_x86ni_ctrcbc_ctr()
63 for (u = 0; u <= num_rounds; u ++) { in br_aes_x86ni_ctrcbc_ctr()
143 if (num_rounds == 10) { in br_aes_x86ni_ctrcbc_ctr()
148 } else if (num_rounds == 12) { in br_aes_x86ni_ctrcbc_ctr()
261 unsigned num_rounds; in br_aes_x86ni_ctrcbc_mac() local
267 num_rounds = ctx->num_rounds; in br_aes_x86ni_ctrcbc_mac()
268 for (u = 0; u <= num_rounds; u ++) { in br_aes_x86ni_ctrcbc_mac()
285 if (num_rounds == 10) { in br_aes_x86ni_ctrcbc_mac()
[all …]
H A Daes_x86ni.c213 unsigned num_rounds; in br_aes_x86ni_keysched_enc() local
215 num_rounds = x86ni_keysched(sk, key, len); in br_aes_x86ni_keysched_enc()
216 memcpy(skni, sk, (num_rounds + 1) << 4); in br_aes_x86ni_keysched_enc()
217 return num_rounds; in br_aes_x86ni_keysched_enc()
226 unsigned u, num_rounds; in br_aes_x86ni_keysched_dec() local
228 num_rounds = x86ni_keysched(sk, key, len); in br_aes_x86ni_keysched_dec()
229 _mm_storeu_si128((void *)skni, sk[num_rounds]); in br_aes_x86ni_keysched_dec()
230 for (u = 1; u < num_rounds; u ++) { in br_aes_x86ni_keysched_dec()
232 _mm_aesimc_si128(sk[num_rounds - u])); in br_aes_x86ni_keysched_dec()
234 _mm_storeu_si128((void *)(skni + (num_rounds << 4)), sk[0]); in br_aes_x86ni_keysched_dec()
[all …]
H A Daes_common.c73 unsigned num_rounds; in br_aes_keysched() local
78 num_rounds = 10; in br_aes_keysched()
81 num_rounds = 12; in br_aes_keysched()
84 num_rounds = 14; in br_aes_keysched()
91 nkf = (int)((num_rounds + 1) << 2); in br_aes_keysched()
111 return num_rounds; in br_aes_keysched()
H A Daes_x86ni_cbcenc.c43 ctx->num_rounds = br_aes_x86ni_keysched_enc(ctx->skey.skni, key, len); in br_aes_x86ni_cbcenc_init()
55 unsigned num_rounds; in br_aes_x86ni_cbcenc_run() local
61 num_rounds = ctx->num_rounds; in br_aes_x86ni_cbcenc_run()
62 for (u = 0; u <= num_rounds; u ++) { in br_aes_x86ni_cbcenc_run()
79 if (num_rounds == 10) { in br_aes_x86ni_cbcenc_run()
81 } else if (num_rounds == 12) { in br_aes_x86ni_cbcenc_run()
H A Daes_big_dec.c146 unsigned num_rounds; in br_aes_big_keysched_inv() local
154 num_rounds = br_aes_keysched(skey, key, key_len); in br_aes_big_keysched_inv()
155 m = (int)(num_rounds << 2); in br_aes_big_keysched_inv()
172 return num_rounds; in br_aes_big_keysched_inv()
188 br_aes_big_decrypt(unsigned num_rounds, const uint32_t *skey, void *data) in br_aes_big_decrypt() argument
200 s0 ^= skey[(num_rounds << 2) + 0]; in br_aes_big_decrypt()
201 s1 ^= skey[(num_rounds << 2) + 1]; in br_aes_big_decrypt()
202 s2 ^= skey[(num_rounds << 2) + 2]; in br_aes_big_decrypt()
203 s3 ^= skey[(num_rounds << 2) + 3]; in br_aes_big_decrypt()
204 for (u = num_rounds - 1; u > 0; u --) { in br_aes_big_decrypt()
H A Daes_big_enc.c89 br_aes_big_encrypt(unsigned num_rounds, const uint32_t *skey, void *data) in br_aes_big_encrypt() argument
105 for (u = 1; u < num_rounds; u ++) { in br_aes_big_encrypt()
149 s0 = t0 ^ skey[num_rounds << 2]; in br_aes_big_encrypt()
150 s1 = t1 ^ skey[(num_rounds << 2) + 1]; in br_aes_big_encrypt()
151 s2 = t2 ^ skey[(num_rounds << 2) + 2]; in br_aes_big_encrypt()
152 s3 = t3 ^ skey[(num_rounds << 2) + 3]; in br_aes_big_encrypt()
H A Daes_ct_ctrcbc.c33 ctx->num_rounds = br_aes_ct_keysched(ctx->skey, key, len); in br_aes_ct_ctrcbc_init()
59 br_aes_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct_ctrcbc_ctr()
107 br_aes_ct_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct_ctrcbc_ctr()
143 br_aes_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct_ctrcbc_mac()
162 br_aes_ct_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct_ctrcbc_mac()
197 br_aes_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct_ctrcbc_encrypt()
248 br_aes_ct_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct_ctrcbc_encrypt()
295 br_aes_ct_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct_ctrcbc_encrypt()
326 br_aes_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct_ctrcbc_decrypt()
377 br_aes_ct_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct_ctrcbc_decrypt()
H A Daes_ct64_ctrcbc.c33 ctx->num_rounds = br_aes_ct64_keysched(ctx->skey, key, len); in br_aes_ct64_ctrcbc_init()
59 br_aes_ct64_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct64_ctrcbc_ctr()
106 br_aes_ct64_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct64_ctrcbc_ctr()
138 br_aes_ct64_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct64_ctrcbc_mac()
157 br_aes_ct64_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct64_ctrcbc_mac()
194 br_aes_ct64_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct64_ctrcbc_encrypt()
248 br_aes_ct64_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct64_ctrcbc_encrypt()
299 ctx->num_rounds, sk_exp, q); in br_aes_ct64_ctrcbc_encrypt()
332 br_aes_ct64_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct64_ctrcbc_decrypt()
386 br_aes_ct64_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct64_ctrcbc_decrypt()
H A Daes_x86ni_cbcdec.c43 ctx->num_rounds = br_aes_x86ni_keysched_dec(ctx->skey.skni, key, len); in br_aes_x86ni_cbcdec_init()
55 unsigned num_rounds; in br_aes_x86ni_cbcdec_run() local
61 num_rounds = ctx->num_rounds; in br_aes_x86ni_cbcdec_run()
62 for (u = 0; u <= num_rounds; u ++) { in br_aes_x86ni_cbcdec_run()
135 if (num_rounds == 10) { in br_aes_x86ni_cbcdec_run()
140 } else if (num_rounds == 12) { in br_aes_x86ni_cbcdec_run()
H A Daes_x86ni_ctr.c43 ctx->num_rounds = br_aes_x86ni_keysched_enc(ctx->skey.skni, key, len); in br_aes_x86ni_ctr_init()
56 unsigned num_rounds; in br_aes_x86ni_ctr_run() local
63 num_rounds = ctx->num_rounds; in br_aes_x86ni_ctr_run()
64 for (u = 0; u <= num_rounds; u ++) { in br_aes_x86ni_ctr_run()
115 if (num_rounds == 10) { in br_aes_x86ni_ctr_run()
120 } else if (num_rounds == 12) { in br_aes_x86ni_ctr_run()
H A Ddes_ct_cbcenc.c33 ctx->num_rounds = br_des_ct_keysched(ctx->skey, key, len); in br_des_ct_cbcenc_init()
44 br_des_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_des_ct_cbcenc_run()
53 br_des_ct_process_block(ctx->num_rounds, sk_exp, buf); in br_des_ct_cbcenc_run()
H A Daes_ct64_cbcenc.c33 ctx->num_rounds = br_aes_ct64_keysched(ctx->skey, key, len); in br_aes_ct64_cbcenc_init()
45 br_aes_ct64_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct64_cbcenc_run()
58 br_aes_ct64_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct64_cbcenc_run()
H A Ddes_ct_cbcdec.c33 ctx->num_rounds = br_des_ct_keysched(ctx->skey, key, len); in br_des_ct_cbcdec_init()
60 br_des_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_des_ct_cbcdec_run()
68 br_des_ct_process_block(ctx->num_rounds, sk_exp, buf); in br_des_ct_cbcdec_run()
H A Daes_ct.c259 unsigned num_rounds; in br_aes_ct_keysched() local
266 num_rounds = 10; in br_aes_ct_keysched()
269 num_rounds = 12; in br_aes_ct_keysched()
272 num_rounds = 14; in br_aes_ct_keysched()
279 nkf = (int)((num_rounds + 1) << 2); in br_aes_ct_keysched()
308 return num_rounds; in br_aes_ct_keysched()
314 unsigned num_rounds, const uint32_t *comp_skey) in br_aes_ct_skey_expand() argument
318 n = (num_rounds + 1) << 2; in br_aes_ct_skey_expand()
H A Daes_ct_cbcenc.c33 ctx->num_rounds = br_aes_ct_keysched(ctx->skey, key, len); in br_aes_ct_cbcenc_init()
50 br_aes_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct_cbcenc_run()
63 br_aes_ct_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct_cbcenc_run()
H A Daes_ct64_cbcdec.c33 ctx->num_rounds = br_aes_ct64_keysched(ctx->skey, key, len); in br_aes_ct64_cbcdec_init()
45 br_aes_ct64_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct64_cbcdec_run()
63 br_aes_ct64_bitslice_decrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct64_cbcdec_run()
H A Daes_ct_ctr.c33 ctx->num_rounds = br_aes_ct_keysched(ctx->skey, key, len); in br_aes_ct_ctr_init()
59 br_aes_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct_ctr_run()
79 br_aes_ct_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct_ctr_run()
H A Daes_ct64_ctr.c33 ctx->num_rounds = br_aes_ct64_keysched(ctx->skey, key, len); in br_aes_ct64_ctr_init()
58 br_aes_ct64_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct64_ctr_run()
84 br_aes_ct64_bitslice_encrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct64_ctr_run()
H A Daes_ct64.c311 unsigned num_rounds; in br_aes_ct64_keysched() local
318 num_rounds = 10; in br_aes_ct64_keysched()
321 num_rounds = 12; in br_aes_ct64_keysched()
324 num_rounds = 14; in br_aes_ct64_keysched()
331 nkf = (int)((num_rounds + 1) << 2); in br_aes_ct64_keysched()
371 return num_rounds; in br_aes_ct64_keysched()
377 unsigned num_rounds, const uint64_t *comp_skey) in br_aes_ct64_skey_expand() argument
381 n = (num_rounds + 1) << 1; in br_aes_ct64_skey_expand()
H A Daes_ct_cbcdec.c33 ctx->num_rounds = br_aes_ct_keysched(ctx->skey, key, len); in br_aes_ct_cbcdec_init()
45 br_aes_ct_skey_expand(sk_exp, ctx->num_rounds, ctx->skey); in br_aes_ct_cbcdec_run()
72 br_aes_ct_bitslice_decrypt(ctx->num_rounds, sk_exp, q); in br_aes_ct_cbcdec_run()
H A Daes_small_ctrcbc.c33 ctx->num_rounds = br_aes_keysched(ctx->skey, key, len); in br_aes_small_ctrcbc_init()
71 br_aes_small_encrypt(ctx->num_rounds, ctx->skey, tmp); in br_aes_small_ctrcbc_ctr()
99 br_aes_small_encrypt(ctx->num_rounds, ctx->skey, cbcmac); in br_aes_small_ctrcbc_mac()
H A Daes_small_enc.c106 br_aes_small_encrypt(unsigned num_rounds, const uint32_t *skey, void *data) in br_aes_small_encrypt() argument
117 for (u = 1; u < num_rounds; u ++) { in br_aes_small_encrypt()
125 add_round_key(state, skey + (num_rounds << 2)); in br_aes_small_encrypt()
H A Daes_big_ctrcbc.c33 ctx->num_rounds = br_aes_keysched(ctx->skey, key, len); in br_aes_big_ctrcbc_init()
71 br_aes_big_encrypt(ctx->num_rounds, ctx->skey, tmp); in br_aes_big_ctrcbc_ctr()
99 br_aes_big_encrypt(ctx->num_rounds, ctx->skey, cbcmac); in br_aes_big_ctrcbc_mac()
H A Daes_ct64_enc.c100 br_aes_ct64_bitslice_encrypt(unsigned num_rounds, in br_aes_ct64_bitslice_encrypt() argument
106 for (u = 1; u < num_rounds; u ++) { in br_aes_ct64_bitslice_encrypt()
114 add_round_key(q, skey + (num_rounds << 3)); in br_aes_ct64_bitslice_encrypt()

12