diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-11 13:44:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-11 13:44:40 +0200 |
commit | 0c767d7ee229ca066aaa20216fce75d8b7d33255 (patch) | |
tree | 82c5a97bd95193f4811af77e35afb5c803545b0e /thirdparty/mbedtls/library/chacha20.c | |
parent | 49ce6bacc338d4279c121e13d4c7434d4318e4e4 (diff) | |
parent | 6321cc8da3fb6dd5fd9ce3e6a1c5496c1c0d65ae (diff) |
Merge pull request #30492 from akien-mga/mbedtls-2.16.2
mbedtls: Update to upstream version 2.16.2
Diffstat (limited to 'thirdparty/mbedtls/library/chacha20.c')
-rw-r--r-- | thirdparty/mbedtls/library/chacha20.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/thirdparty/mbedtls/library/chacha20.c b/thirdparty/mbedtls/library/chacha20.c index 0757163e2f..8a3610f0e0 100644 --- a/thirdparty/mbedtls/library/chacha20.c +++ b/thirdparty/mbedtls/library/chacha20.c @@ -60,14 +60,14 @@ MBEDTLS_INTERNAL_VALIDATE( cond ) #define BYTES_TO_U32_LE( data, offset ) \ - ( (uint32_t) data[offset] \ - | (uint32_t) ( (uint32_t) data[( offset ) + 1] << 8 ) \ - | (uint32_t) ( (uint32_t) data[( offset ) + 2] << 16 ) \ - | (uint32_t) ( (uint32_t) data[( offset ) + 3] << 24 ) \ + ( (uint32_t) (data)[offset] \ + | (uint32_t) ( (uint32_t) (data)[( offset ) + 1] << 8 ) \ + | (uint32_t) ( (uint32_t) (data)[( offset ) + 2] << 16 ) \ + | (uint32_t) ( (uint32_t) (data)[( offset ) + 3] << 24 ) \ ) #define ROTL32( value, amount ) \ - ( (uint32_t) ( value << amount ) | ( value >> ( 32 - amount ) ) ) + ( (uint32_t) ( (value) << (amount) ) | ( (value) >> ( 32 - (amount) ) ) ) #define CHACHA20_CTR_INDEX ( 12U ) |