From nobody Wed Nov 02 14:21:57 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N2Tbp2k3Rz4hGfL; Wed, 2 Nov 2022 14:21:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N2Tbp1wZmz3N2B; Wed, 2 Nov 2022 14:21:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667398918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NgHdXVn5aHbyL8L3k3+7z4158m4G8upWtTR5EgtqZ2Y=; b=xPEWeWKM59ECW0QYOBXSy+EPDRmdcZkLZwC/XJXk6x5okaP7M6oupLqFUfR4GHTh7Nv7ES Bm2H6vYQnnuslD0cbFCD7s53OuHia6Lr8Dt2iZUnYfRxxh89rM+LUug9gV5yLIlaWx/RSe VbyPUnrXkAzzBi39W5jP4m8AENNQ3ENZhtTrs4keXKxrj/enqP85IkxJ4+iLmMIdFt2xJe 2EAFWZZitPMd58HgAiV77MapTwj+y01utikXRmtT23kWlLSl9bq7jXpOuRqFlB3IWrZkSn nnWxbpSz5O3OQie6J1Wa+cGsnOMaAAFJIspeByKXlj1jNygwiptxye4u/4AsRQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N2Tbp0j7Xz107B; Wed, 2 Nov 2022 14:21:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A2ELw5M032686; Wed, 2 Nov 2022 14:21:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A2ELvQQ032685; Wed, 2 Nov 2022 14:21:57 GMT (envelope-from git) Date: Wed, 2 Nov 2022 14:21:57 GMT Message-Id: <202211021421.2A2ELvQQ032685@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 20777f79b896 - main - ipsec tests: add test case for chacha20_poly1305 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 20777f79b896f3be37086fc7e2c6cbb8cdb865c5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667398918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NgHdXVn5aHbyL8L3k3+7z4158m4G8upWtTR5EgtqZ2Y=; b=qKGodzlQZHySD3lss8Hor4KV6CfFKmwtDPiu3/X5o4TPMNVlbCn4qYA6e9qrwpWaVmtgzY xiTzblOjiU4YQe6vhUl2sxhPMsiUUYaqXdx/RllCio81S+fCtxIYtOIl/XI1hvBNfWq771 +ZC2XhImesixf440ShGYewjEpzRjgS09wKe0tE22nstqCFXroDHqnjOAP6MWPKW1Qt5vdT uaaFEeW6GXRt+ZdIcWv8tg2Ahj867t5OI2BPOn1ijK63sUe0VM6osHQCkm/oBp1BTBqCP/ tazUmakAhX9ZHaKB5DL50Xs9QIt4iI7aoTJUbz4h4Oc5ORJ5CyA3iFm/omSRUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667398918; a=rsa-sha256; cv=none; b=UC8Kh1xNQSLtaCA8N4YHq6Yepqw00GFX4LC5Nm15Kyw3dimeFFs/7hjYlKJWE6WSviD5VL k1k/T+bOX/TQivY7lUuwv5p2R3oVYBsU4cN10VrMBsg9zfGLSF/j60L2UK4P0qk8mspDaW 6nj4mln5TexvAhqqLqyUF0N75a0ZWfjUqihACYoKqI35VD6VoeYNhl6FsOehwLWBFndzKv KUpSv5Z6zFSQT1b7y1mZwxwusfK4pWGBJX6U2oMjpw01M5+Vc2ak9SM5d/mO411HuchOIf +gQ/9dAIzs9rFFW6JrnthsKa4aVwwB7E094HF6O+XFsL6SmfgfYNUKM8WwIydw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=20777f79b896f3be37086fc7e2c6cbb8cdb865c5 commit 20777f79b896f3be37086fc7e2c6cbb8cdb865c5 Author: Kristof Provost AuthorDate: 2022-10-18 16:34:00 +0000 Commit: Kristof Provost 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" +}