Refactor the pkcs11 to test for individual algorithms

(cherry picked from commit a6bdb9639a)
This commit is contained in:
Ondřej Surý
2020-04-30 14:53:40 +02:00
parent c0e1dc33d5
commit 4cc5b572bd
6 changed files with 196 additions and 174 deletions

View File

@@ -29,11 +29,27 @@ while test "$#" -gt 0; do
alg="-a RSASHA1"
msg="RSA cryptography"
;;
ecdsa|ECDSA)
alg="-a ecdsap256sha256"
rsasha256|RSASHA256)
alg="-a RSASHA256"
msg="RSA cryptography"
;;
rsasha512|RSASHA512)
alg="-a RSASHA512"
msg="RSA cryptography"
;;
ecdsa|ECDSA|ecdsap256sha256|ECDSAP256SHA256)
alg="-a ECDSAP256SHA256"
msg="ECDSA cryptography"
;;
eddsa|EDDSA)
ecdsap384sha384|ECDSAP384SHA384)
alg="-a ECDSAP384SHA384"
msg="ECDSA cryptography"
;;
eddsa|EDDSA|ed25519|ED25519)
alg="-a ED25519"
msg="EDDSA cryptography"
;;
ed448|ED448)
alg="-a ED25519"
msg="EDDSA cryptography"
;;