commit | 2adc40c346344d490713a497743bc63a93eecd5c | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Sep 03 13:54:12 2013 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Sep 03 19:20:55 2013 +0200 |
tree | f753c1fd548d8ad674e280329caab53fee2eae6f | |
parent | a235b5b5bd551172e0e41598c0b909119f3e2628 [diff] [blame] |
Split cipher_update_ad() out or cipher_reset()
diff --git a/library/pkcs5.c b/library/pkcs5.c index 10adbb4..a27d4fb 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c
@@ -190,7 +190,7 @@ if( ( ret = cipher_set_iv( &cipher_ctx, iv, enc_scheme_params.len ) ) != 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, datalen,