]>
git.ipfire.org Git - thirdparty/openssl.git/blob - test/recipes/15-test_dsa.t
2 # Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the Apache License 2.0 (the "License"). You may not use
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
14 use OpenSSL
::Test qw
/:DEFAULT srctop_file/;
15 use OpenSSL
::Test
::Utils
;
19 plan skip_all
=> 'DSA is not supported in this build' if disabled
('dsa');
22 require_ok
(srctop_file
('test','recipes','tconversion.pl'));
24 ok
(run
(test
(["dsatest"])), "running dsatest");
25 ok
(run
(test
(["dsa_no_digest_size_test"])),
26 "running dsa_no_digest_size_test");
28 subtest
"dsa conversions using 'openssl dsa' -- private key" => sub {
29 tconversion
("dsa", srctop_file
("test","testdsa.pem"));
31 subtest
"dsa conversions using 'openssl dsa' -- public key" => sub {
32 tconversion
("msb", srctop_file
("test","testdsapub.pem"), "dsa",
36 subtest
"dsa conversions using 'openssl pkey' -- private key PKCS#8" => sub {
37 tconversion
("dsa", srctop_file
("test","testdsa.pem"), "pkey");
39 subtest
"dsa conversions using 'openssl pkey' -- public key" => sub {
40 tconversion
("dsa", srctop_file
("test","testdsapub.pem"), "pkey",