xref: /freebsd/contrib/netbsd-tests/crypto/libcrypto/t_pubkey.sh (revision d370fd1cd8fc69e87dc63f4f4a82e5a8b4956c93)
1*cdebaff8SEnji Cooper# $NetBSD: t_pubkey.sh,v 1.4 2016/10/13 09:25:37 martin Exp $
257718be8SEnji Cooper#
357718be8SEnji Cooper# Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc.
457718be8SEnji Cooper# All rights reserved.
557718be8SEnji Cooper#
657718be8SEnji Cooper# Redistribution and use in source and binary forms, with or without
757718be8SEnji Cooper# modification, are permitted provided that the following conditions
857718be8SEnji Cooper# are met:
957718be8SEnji Cooper# 1. Redistributions of source code must retain the above copyright
1057718be8SEnji Cooper#    notice, this list of conditions and the following disclaimer.
1157718be8SEnji Cooper# 2. Redistributions in binary form must reproduce the above copyright
1257718be8SEnji Cooper#    notice, this list of conditions and the following disclaimer in the
1357718be8SEnji Cooper#    documentation and/or other materials provided with the distribution.
1457718be8SEnji Cooper#
1557718be8SEnji Cooper# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
1657718be8SEnji Cooper# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1757718be8SEnji Cooper# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1857718be8SEnji Cooper# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
1957718be8SEnji Cooper# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2057718be8SEnji Cooper# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2157718be8SEnji Cooper# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2257718be8SEnji Cooper# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2357718be8SEnji Cooper# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2457718be8SEnji Cooper# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2557718be8SEnji Cooper# POSSIBILITY OF SUCH DAMAGE.
2657718be8SEnji Cooper#
2757718be8SEnji Cooper
2857718be8SEnji Cooperatf_test_case dsa
2957718be8SEnji Cooperdsa_head()
3057718be8SEnji Cooper{
3157718be8SEnji Cooper	atf_set "descr" "Checks DSA cipher"
3257718be8SEnji Cooper}
3357718be8SEnji Cooperdsa_body()
3457718be8SEnji Cooper{
3557718be8SEnji Cooper	atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_dsatest"
3657718be8SEnji Cooper}
3757718be8SEnji Cooper
3857718be8SEnji Cooperatf_test_case dh
3957718be8SEnji Cooperdh_head()
4057718be8SEnji Cooper{
4157718be8SEnji Cooper	atf_set "descr" "Checks Diffie-Hellman key agreement protocol"
4257718be8SEnji Cooper}
4357718be8SEnji Cooperdh_body()
4457718be8SEnji Cooper{
4557718be8SEnji Cooper	atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_dhtest"
4657718be8SEnji Cooper}
4757718be8SEnji Cooper
4857718be8SEnji Cooperatf_test_case rsa
4957718be8SEnji Cooperrsa_head()
5057718be8SEnji Cooper{
5157718be8SEnji Cooper	atf_set "descr" "Checks RSA"
52*cdebaff8SEnji Cooper	atf_set "timeout" "420"
5357718be8SEnji Cooper}
5457718be8SEnji Cooperrsa_body()
5557718be8SEnji Cooper{
5657718be8SEnji Cooper	atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_rsatest"
5757718be8SEnji Cooper}
5857718be8SEnji Cooper
5957718be8SEnji Cooperatf_test_case ec
6057718be8SEnji Cooperec_head()
6157718be8SEnji Cooper{
6257718be8SEnji Cooper	atf_set "descr" "Checks EC cipher"
63*cdebaff8SEnji Cooper	atf_set "timeout" "480"
6457718be8SEnji Cooper}
6557718be8SEnji Cooperec_body()
6657718be8SEnji Cooper{
6757718be8SEnji Cooper	atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_ectest"
6857718be8SEnji Cooper}
6957718be8SEnji Cooper
7057718be8SEnji Cooperatf_test_case ecdh
7157718be8SEnji Cooperecdh_head()
7257718be8SEnji Cooper{
7357718be8SEnji Cooper	atf_set "descr" "Checks ECDH key agreement protocol"
7457718be8SEnji Cooper}
7557718be8SEnji Cooperecdh_body()
7657718be8SEnji Cooper{
7757718be8SEnji Cooper	atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_ecdhtest"
7857718be8SEnji Cooper}
7957718be8SEnji Cooper
8057718be8SEnji Cooperatf_test_case ecdsa
8157718be8SEnji Cooperecdsa_head()
8257718be8SEnji Cooper{
8357718be8SEnji Cooper	atf_set "descr" "Checks ECDSA algorithm"
84*cdebaff8SEnji Cooper	atf_set "timeout" "480"
8557718be8SEnji Cooper}
8657718be8SEnji Cooperecdsa_body()
8757718be8SEnji Cooper{
8857718be8SEnji Cooper	atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_ecdsatest"
8957718be8SEnji Cooper}
9057718be8SEnji Cooper
9157718be8SEnji Cooperatf_test_case srp
9257718be8SEnji Coopersrp_head()
9357718be8SEnji Cooper{
9457718be8SEnji Cooper	atf_set "descr" "Checks SRP key agreement protocol"
9557718be8SEnji Cooper}
9657718be8SEnji Coopersrp_body()
9757718be8SEnji Cooper{
9857718be8SEnji Cooper	atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_srptest"
9957718be8SEnji Cooper}
10057718be8SEnji Cooper
10157718be8SEnji Cooperatf_init_test_cases()
10257718be8SEnji Cooper{
10357718be8SEnji Cooper	atf_add_test_case dsa
10457718be8SEnji Cooper	atf_add_test_case dh
10557718be8SEnji Cooper	atf_add_test_case rsa
10657718be8SEnji Cooper	atf_add_test_case ec
10757718be8SEnji Cooper	atf_add_test_case ecdh
10857718be8SEnji Cooper	atf_add_test_case ecdsa
10957718be8SEnji Cooper	atf_add_test_case srp
11057718be8SEnji Cooper}
111