3
#this script is for hash case testing
7
rm -f hash_out_"$Hierarchy"_"$halg" hash_tk_"$Hierarchy"_"$halg"
9
if [ ! -f hash.in ];then
10
echo "T0naX0u123abc" >hash.in
14
tpm2_hash -H $Hierarchy -g $halg -I hash.in -o hash_out_"$Hierarchy"_"$halg" -t hash_tk_"$Hierarchy"_"$halg"
16
echo "hash forHierarchy:"$Hierarchy"halg:"$halg" fail, please check the environment or parameters!"
19
echo "hash for Hierarchy:"$Hierarchy"halg:"$halg" succed"