3
#this script is for hash case testing
9
if [ ! -f hash.in ];then
10
echo "T0naX0u123abc" >hash.in
13
for Hierarchy in e o p n
15
for halg in 0x0004 0x000B 0x000C 0x000D 0x0012
18
tpm2_hash -H $Hierarchy -g $halg -I hash.in -o hash_out_"$Hierarchy"_"$halg" -t hash_tk_"$Hierarchy"_"$halg"
20
echo "hash for hash_out_"$Hierarchy"_"$halg" fail, please check the environment or parameters!"
22
echo "hash for hash_out_"$Hierarchy"_"$halg" pass" >>test_hash_pass.log