Lines Matching refs:name
58 my $name = ($evp ? "evp" : "") . "${bits}p${primes}";
61 ok(run(app([ 'openssl', 'genpkey', '-out', "rsamptest-$name.pem",
65 "genrsa $name");
67 '-in', "rsamptest-$name.pem", '-noout'])),
68 "rsa -check $name");
69 ok(run(app([ 'openssl', 'pkeyutl', '-inkey', "rsamptest-$name.pem",
71 '-out', "rsamptest-$name.enc" ])),
72 "rsa $name encrypt");
73 ok(run(app([ 'openssl', 'pkeyutl', '-inkey', "rsamptest-$name.pem",
74 '-decrypt', '-in', "rsamptest-$name.enc",
75 '-out', "rsamptest-$name.dec" ])),
76 "rsa $name decrypt");
78 ok(run(app([ 'openssl', 'genrsa', '-out', "rsamptest-$name.pem",
79 '-primes', $primes, $bits])), "genrsa $name");
81 '-in', "rsamptest-$name.pem", '-noout'])),
82 "rsa -check $name");
84 ok(run(app([ 'openssl', 'rsautl', '-inkey', "rsamptest-$name.pem",
86 '-out', "rsamptest-$name.enc" ])),
87 "rsa $name encrypt");
88 ok(run(app([ 'openssl', 'rsautl', '-inkey', "rsamptest-$name.pem",
89 '-decrypt', '-in', "rsamptest-$name.enc",
90 '-out', "rsamptest-$name.dec" ])),
91 "rsa $name decrypt");
93 ok(run(app([ 'openssl', 'pkeyutl', '-inkey', "rsamptest-$name.pem",
95 '-out', "rsamptest-$name.enc" ])),
96 "rsa $name encrypt");
97 ok(run(app([ 'openssl', 'pkeyutl', '-inkey', "rsamptest-$name.pem",
98 '-decrypt', '-in', "rsamptest-$name.enc",
99 '-out', "rsamptest-$name.dec" ])),
100 "rsa $name decrypt");
103 ok(check_msg("rsamptest-$name.dec"), "rsa $name check result");