Bug#364529: [Pkg-cryptsetup-devel] Bug#364529: cryptsetup: non-terminal input truncated at 32 characters

Jonas Meurer jonas at freesources.org
Wed Apr 26 21:13:16 UTC 2006


On 23/04/2006 Kees Cook wrote:
> When sending a pass-phrase over stdin without a terminal, the input 
> string is truncated to 32 characters.  Using "ltrace", it is clearly 
> visible.  This rendered my mounts with long pass-phrases unmountable, 
> and I had to down-grade.

can you provide the relevant ltrace output?

it's not clear to me what you mean with a terminal. for me, submitting
a passphrase which is longer than 32 chars to cryptsetup via stdin works
perfectly well, even with cryptsetup 1.0.2+1.0.3-rc3-1:

luksOpen:

# echo "ffffffffffffffffffffffffffffffffffff" | cryptsetup -q luksFormat /dev/vg_external/test
Command successful.
# echo "ffffffffffffffffffffffffffffffffffff" | cryptsetup luksOpen /dev/vg_external/test test
key slot 0 unlocked.
Command successful.
#

and plain dm-crypt create:

# echo "ffffffffffffffffffffffffffffffffffff" | cryptsetup create test /dev/vg_external/test
#

in a script, it works too without problems. just in case that you meant
that with terminal.

...
 jonas




More information about the Pkg-cryptsetup-devel mailing list