mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +00:00
ipsec tests: add test case for chacha20_poly1305
Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D37181
This commit is contained in:
parent
9f8f3a8e9a
commit
20777f79b8
@ -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
|
||||
|
||||
|
43
tests/sys/netipsec/tunnel/chacha20_poly1305.sh
Executable file
43
tests/sys/netipsec/tunnel/chacha20_poly1305.sh
Executable file
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user