pico-hsm/tests/scripts/pkcs11.sh
Pol Henarejos 1105a1263c
Add signature and verification tests for RSA and ECDSA.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2023-10-02 00:48:54 +02:00

14 lines
390 B
Bash
Executable File

#!/bin/bash
echo -n "Test initialization..."
./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)