From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from avasout06.plus.net (avasout06.plus.net [212.159.14.18]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 9 Dec 2014 15:36:32 +0100 (CET) Message-ID: <54870849.4000904@jelmail.com> Date: Tue, 09 Dec 2014 14:33:45 +0000 From: John Lane MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: [dm-crypt] Plain hashing algorithm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Just trying to satisfy my curiosity... hope that's ok... When I do plain mode I can specify a hash or accept the default, ripemd160. That isn't the full story, however, as the hash (160 bits) is stretched to the key size (256 bits). I've checked the source and can see the algorithm in the code (crypt_plain.c#30-62). I don't fully understand it but just wondered if that's some standard alg similar PBKDF2 (which it isn't) or something specifc to cryptsetup? I'm also curious about the "hack from hashalot". By googling that phrase I find it's been copied into a number of other things. Like I said, just curious. Thanks, John