diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2018-02-28 10:24:56 -0600 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-28 09:06:30 +0200 |
commit | 27711f6a4c5c275a8782a29ebf818932832b96d7 (patch) | |
tree | faedd30c08bf5dc4418eafdb642e93e6bd9ce728 | |
parent | 238202d38032762c2fec641a90712eaf0ff7bfae (diff) | |
download | libssh-27711f6a4c5c275a8782a29ebf818932832b96d7.tar.gz libssh-27711f6a4c5c275a8782a29ebf818932832b96d7.tar.xz libssh-27711f6a4c5c275a8782a29ebf818932832b96d7.zip |
tests: test for chacha20-poly1305@openssh.com
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | tests/client/torture_algorithms.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/client/torture_algorithms.c b/tests/client/torture_algorithms.c index 76ea2cef..15330ffd 100644 --- a/tests/client/torture_algorithms.c +++ b/tests/client/torture_algorithms.c @@ -261,6 +261,16 @@ static void torture_algorithms_blowfish_cbc_hmac_sha2_512(void **state) { } #endif +static void torture_algorithms_chacha20_poly1305(void **state) +{ + struct torture_state *s = *state; + + test_algorithm(s->ssh.session, + NULL, /*kex*/ + "chacha20-poly1305@openssh.com", + NULL); +} + static void torture_algorithms_zlib(void **state) { struct torture_state *s = *state; ssh_session session = s->ssh.session; @@ -441,6 +451,9 @@ int torture_run_tests(void) { session_setup, session_teardown), #endif + cmocka_unit_test_setup_teardown(torture_algorithms_chacha20_poly1305, + session_setup, + session_teardown), cmocka_unit_test_setup_teardown(torture_algorithms_zlib, session_setup, session_teardown), |