diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-05-24 12:43:24 +0300 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-05-24 12:19:37 +0200 |
commit | ab8fc70b5f0c396a5bc941267f59166e860b8c5d (patch) | |
tree | 172654cd923133fab1da3d737353434de6d11f14 /cipher/cipher-selftest.h | |
parent | 6deb0ccdf718a0670f80e6762a3842caf76437d6 (diff) | |
download | libgcrypt-ab8fc70b5f0c396a5bc941267f59166e860b8c5d.tar.gz |
cipher-selftest: make selftest work with any block-size
* cipher/cipher-selftest.c (_gcry_selftest_helper_cbc_128)
(_gcry_selftest_helper_cfb_128, _gcry_selftest_helper_ctr_128): Renamed
functions from '<name>_128' to '<name>'.
(_gcry_selftest_helper_cbc, _gcry_selftest_helper_cfb)
(_gcry_selftest_helper_ctr): Make work with different block sizes.
* cipher/cipher-selftest.h (_gcry_selftest_helper_cbc_128)
(_gcry_selftest_helper_cfb_128, _gcry_selftest_helper_ctr_128): Renamed
prototypes from '<name>_128' to '<name>'.
* cipher/camellia-glue.c (selftest_ctr_128, selftest_cfb_128)
(selftest_ctr_128): Change to use new function names.
* cipher/rijndael.c (selftest_ctr_128, selftest_cfb_128)
(selftest_ctr_128): Change to use new function names.
* cipher/serpent.c (selftest_ctr_128, selftest_cfb_128)
(selftest_ctr_128): Change to use new function names.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/cipher-selftest.h')
-rw-r--r-- | cipher/cipher-selftest.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/cipher/cipher-selftest.h b/cipher/cipher-selftest.h index 30bc2514..41d77af1 100644 --- a/cipher/cipher-selftest.h +++ b/cipher/cipher-selftest.h @@ -42,26 +42,26 @@ typedef void (*gcry_cipher_bulk_ctr_enc_t)(void *context, unsigned char *iv, /* Helper function for bulk CBC decryption selftest */ const char * -_gcry_selftest_helper_cbc_128 (const char *cipher, gcry_cipher_setkey_t setkey, - gcry_cipher_encrypt_t encrypt_one, - gcry_cipher_bulk_cbc_dec_t bulk_cbc_dec, - const int nblocks, const int blocksize, - const int context_size); +_gcry_selftest_helper_cbc (const char *cipher, gcry_cipher_setkey_t setkey, + gcry_cipher_encrypt_t encrypt_one, + gcry_cipher_bulk_cbc_dec_t bulk_cbc_dec, + const int nblocks, const int blocksize, + const int context_size); /* Helper function for bulk CFB decryption selftest */ const char * -_gcry_selftest_helper_cfb_128 (const char *cipher, gcry_cipher_setkey_t setkey, - gcry_cipher_encrypt_t encrypt_one, - gcry_cipher_bulk_cfb_dec_t bulk_cfb_dec, - const int nblocks, const int blocksize, - const int context_size); +_gcry_selftest_helper_cfb (const char *cipher, gcry_cipher_setkey_t setkey, + gcry_cipher_encrypt_t encrypt_one, + gcry_cipher_bulk_cfb_dec_t bulk_cfb_dec, + const int nblocks, const int blocksize, + const int context_size); /* Helper function for bulk CTR encryption selftest */ const char * -_gcry_selftest_helper_ctr_128 (const char *cipher, gcry_cipher_setkey_t setkey, - gcry_cipher_encrypt_t encrypt_one, - gcry_cipher_bulk_ctr_enc_t bulk_ctr_enc, - const int nblocks, const int blocksize, - const int context_size); +_gcry_selftest_helper_ctr (const char *cipher, gcry_cipher_setkey_t setkey, + gcry_cipher_encrypt_t encrypt_one, + gcry_cipher_bulk_ctr_enc_t bulk_ctr_enc, + const int nblocks, const int blocksize, + const int context_size); #endif /*G10_SELFTEST_HELP_H*/ |