diff options
Diffstat (limited to 'test/recipes/15-test_ec.t')
-rw-r--r-- | test/recipes/15-test_ec.t | 60 |
1 files changed, 32 insertions, 28 deletions
diff --git a/test/recipes/15-test_ec.t b/test/recipes/15-test_ec.t index 354c360362..a7a7caadd3 100644 --- a/test/recipes/15-test_ec.t +++ b/test/recipes/15-test_ec.t @@ -59,34 +59,38 @@ subtest 'PKEY conversions -- public key' => sub { -args => [ "pkey", "-pubin", "-pubout" ] ); }; -subtest 'Ed25519 conversions -- private key' => sub { - tconversion( -type => "pkey", -prefix => "ed25519-pkey-priv", - -in => srctop_file("test", "tested25519.pem") ); -}; -subtest 'Ed25519 conversions -- private key PKCS#8' => sub { - tconversion( -type => "pkey", -prefix => "ed25519-pkey-pkcs8", - -in => srctop_file("test", "tested25519.pem"), - -args => ["pkey"] ); -}; -subtest 'Ed25519 conversions -- public key' => sub { - tconversion( -type => "pkey", -prefix => "ed25519-pkey-pub", - -in => srctop_file("test", "tested25519pub.pem"), - -args => ["pkey", "-pubin", "-pubout"] ); -}; -subtest 'Ed448 conversions -- private key' => sub { - tconversion( -type => "pkey", -prefix => "ed448-pkey-priv", - -in => srctop_file("test", "tested448.pem") ); -}; -subtest 'Ed448 conversions -- private key PKCS#8' => sub { - tconversion( -type => "pkey", -prefix => "ed448-pkey-pkcs8", - -in => srctop_file("test", "tested448.pem"), - -args => ["pkey"] ); -}; -subtest 'Ed448 conversions -- public key' => sub { - tconversion( -type => "pkey", -prefix => "ed448-pkey-pub", - -in => srctop_file("test", "tested448pub.pem"), - -args => ["pkey", "-pubin", "-pubout"] ); -}; +SKIP: { + skip "ECX is not supported by this OpenSSL build", 6 + if disabled("ecx"); + subtest 'Ed25519 conversions -- private key' => sub { + tconversion( -type => "pkey", -prefix => "ed25519-pkey-priv", + -in => srctop_file("test", "tested25519.pem") ); + }; + subtest 'Ed25519 conversions -- private key PKCS#8' => sub { + tconversion( -type => "pkey", -prefix => "ed25519-pkey-pkcs8", + -in => srctop_file("test", "tested25519.pem"), + -args => ["pkey"] ); + }; + subtest 'Ed25519 conversions -- public key' => sub { + tconversion( -type => "pkey", -prefix => "ed25519-pkey-pub", + -in => srctop_file("test", "tested25519pub.pem"), + -args => ["pkey", "-pubin", "-pubout"] ); + }; + subtest 'Ed448 conversions -- private key' => sub { + tconversion( -type => "pkey", -prefix => "ed448-pkey-priv", + -in => srctop_file("test", "tested448.pem") ); + }; + subtest 'Ed448 conversions -- private key PKCS#8' => sub { + tconversion( -type => "pkey", -prefix => "ed448-pkey-pkcs8", + -in => srctop_file("test", "tested448.pem"), + -args => ["pkey"] ); + }; + subtest 'Ed448 conversions -- public key' => sub { + tconversion( -type => "pkey", -prefix => "ed448-pkey-pub", + -in => srctop_file("test", "tested448pub.pem"), + -args => ["pkey", "-pubin", "-pubout"] ); + }; +} subtest 'Check loading of fips and non-fips keys' => sub { plan skip_all => "FIPS is disabled" |