3
##before this script, you should make sure all kinds of context already loaded
8
ctx_count=`ls |grep -c context_load`
9
if [ $ctx_count -le 1 ];then
10
echo "we should execute test_algs.sh first!"
15
rm test_algs_sign_*.log sign_*
17
#for halg_p in 0x0004 0x000B 0x000C 0x000D 0x0012
18
for context_p in `ls context_load*`
20
for halg in 0x0004 0x000B 0x000C
23
tpm2_sign -c $context_p -g $halg -m secret.data -s sign_"$context_p"_"$halg_h"_"$halg"
25
echo "sign for sign_"$context_p"_"$halg" fail, please check the environment or parameters!"
26
echo " sign for sign_"$context_p"_"$halg" fail" >>test_algs_sign_error.log
28
echo "sign for sign_"$context_p"_"$halg" pass" >>test_algs_sign_pass.log