#!/bin/bash # # This test checks various aspects of RSA decryption # # It needs a card with a private key+certificate pair at ID 45 # # Run this from the regression test directory. . functions msg < $o run_check_status openssl rsautl -pubin -inkey $p -encrypt -in $o -out $e p15_crypt -c --pkcs1 -i $e -o $d cmp $o $d || fail "Decrypted file does not match plain text file" success p15_erase --secret @01=0000