Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 005f49e
  • /
  • recipes
  • /
  • 15-test_rsa.t
Raw File
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:6418ff7edd10cedc24c57a9ca80dd325600031b5
directory badge Iframe embedding
swh:1:dir:daa532239c6e04d75b116314094a4995812a79bc
15-test_rsa.t
#! /usr/bin/perl

use strict;
use warnings;

use File::Spec;
use OpenSSL::Test qw/:DEFAULT top_file/;
use OpenSSL::Test::Utils;

setup("test_rsa");

plan tests => 5;

require_ok(top_file('test','recipes','tconversion.pl'));

ok(run(test(["rsa_test"])), "running rsatest");

 SKIP: {
     skip "Skipping rsa conversion test", 3
	 if disabled("rsa");

     subtest 'rsa conversions -- private key' => sub {
	 tconversion("rsa", top_file("test","testrsa.pem"));
     };
     subtest 'rsa conversions -- private key PKCS#8' => sub {
	 tconversion("rsa", top_file("test","testrsa.pem"), "pkey");
     };
     subtest 'rsa conversions -- public key' => sub {
	 tconversion("rsa", top_file("test","testrsapub.pem"), "rsa",
		     "-pubin", "-pubout");
     };
}

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top