Lines Matching refs:skey
275 uint32_t skey[120];
296 skey[(i << 1) + 0] = tmp;
297 skey[(i << 1) + 1] = tmp;
306 tmp ^= skey[(i - nk) << 1];
307 skey[(i << 1) + 0] = tmp;
308 skey[(i << 1) + 1] = tmp;
315 br_aes_ct_ortho(skey + (i << 1));
318 comp_skey[i] = (skey[j + 0] & 0x55555555)
319 | (skey[j + 1] & 0xAAAAAAAA);
326 br_aes_ct_skey_expand(uint32_t *skey,
337 skey[v + 0] = x | (x << 1);
339 skey[v + 1] = y | (y >> 1);
346 br_aes_ct_keysched_stdenc(uint32_t *skey, const void *key, size_t key_len)
371 skey[i] = tmp;
380 tmp ^= skey[i - nk];
381 skey[i] = tmp;
391 br_aes_ct_keysched_stddec(uint32_t *skey, const void *key, size_t key_len)
398 num_rounds = br_aes_ct_keysched_stdenc(skey, key, key_len);
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];
407 q[2*0] = skey[4*i + 0];
408 q[2*1] = skey[4*i + 1];
409 q[2*2] = skey[4*i + 2];
410 q[2*3] = skey[4*i + 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));