mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 02:48:10 +00:00
Use more appropriate type for local variable
This commit is contained in:
parent
08c337d058
commit
565e4e0fb2
1 changed files with 3 additions and 3 deletions
|
@ -667,7 +667,7 @@ int mbedtls_aria_crypt_cfb128( mbedtls_aria_context *ctx,
|
|||
const unsigned char *input,
|
||||
unsigned char *output )
|
||||
{
|
||||
int c;
|
||||
unsigned char c;
|
||||
size_t n = *iv_off;
|
||||
|
||||
if( mode == MBEDTLS_ARIA_DECRYPT )
|
||||
|
@ -678,8 +678,8 @@ int mbedtls_aria_crypt_cfb128( mbedtls_aria_context *ctx,
|
|||
mbedtls_aria_crypt_ecb( ctx, iv, iv );
|
||||
|
||||
c = *input++;
|
||||
*output++ = (unsigned char)( c ^ iv[n] );
|
||||
iv[n] = (unsigned char) c;
|
||||
*output++ = c ^ iv[n];
|
||||
iv[n] = c;
|
||||
|
||||
n = ( n + 1 ) & 0x0F;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue