mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Code style fix
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
This commit is contained in:
@ -378,15 +378,13 @@ int mbedtls_gcm_update_ad( mbedtls_gcm_context *ctx,
|
|||||||
|
|
||||||
while( add_len >= 16 )
|
while( add_len >= 16 )
|
||||||
{
|
{
|
||||||
use_len = 16;
|
for( i = 0; i < 16; i++ )
|
||||||
|
|
||||||
for( i = 0; i < use_len; i++ )
|
|
||||||
ctx->buf[i] ^= p[i];
|
ctx->buf[i] ^= p[i];
|
||||||
|
|
||||||
gcm_mult( ctx, ctx->buf, ctx->buf );
|
gcm_mult( ctx, ctx->buf, ctx->buf );
|
||||||
|
|
||||||
add_len -= use_len;
|
add_len -= 16;
|
||||||
p += use_len;
|
p += 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( add_len > 0 )
|
if( add_len > 0 )
|
||||||
|
Reference in New Issue
Block a user