xref: /freebsd/tests/sys/netipsec/tunnel/chacha20_poly1305.sh (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1
2. $(atf_get_srcdir)/utils.subr
3
4atf_test_case "v4" "cleanup"
5v4_head()
6{
7	atf_set descr 'IPSec inet4 tunnel using chacha20-poly1305'
8	atf_set require.user root
9}
10
11v4_body()
12{
13	ist_test 4 chacha20-poly1305 "123456789012345678901234567890123456"
14}
15
16v4_cleanup()
17{
18	ist_cleanup
19}
20
21atf_test_case "v6" "cleanup"
22v6_head()
23{
24	atf_set descr 'IPSec inet6 tunnel using chacha20-poly1305'
25	atf_set require.user root
26}
27
28v6_body()
29{
30	ist_test 6 chacha20-poly1305 "123456789012345678901234567890123456"
31}
32
33v6_cleanup()
34{
35	ist_cleanup
36}
37
38atf_init_test_cases()
39{
40	atf_add_test_case "v4"
41	atf_add_test_case "v6"
42}
43