aria: remove leftover in comments
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
76e4c6352d
commit
779a1a5b20
1 changed files with 2 additions and 4 deletions
|
@ -578,8 +578,7 @@ int mbedtls_aria_crypt_cfb128(mbedtls_aria_context *ctx,
|
||||||
n = *iv_off;
|
n = *iv_off;
|
||||||
|
|
||||||
/* An overly large value of n can lead to an unlimited
|
/* An overly large value of n can lead to an unlimited
|
||||||
* buffer overflow. Therefore, guard against this
|
* buffer overflow. */
|
||||||
* outside of parameter validation. */
|
|
||||||
if (n >= MBEDTLS_ARIA_BLOCKSIZE) {
|
if (n >= MBEDTLS_ARIA_BLOCKSIZE) {
|
||||||
return MBEDTLS_ERR_ARIA_BAD_INPUT_DATA;
|
return MBEDTLS_ERR_ARIA_BAD_INPUT_DATA;
|
||||||
}
|
}
|
||||||
|
@ -631,8 +630,7 @@ int mbedtls_aria_crypt_ctr(mbedtls_aria_context *ctx,
|
||||||
|
|
||||||
n = *nc_off;
|
n = *nc_off;
|
||||||
/* An overly large value of n can lead to an unlimited
|
/* An overly large value of n can lead to an unlimited
|
||||||
* buffer overflow. Therefore, guard against this
|
* buffer overflow. */
|
||||||
* outside of parameter validation. */
|
|
||||||
if (n >= MBEDTLS_ARIA_BLOCKSIZE) {
|
if (n >= MBEDTLS_ARIA_BLOCKSIZE) {
|
||||||
return MBEDTLS_ERR_ARIA_BAD_INPUT_DATA;
|
return MBEDTLS_ERR_ARIA_BAD_INPUT_DATA;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue