NAME=check invalid authentihash
FILE=bins/pe/signature.exe
CMDS=<<EOF
k bin/cur/pe/is_authhash_valid
it
itj
EOF
EXPECT=<<EOF
false
md5 23ea4cc8f6e59aa5121bdeb3394150ae
sha1 e2462a381cc60582efcf4dab129f4f08ff396bec
sha256 327ef49480f2fd20bb5f46f7f384ea1ae6ab405a16b17fc575a5e4598a42b570
authentihash c31534a14726a96a54602c3cb9eaa916412223d5
{"md5":"23ea4cc8f6e59aa5121bdeb3394150ae","sha1":"e2462a381cc60582efcf4dab129f4f08ff396bec","sha256":"327ef49480f2fd20bb5f46f7f384ea1ae6ab405a16b17fc575a5e4598a42b570","authentihash":"c31534a14726a96a54602c3cb9eaa916412223d5"}
EOF
RUN

NAME=check valid authentihash
FILE=bins/pe/authentihash.exe
CMDS=<<EOF
k bin/cur/pe/is_authhash_valid
it
itj
EOF
EXPECT=<<EOF
true
md5 dbd0a3bf85cc041794480df9a8dd34a8
sha1 ae34b7b949997d6c65a1549cf234c53a7184a262
sha256 ea4b1a9b05b70c00e56d1939c3037d5aa07117ff871f01caa84f049f9766ae9e
authentihash 2f425cda5b8d590f868a2f0cdbdae4d8c9d31bf7
{"md5":"dbd0a3bf85cc041794480df9a8dd34a8","sha1":"ae34b7b949997d6c65a1549cf234c53a7184a262","sha256":"ea4b1a9b05b70c00e56d1939c3037d5aa07117ff871f01caa84f049f9766ae9e","authentihash":"2f425cda5b8d590f868a2f0cdbdae4d8c9d31bf7"}
EOF
RUN
