commit | 492519a7b43d18ff6d8c89b0283e95feaa892022 | [log] [tgz] |
---|---|---|
author | Simon Butcher <simon.butcher@arm.com> | Mon Jan 04 12:49:41 2016 +0000 |
committer | Simon Butcher <simon.butcher@arm.com> | Mon Jan 04 12:49:41 2016 +0000 |
tree | 70f5ebdfb51ae4c5fa9f765150c934c64f839b9e | |
parent | 55bd7e450c338763741cf037bace6a33935023c0 [diff] |
Fix to compile on MSVC 2010 64bit Changed literal suffix in gcm.c from llu to ull as the former is not recognised by MS Visual Studio 2010.
diff --git a/library/gcm.c b/library/gcm.c index 5b39867..00c51ff 100644 --- a/library/gcm.c +++ b/library/gcm.c
@@ -199,7 +199,7 @@ if( ( (uint64_t) iv_len ) >> 61 != 0 || ( (uint64_t) add_len ) >> 61 != 0 || tag_len > 16 || tag_len < 4 || - length > 0x03FFFFE0llu ) + length > 0x03FFFFE0ull ) { return( POLARSSL_ERR_GCM_BAD_INPUT ); }