Re: Script for loop-AES key generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Max Vozeler wrote:
> +check_multikey_support ()
> +{
> +       strings /sbin/losetup | grep -q -s multi-key-v$1
> +}
> +
[snip]
> +if [ "$version" -gt 1 ] && [ -x /usr/bin/strings ]; then
> +       if ! check_multikey_support $version; then
> +               echo "Warning: /sbin/losetup too old for v$version keys."
> +       fi
> +fi

String to grep for in v3 losetup is multi-key-v3
String to grep for in v2 losetup is multi-key

Your code looks for multi-key-v2 string in v2 losetup. That won't work.

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux