mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Create a 'flags' field in cipher_info
This commit is contained in:
@ -204,7 +204,7 @@ int cipher_set_iv( cipher_context_t *ctx,
|
||||
if( iv_len > POLARSSL_MAX_IV_LENGTH )
|
||||
return( POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE );
|
||||
|
||||
if( ctx->cipher_info->accepts_variable_iv_size )
|
||||
if( ( ctx->cipher_info->flags & POLARSSL_CIPHER_VARIABLE_IV_LEN ) != 0 )
|
||||
actual_iv_size = iv_len;
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user