Lines Matching defs:nrounds
361 aes_neon_setenckey(struct aesenc *enc, const uint8_t *key, unsigned nrounds)
375 switch (nrounds) {
379 if (--nrounds == 0)
406 if ((nrounds -= 3) == 0)
430 if ((nrounds -= 2) == 0)
446 panic("invalid number of AES rounds: %u", nrounds);
452 aes_neon_setdeckey(struct aesdec *dec, const uint8_t *key, unsigned nrounds)
460 unsigned i = nrounds == 12 ? 0 : 2;
468 rk32 += 4*nrounds;
473 switch (nrounds) {
477 if (--nrounds == 0)
504 if ((nrounds -= 3) == 0)
528 if ((nrounds -= 2) == 0)
544 panic("invalid number of AES rounds: %u", nrounds);
558 aes_neon_enc1(const struct aesenc *enc, uint8x16_t x, unsigned nrounds)
579 if (--nrounds == 0)
595 aes_neon_enc2(const struct aesenc *enc, uint8x16x2_t x, unsigned nrounds)
621 if (--nrounds == 0)
648 aes_neon_dec1(const struct aesdec *dec, uint8x16_t x, unsigned nrounds)
651 unsigned i = 3 & ~(nrounds - 1);
663 if (--nrounds == 0)
687 aes_neon_dec2(const struct aesdec *dec, uint8x16x2_t x, unsigned nrounds)
690 unsigned i = 3 & ~(nrounds - 1);
706 if (--nrounds == 0)