Split cipher_update_ad() out or cipher_reset()
This commit is contained in:
parent
a235b5b5bd
commit
2adc40c346
6 changed files with 59 additions and 15 deletions
|
@ -187,7 +187,7 @@ int pkcs12_pbe( asn1_buf *pbe_params, int mode,
|
|||
if( ( ret = cipher_set_iv( &cipher_ctx, iv, cipher_info->iv_size ) ) != 0 )
|
||||
goto exit;
|
||||
|
||||
if( ( ret = cipher_reset( &cipher_ctx, NULL, 0 ) ) != 0 )
|
||||
if( ( ret = cipher_reset( &cipher_ctx ) ) != 0 )
|
||||
goto exit;
|
||||
|
||||
if( ( ret = cipher_update( &cipher_ctx, data, len,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue