mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Use dynamic dd size.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
3514c7ad82
commit
2e633abb2c
1 changed files with 2 additions and 1 deletions
|
|
@ -99,7 +99,8 @@ done
|
|||
echo -n " Test RSA-X-509..."
|
||||
cp data data_pad
|
||||
test $? -eq 0 && echo -n "." || exit $?
|
||||
dd if=/dev/zero bs=1 count=227 >> data_pad > /dev/null 2>&1
|
||||
tlen=${#TEST_DATA}
|
||||
dd if=/dev/zero bs=1 count=$((256-$tlen)) >> data_pad > /dev/null 2>&1
|
||||
test $? -eq 0 && echo -n "." || exit $?
|
||||
pkcs11-tool --id 1 --sign --pin 648219 --mechanism RSA-X-509 -i data_pad -o data.sig > /dev/null 2>&1
|
||||
test $? -eq 0 && echo -n "." || exit $?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue