xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/eddsa/prereq.sh (revision 122b5006ee1bd67145794b4cde92f4fe4781a5ec)
1#!/bin/sh -e
2#
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12SYSTEMTESTTOP=..
13. $SYSTEMTESTTOP/conf.sh
14
15supported=0
16if $SHELL ../testcrypto.sh ed25519; then
17	supported=1
18fi
19if $SHELL ../testcrypto.sh ed448; then
20	supported=1
21fi
22
23[ "$supported" -eq 1 ] || exit 1
24