[Pkg-cryptsetup-devel] Bug#379737: cryptsetup: cannot handle UTF-8 in passphrase

Robert Bihlmeyer r.bihlmeyer at internet-security.at
Tue Jul 25 09:49:10 UTC 2006


Package: cryptsetup
Version: 2:1.0.3-3

(Last report for today, I promise!)

This issue is related to the keymap troubles. If you luksAddKey in an UTF-8
environment entering "ä" in the passphrase will result in the two bytes 0xc3
and 0xa4. When you later reenter this "ä" during the initram/initrd phase, the
console is not (yet) in Unicode mode, so it only results in the single byte
0xe4 ... the passphrases will not match.

I am unsure how to solve this. Canonising all passphrases before hashing is a
nice option, but this may involve largish tables unsuitable for an initrd. 
Maybe the console should be switched to Unicode mode akin to loading the right
keymap?

TIA,
-- 
Robbe




More information about the Pkg-cryptsetup-devel mailing list