"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "testing/mudslinger.in" between
cryptmount-5.3.tar.gz and cryptmount-5.3.1.tar.gz

About: cryptmount allows any user to access encrypted filing systems on demand under GNU/Linux systems. It also assists the system administrator in creating and managing encrypted filesystems based on the kernels dm-crypt device-mapper target.

mudslinger.in  (cryptmount-5.3):mudslinger.in  (cryptmount-5.3.1)
skipping to change at line 108 skipping to change at line 108
function wait_udev() { function wait_udev() {
# Wait for udev events to settle # Wait for udev events to settle
udevadm settle 2>/dev/null \ udevadm settle 2>/dev/null \
|| udevsettle 2>/dev/null \ || udevsettle 2>/dev/null \
|| sleep 5 || sleep 5
}; };
function mk_ssl_keyfile() { function mk_ssl_keyfile() {
# Syntax: mk_ssl_keyfile <bytes> <message_digest> <cipher> # Syntax: mk_ssl_keyfile <bytes> <message_digest> <cipher>
${DD} if=/dev/urandom bs=${1}c count=1 2>/dev/null | \ ${DD} if=/dev/urandom bs=${1}c count=1 2>/dev/null | \
openssl enc -e -pass pass:${PASSWD} -md $2 -${3} openssl enc -e -pass pass:${PASSWD} -md $2 -${3} 2>/dev/null
}; };
function mkrandshort() { function mkrandshort() {
# Create random 4-digit hex number # Create random 4-digit hex number
od -An -N2 -t x2 /dev/urandom | sed 's% *%%g' od -An -N2 -t x2 /dev/urandom | sed 's% *%%g'
}; };
function mkbingrep() { function mkbingrep() {
# Create simple binary-grep for block-offset test # Create simple binary-grep for block-offset test
cat <<EOF > "${1}.c" cat <<EOF > "${1}.c"
skipping to change at line 1202 skipping to change at line 1202
done done
test_pass test_pass
}; };
function test_cryptsetup_compat() { function test_cryptsetup_compat() {
# Check compatibility with (plain old) cryptsetup # Check compatibility with (plain old) cryptsetup
if test_start "cryptsetup compatibility"; then true; else return; fi if test_start "cryptsetup compatibility"; then true; else return; fi
if which cryptsetup 1>&3; then true; else test_fail "cryptsetup not availabl e"; return; fi if which cryptsetup 1>&3; then true; else test_fail "cryptsetup not availabl e"; return; fi
if ${CM} --key-managers 2>/dev/null | grep -q openssl; then true; else test_ fail "No OpenSSL support"; return; fi if ${CM} --key-managers 2>/dev/null | grep -q openssl; then true; else test_ fail "No OpenSSL support"; return; fi
mk_ssl_keyfile 32 md5 aes192 > ${TMPDIR}/keyfile mk_ssl_keyfile 32 md5 aes192 > ${TMPDIR}/keyfile
openssl enc -d -aes192 -md md5 -in ${TMPDIR}/keyfile -pass pass:${PASSWD} -o ut ${TMPDIR}/keymat openssl enc -d -aes192 -md md5 -in ${TMPDIR}/keyfile -pass pass:${PASSWD} -o ut ${TMPDIR}/keymat 2>/dev/null
for cipher in blowfish serpent for cipher in blowfish serpent
do do
for length in 4096 8192 for length in 4096 8192
do do
for startsec in 0 32 for startsec in 0 32
do do
for ivoffset in 0 172 932 for ivoffset in 0 172 932
do do
idx=`mkrandshort` idx=`mkrandshort`
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)