Page MenuHomePhabricator

test_decryption.sh
No OneTemporary

Size
674 B
Referenced Files
None
Subscribers
None

test_decryption.sh

#!/bin/sh
echo === VERIFY THAT WE CAN STILL DECRYPT encrypted.aff ===
unset AFFLIB_PASSPHRASE
if test "x$srcdir" = x; then
srcdir=.
fi
if ( ../tools/affcompare file://:password@/$srcdir/encrypted.aff $srcdir/encrypted.iso ) ; then
echo Verifies with correct decryption passphrase.
else
echo Does not verify with correct decryption passphrase.
exit 1
fi
echo This next affcompare should generate an error:
if ( ../tools/affcompare file://:wrongphrase@/$srcdir/encrypted.aff $srcdir/encrypted.iso ) ; then
echo Does not verify with correct decryption passphrase.
exit 1
else
echo Cannot verify with the wrong passphrase!
fi
echo ALL TESTS PASS
exit 0

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Oct 31, 11:13 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1347919
Default Alt Text
test_decryption.sh (674 B)

Event Timeline