1
0
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:
Manuel Pégourié-Gonnard
2014-06-23 11:33:18 +02:00
parent 0c1ec479fe
commit 81754a0c35
3 changed files with 18 additions and 15 deletions

View File

@ -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
{