[PATCH] tests/basic: mark CFB and CFB8 as stream block cipher modes
Jussi Kivilinna
jussi.kivilinna at iki.fi
Fri May 10 21:38:07 CEST 2019
* tests/basic.c (get_algo_mode_blklen): Return '1' for CFB and CFB8.
--
This commit marks CFB and CFB8 modes as stream ciphers so that they get
run through tests/basic.c's split input buffer testing (input split&feed
to cipher in variating sized parts).
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
tests/basic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/basic.c b/tests/basic.c
index 31595d0bb..b0c292a0e 100644
--- a/tests/basic.c
+++ b/tests/basic.c
@@ -7490,6 +7490,8 @@ get_algo_mode_blklen (int algo, int mode)
case GCRY_CIPHER_MODE_STREAM:
case GCRY_CIPHER_MODE_OFB:
case GCRY_CIPHER_MODE_CTR:
+ case GCRY_CIPHER_MODE_CFB:
+ case GCRY_CIPHER_MODE_CFB8:
case GCRY_CIPHER_MODE_CCM:
case GCRY_CIPHER_MODE_GCM:
case GCRY_CIPHER_MODE_EAX:
More information about the Gcrypt-devel
mailing list