Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7689000
test_decryption.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
674 B
Referenced Files
None
Subscribers
None
test_decryption.sh
View Options
#!/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
Details
Attached
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)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment