mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 13:20:30 +00:00
Merge pull request #277 from k-stachowiak/check-array-index-range
Check array index range in GCM multiplication
This commit is contained in:
commit
a428ced165
@ -246,7 +246,7 @@ static void gcm_mult( mbedtls_gcm_context *ctx, const unsigned char x[16],
|
|||||||
for( i = 15; i >= 0; i-- )
|
for( i = 15; i >= 0; i-- )
|
||||||
{
|
{
|
||||||
lo = x[i] & 0xf;
|
lo = x[i] & 0xf;
|
||||||
hi = x[i] >> 4;
|
hi = ( x[i] >> 4 ) & 0xf;
|
||||||
|
|
||||||
if( i != 15 )
|
if( i != 15 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user