mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Create a 'flags' field in cipher_info
This commit is contained in:
parent
0c1ec479fe
commit
81754a0c35
3 changed files with 18 additions and 15 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue