mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-26 22:01:50 +00:00
866aa787cf
Update to ioquake3 revision 3306 from 1951 of the ioq3 Github repo via subversion. Over 4 years of changes.
17 lines
799 B
Bash
17 lines
799 B
Bash
#!/bin/bash
|
|
|
|
if [ -f privatekey.bin ]; then
|
|
echo "move your existing keys out of the way."
|
|
exit 1
|
|
fi
|
|
|
|
( ./rsa_make_keys && echo "key making okay") || echo "key making NOT okay"
|
|
echo "The quick brown fox jumped over the lazy dog." >testmsg.txt
|
|
( ./rsa_sign testmsg.txt && echo "signing okay" ) || echo "signing NOT okay"
|
|
( ./rsa_verify testmsg.txt && echo "basic verifying okay" ) || echo "basic verifying NOT okay"
|
|
echo "The quick brown fox jumped over the lazy dog!" >testmsg.txt
|
|
( ./rsa_verify testmsg.txt 2>/dev/null && echo "tamper test NOT okay" ) || echo "tamper test okay"
|
|
echo "The quick brown fox jumped over the lazy dog." >testmsg.txt
|
|
( ./rsa_verify testmsg.txt && echo "reverify okay" ) || echo "reverify NOT okay"
|
|
rm -f testmsg.txt testmsg.txt.sig publickey.bin privatekey.bin
|
|
|