Lines Matching defs:nrounds
307 aes_ssse3_setenckey(struct aesenc *enc, const uint8_t *key, unsigned nrounds)
321 switch (nrounds) {
325 if (--nrounds == 0)
352 if ((nrounds -= 3) == 0)
376 if ((nrounds -= 2) == 0)
389 panic("invalid number of AES rounds: %u", nrounds);
395 aes_ssse3_setdeckey(struct aesdec *dec, const uint8_t *key, unsigned nrounds)
403 unsigned i = nrounds == 12 ? 0 : 2;
411 rk32 += 4*nrounds;
416 switch (nrounds) {
420 if (--nrounds == 0)
447 if ((nrounds -= 3) == 0)
471 if ((nrounds -= 2) == 0)
484 panic("invalid number of AES rounds: %u", nrounds);
490 aes_ssse3_enc1(const struct aesenc *enc, __m128i x, unsigned nrounds)
505 if (--nrounds == 0)
523 aes_ssse3_dec1(const struct aesdec *dec, __m128i x, unsigned nrounds)
526 unsigned i = 3 & ~(nrounds - 1);
536 if (--nrounds == 0)