mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 11:18:59 +00:00
Fix integer suffix rejected by some MSVC versions
This commit is contained in:
parent
42cc641159
commit
8d77eeeaf6
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ int gcm_update( gcm_context *ctx,
|
|||
/* Total length is restricted to 2^39 - 256 bits, ie 2^36 - 2^5 bytes
|
||||
* Also check for possible overflow */
|
||||
if( ctx->len + length < ctx->len ||
|
||||
(uint64_t) ctx->len + length > 0x03FFFFE0llu )
|
||||
(uint64_t) ctx->len + length > 0x03FFFFE0ull )
|
||||
{
|
||||
return( POLARSSL_ERR_GCM_BAD_INPUT );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue