aria: number of rounds is non-negative

This commit is contained in:
Manuel Pégourié-Gonnard 2018-03-01 09:39:01 +01:00
parent 7fc08795c1
commit 906bc90b30

View file

@ -63,7 +63,7 @@ extern "C" {
*/
typedef struct
{
int nr; /*!< The number of rounds (12, 14 or 16) */
unsigned char nr; /*!< The number of rounds (12, 14 or 16) */
/*! The ARIA round keys. */
uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS + 1][MBEDTLS_ARIA_BLOCKSIZE / 4];
}