summaryrefslogtreecommitdiff
path: root/src/gcrypt.h.in
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2015-05-01 14:33:29 +0300
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2015-05-01 15:06:57 +0300
commite40eff94f9f8654c3d29e03bbb7e5ee6a43c1435 (patch)
tree8f0de1405ad7765e8fb0e62b1054ff27e5702563 /src/gcrypt.h.in
parent88842cbc68beb4f73c87fdbcb74182cba818f789 (diff)
downloadlibgcrypt-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.in3
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,