Lines Matching defs:nrounds

50 aesbear_setkey(uint32_t rk[static 60], const void *key, uint32_t nrounds)
54 switch (nrounds) {
65 panic("invalid AES nrounds: %u", nrounds);
72 aesbear_setenckey(struct aesenc *enc, const uint8_t *key, uint32_t nrounds)
75 aesbear_setkey(enc->aese_aes.aes_rk, key, nrounds);
79 aesbear_setdeckey(struct aesdec *dec, const uint8_t *key, uint32_t nrounds)
86 aesbear_setkey(dec->aesd_aes.aes_rk, key, nrounds);
91 uint8_t out[static 16], uint32_t nrounds)
97 br_aes_ct_skey_expand(sk_exp, nrounds, enc->aese_aes.aes_rk);
108 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);
124 uint8_t out[static 16], uint32_t nrounds)
130 br_aes_ct_skey_expand(sk_exp, nrounds, dec->aesd_aes.aes_rk);
141 br_aes_ct_bitslice_decrypt(nrounds, sk_exp, q);
158 uint32_t nrounds)
171 br_aes_ct_skey_expand(sk_exp, nrounds, enc->aese_aes.aes_rk);
191 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);
219 uint32_t nrounds)
232 br_aes_ct_skey_expand(sk_exp, nrounds, dec->aesd_aes.aes_rk);
265 br_aes_ct_bitslice_decrypt(nrounds, sk_exp, q);
305 br_aes_ct_bitslice_decrypt(nrounds, sk_exp, q);
395 uint32_t nrounds)
408 br_aes_ct_skey_expand(sk_exp, nrounds, enc->aese_aes.aes_rk);
429 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);
465 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);
499 uint32_t nrounds)
512 br_aes_ct_skey_expand(sk_exp, nrounds, dec->aesd_aes.aes_rk);
533 br_aes_ct_bitslice_decrypt(nrounds, sk_exp, q);
569 br_aes_ct_bitslice_decrypt(nrounds, sk_exp, q);
602 size_t nbytes, uint8_t auth[static 16], uint32_t nrounds)
611 br_aes_ct_skey_expand(sk_exp, nrounds, enc->aese_aes.aes_rk);
631 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);
648 size_t nbytes, uint8_t authctr[32], uint32_t nrounds)
658 br_aes_ct_skey_expand(sk_exp, nrounds, enc->aese_aes.aes_rk);
687 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);
713 size_t nbytes, uint8_t authctr[32], uint32_t nrounds)
724 br_aes_ct_skey_expand(sk_exp, nrounds, enc->aese_aes.aes_rk);
746 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);
786 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);
797 br_aes_ct_bitslice_encrypt(nrounds, sk_exp, q);