diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-05-01 14:33:29 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-05-01 15:06:57 +0300 |
commit | e40eff94f9f8654c3d29e03bbb7e5ee6a43c1435 (patch) | |
tree | 8f0de1405ad7765e8fb0e62b1054ff27e5702563 /src/gcrypt.h.in | |
parent | 88842cbc68beb4f73c87fdbcb74182cba818f789 (diff) | |
download | libgcrypt-e40eff94f9f8654c3d29e03bbb7e5ee6a43c1435.tar.gz |
Enable more modes in basic ciphers test
* src/gcrypt.h.in (GCRY_OCB_BLOCK_LEN): New.
* tests/basic.c (check_one_cipher_core_reset): New.
(check_one_cipher_core): Use check_one_cipher_core_reset inplace of
gcry_cipher_reset.
(check_ciphers): Add CCM and OCB modes for block cipher tests.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'src/gcrypt.h.in')
-rw-r--r-- | src/gcrypt.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in index cac2b49c..0984d111 100644 --- a/src/gcrypt.h.in +++ b/src/gcrypt.h.in @@ -931,6 +931,9 @@ enum gcry_cipher_flags /* CCM works only with blocks of 128 bits. */ #define GCRY_CCM_BLOCK_LEN (128 / 8) +/* OCB works only with blocks of 128 bits. */ +#define GCRY_OCB_BLOCK_LEN (128 / 8) + /* Create a handle for algorithm ALGO to be used in MODE. FLAGS may be given as an bitwise OR of the gcry_cipher_flags values. */ gcry_error_t gcry_cipher_open (gcry_cipher_hd_t *handle, |