Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11m8bdP-QX17 for ; Thu, 24 Jan 2013 14:44:12 +0100 (CET) Received: from li61-168.members.linode.com (li61-168.members.linode.com [97.107.131.168]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 24 Jan 2013 14:44:12 +0100 (CET) Date: Thu, 24 Jan 2013 13:34:42 +0000 From: Andrea Message-ID: <20130124133441.GA8986@li61-168.members.linode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [dm-crypt] --key-file size... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi all, and thanks a lot for your work. I'm a happy user of cryptsetup. I need to store hospital data, and I would like to use a big key file. Well, I checked for compile limits (Ubuntu 12.10) $ cryptsetup --help|grep -i maximum Maximum keyfile size: 8192kB, Maximum interactive passphrase length 512 (characters) Anyway, if I check with the simple script under, it seems cryptsetup ignore everything where $size > 32. What I am doing wrong? Thanks a lot for your time, A. ------------ #!/bin/bash fdloopback="/tmp/loopback.dd" fdkey="/tmp/key_master" fdkeytmp="/tmp/key" cryptname="keytest" dd if=/dev/zero of=$fdloopback bs=1G count=0 seek=1 nettle-lfib-stream | dd of=$fdkey bs=1K count=8192 iflag=fullblock losetup /dev/loop0 $fdloopback cryptsetup create $cryptname /dev/loop0 --key-file $fdkey mkfs.ext4 -q /dev/mapper/$cryptname -F sync cryptsetup remove $cryptname losetup -d /dev/loop0 for size in $(seq 2 2 8192) do dd if=$fdkey of=$fdkeytmp bs=1 count=$size losetup /dev/loop0 $fdloopback cryptsetup create $cryptname /dev/loop0 --key-file $fdkeytmp fsck /dev/mapper/$cryptname && echo "------> Good, " $size || echo "------> Bad, " $size sync cryptsetup remove $cryptname losetup -d /dev/loop0 echo "Enter to go on";read trash done