aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/crypto.h
diff options
context:
space:
mode:
authorSteffan Karger2018-10-09 22:43:15 +0200
committerGert Doering2018-10-10 22:52:08 +0200
commit447997dd83400bffc05db65a91f659dc87b4a367 (patch)
treedf90456df5c609b4ad1152f89272855e96b73673 /src/openvpn/crypto.h
parentea4ee31333a0cddb5c8dd4185f9426df13c76947 (diff)
downloadopenvpn-447997dd83400bffc05db65a91f659dc87b4a367.zip
openvpn-447997dd83400bffc05db65a91f659dc87b4a367.tar.gz
List ChaCha20-Poly1305 as stream cipher
As Antonio pointed out, "8-bit block cipher" is a bit funny. So teach print_cipher() to print such cipher as "stream cipher". Because I didn't want to write the same code twice, I decided to merge the two print_cipher() implementations into one shared function. That should make it easier to keep both backends consistent. Signed-off-by: Steffan Karger <steffan@karger.me> Acked-by: Antonio Quartulli <antonio@openvpn.net> Message-Id: <20181009204315.8262-1-steffan@karger.me> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17682.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/crypto.h')
-rw-r--r--src/openvpn/crypto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openvpn/crypto.h b/src/openvpn/crypto.h
index 263725d..795643c 100644
--- a/src/openvpn/crypto.h
+++ b/src/openvpn/crypto.h
@@ -460,6 +460,9 @@ void prng_uninit(void);
/* an analogue to the random() function, but use prng_bytes */
long int get_random(void);
+/** Print a cipher list entry */
+void print_cipher(const cipher_kt_t *cipher);
+
void test_crypto(struct crypto_options *co, struct frame *f);