]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/recipes/15-test_dsa.t
Add sparse array data type.
[thirdparty/openssl.git] / test / recipes / 15-test_dsa.t
CommitLineData
596d6b7e 1#! /usr/bin/env perl
1212818e 2# Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
596d6b7e 3#
909f1a2e 4# Licensed under the Apache License 2.0 (the "License"). You may not use
596d6b7e
RS
5# this file except in compliance with the License. You can obtain a copy
6# in the file LICENSE in the source distribution or at
7# https://www.openssl.org/source/license.html
8
0c85cc50
RL
9
10use strict;
11use warnings;
12
13use File::Spec;
42e0ccdf 14use OpenSSL::Test qw/:DEFAULT srctop_file/;
340166a9 15use OpenSSL::Test::Utils;
0c85cc50
RL
16
17setup("test_dsa");
18
cb809437 19plan tests => 6;
0c85cc50 20
42e0ccdf 21require_ok(srctop_file('test','recipes','tconversion.pl'));
0c85cc50
RL
22
23ok(run(test(["dsatest"])), "running dsatest");
cb809437 24ok(run(test(["dsa_no_digest_size_test"])), "running dsa_no_digest_size_test");
0c85cc50
RL
25
26 SKIP: {
27 skip "Skipping dsa conversion test", 3
340166a9 28 if disabled("dsa");
0c85cc50
RL
29
30 subtest 'dsa conversions -- private key' => sub {
42e0ccdf 31 tconversion("dsa", srctop_file("test","testdsa.pem"));
0c85cc50
RL
32 };
33 subtest 'dsa conversions -- private key PKCS#8' => sub {
42e0ccdf 34 tconversion("dsa", srctop_file("test","testdsa.pem"), "pkey");
0c85cc50
RL
35 };
36 subtest 'dsa conversions -- public key' => sub {
d922634d
DSH
37 tconversion("msb", srctop_file("test","testdsapub.pem"), "dsa",
38 "-pubin", "-pubout");
0c85cc50
RL
39 };
40}