Home | History | Annotate | Download | only in aes

Lines Matching defs:num_rounds

272 	unsigned num_rounds;
279 num_rounds = 10;
282 num_rounds = 12;
285 num_rounds = 14;
292 nkf = (int)((num_rounds + 1) << 2);
321 return num_rounds;
327 unsigned num_rounds, const uint32_t *comp_skey)
331 n = (num_rounds + 1) << 2;
348 unsigned num_rounds;
354 num_rounds = 10;
357 num_rounds = 12;
360 num_rounds = 14;
367 nkf = (int)((num_rounds + 1) << 2);
387 return num_rounds;
395 unsigned num_rounds;
398 num_rounds = br_aes_ct_keysched_stdenc(skey, key, key_len);
399 if (num_rounds == 0)
402 tkey[0] = skey[4*num_rounds + 0];
403 tkey[1] = skey[4*num_rounds + 1];
404 tkey[2] = skey[4*num_rounds + 2];
405 tkey[3] = skey[4*num_rounds + 3];
406 for (i = 1; i < num_rounds; i++) {
417 tkey[4*(num_rounds - i) + 0] = q[2*0];
418 tkey[4*(num_rounds - i) + 1] = q[2*1];
419 tkey[4*(num_rounds - i) + 2] = q[2*2];
420 tkey[4*(num_rounds - i) + 3] = q[2*3];
422 tkey[4*num_rounds + 0] = skey[0];
423 tkey[4*num_rounds + 1] = skey[1];
424 tkey[4*num_rounds + 2] = skey[2];
425 tkey[4*num_rounds + 3] = skey[3];
427 memcpy(skey, tkey, 4*(num_rounds + 1)*sizeof(uint32_t));
428 explicit_memset(tkey, 0, 4*(num_rounds + 1)*sizeof(uint32_t));
429 return num_rounds;