Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2022 14:21:57 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 20777f79b896 - main - ipsec tests: add test case for chacha20_poly1305
Message-ID:  <202211021421.2A2ELvQQ032685@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=20777f79b896f3be37086fc7e2c6cbb8cdb865c5

commit 20777f79b896f3be37086fc7e2c6cbb8cdb865c5
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2022-10-18 16:34:00 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-11-02 13:19:37 +0000

    ipsec tests: add test case for chacha20_poly1305
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D37181
---
 tests/sys/netipsec/tunnel/Makefile             |  3 +-
 tests/sys/netipsec/tunnel/chacha20_poly1305.sh | 43 ++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 1 deletion(-)

diff --git a/tests/sys/netipsec/tunnel/Makefile b/tests/sys/netipsec/tunnel/Makefile
index e80374940e95..4b8c8a21a5ac 100644
--- a/tests/sys/netipsec/tunnel/Makefile
+++ b/tests/sys/netipsec/tunnel/Makefile
@@ -12,7 +12,8 @@ ATF_TESTS_SH+=	empty \
 		aesni_aes_cbc_128_hmac_sha1 \
 		aesni_aes_cbc_256_hmac_sha2_256 \
 		aesni_aes_gcm_128 \
-		aesni_aes_gcm_256
+		aesni_aes_gcm_256 \
+		chacha20_poly1305
 
 ${PACKAGE}FILES+=	utils.subr
 
diff --git a/tests/sys/netipsec/tunnel/chacha20_poly1305.sh b/tests/sys/netipsec/tunnel/chacha20_poly1305.sh
new file mode 100755
index 000000000000..0eb63e463edb
--- /dev/null
+++ b/tests/sys/netipsec/tunnel/chacha20_poly1305.sh
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+. $(atf_get_srcdir)/utils.subr
+
+atf_test_case "v4" "cleanup"
+v4_head()
+{
+	atf_set descr 'IPSec inet4 tunnel using chacha20-poly1305'
+	atf_set require.user root
+}
+
+v4_body()
+{
+	ist_test 4 chacha20-poly1305 "123456789012345678901234567890123456"
+}
+
+v4_cleanup()
+{
+	ist_cleanup
+}
+
+atf_test_case "v6" "cleanup"
+v6_head()
+{
+	atf_set descr 'IPSec inet6 tunnel using chacha20-poly1305'
+	atf_set require.user root
+}
+
+v6_body()
+{
+	ist_test 6 chacha20-poly1305 "123456789012345678901234567890123456"
+}
+
+v6_cleanup()
+{
+	ist_cleanup
+}
+
+atf_init_test_cases()
+{
+	atf_add_test_case "v4"
+	atf_add_test_case "v6"
+}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211021421.2A2ELvQQ032685>