File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ create_dgst() {
12
12
test $? -eq 0 && echo -n " ." || exit $?
13
13
}
14
14
15
- dgsts=(" sha1 " " sha224 " " sha256" " sha384" " sha512" )
15
+ dgsts=(" sha256" " sha384" " sha512" )
16
16
for dgst in ${dgsts[*]} ; do
17
17
echo -n " Create digest ${dgst} ..."
18
18
create_dgst ${dgst}
@@ -104,7 +104,7 @@ dd if=/dev/zero bs=1 count=$((256-$tlen)) >> data_pad > /dev/null 2>&1
104
104
test $? -eq 0 && echo -n " ." || exit $?
105
105
pkcs11-tool --id 1 --sign --pin 648219 --mechanism RSA-X-509 -i data_pad -o data.sig > /dev/null 2>&1
106
106
test $? -eq 0 && echo -n " ." || exit $?
107
- TDATA=$( tr -d ' \0' < <( openssl rsautl -verify -inkey 1.pub -in data.sig -pubin -raw) )
107
+ TDATA=$( tr -d ' \0' < <( openssl rsautl -verify -inkey 1.pub -in data.sig -pubin -raw 2> /dev/null ) )
108
108
if [[ ${TEST_DATA} != " $TDATA " ]]; then
109
109
exit 1
110
110
fi
You can’t perform that action at this time.
0 commit comments