mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 17:18:07 +00:00
aes: xts: Correct NIST 80-38E to 800-38E
Correct a typo in an AES XTS implementation comment where the relevant NIST standard was incorrectly referred to as NIST 80-38E instead of NIST 800-38E.
This commit is contained in:
parent
8381fcb3f9
commit
a74faba27a
1 changed files with 1 additions and 1 deletions
|
@ -1146,7 +1146,7 @@ int mbedtls_aes_crypt_xts( mbedtls_aes_xts_context *ctx,
|
||||||
if( length < 16 )
|
if( length < 16 )
|
||||||
return MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH;
|
return MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH;
|
||||||
|
|
||||||
/* NIST SP 80-38E disallows data units larger than 2**20 blocks. */
|
/* NIST SP 800-38E disallows data units larger than 2**20 blocks. */
|
||||||
if( length > ( 1 << 20 ) * 16 )
|
if( length > ( 1 << 20 ) * 16 )
|
||||||
return MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH;
|
return MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue