Add cipher_set_padding() (no effect yet)

Fix pattern in tests/.gitignore along the way.
This commit is contained in:
Manuel Pégourié-Gonnard
2013-07-24 18:05:00 +02:00
committed by Paul Bakker
parent 0f2f0bfc87
commit d5fdcaf9e5
7 changed files with 111 additions and 1 deletions

View File

@@ -252,6 +252,19 @@ enc_dec_buf_multipart:cipher_id:key_len:first_length:second_length:
TEST_ASSERT( 0 == cipher_free_ctx( &ctx_enc ) );
END_CASE
BEGIN_CASE
set_padding:cipher_id:pad_mode:ret:
const cipher_info_t *cipher_info;
cipher_context_t ctx;
cipher_info = cipher_info_from_type( {cipher_id} );
TEST_ASSERT( NULL != cipher_info );
TEST_ASSERT( 0 == cipher_init_ctx( &ctx, cipher_info ) );
TEST_ASSERT( {ret} == cipher_set_padding_mode( &ctx, {pad_mode} ) );
TEST_ASSERT( 0 == cipher_free_ctx( &ctx ) );
END_CASE
BEGIN_CASE
cipher_selftest: