Add signature and verification tests for RSA and ECDSA.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-10-02 00:48:54 +02:00
parent 37421d9aad
commit 1105a1263c
7 changed files with 208 additions and 24 deletions

6
tests/scripts/pkcs11.sh Normal file → Executable file
View File

@@ -1,9 +1,13 @@
#!/bin/bash
echo -n "Test initialization..."
#./tests/scripts/initialize.sh
./tests/scripts/initialize.sh
test $? -eq 0 && echo -e '\tok' || (echo -e '\tfail' && exit 1)
echo -n "Test keygen..."
./tests/scripts/keygen.sh
test $? -eq 0 && echo -e '\tok' || (echo -e '\tfail' && exit 1)
echo -n "Test sign and verify..."
./tests/scripts/sign_and_verify.sh
test $? -eq 0 && echo -e '\tok' || (echo -e '\tfail' && exit 1)