Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=3.0 tests=BAYES_20,DKIM_ADSP_ALL, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 240AAC433DB for ; Wed, 6 Jan 2021 09:36:19 +0000 (UTC) Received: from mail.server123.net (mail.server123.net [78.46.64.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 36BE023102 for ; Wed, 6 Jan 2021 09:36:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 36BE023102 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=kngnt.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dm-crypt-bounces@saout.de X-Virus-Scanned: amavisd-new at saout.de Authentication-Results: mail.server123.net (amavisd-new); dkim=pass (2048-bit key) header.d=kngnt.org Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.166; helo=smtpq3.tb.mail.iss.as9143.net; envelope-from=felix@kngnt.org; receiver= X-Greylist: delayed 1083 seconds by postgrey-1.37 at siona; Wed, 06 Jan 2021 10:35:27 CET Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Wed, 6 Jan 2021 10:35:27 +0100 (CET) Received: from [212.54.42.110] (helo=smtp7.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx4wW-0002xe-4P for dm-crypt@saout.de; Wed, 06 Jan 2021 10:17:24 +0100 Received: from 80-115-99-116.cable.dynamic.v4.ziggo.nl ([80.115.99.116] helo=mail.kngnt.org) by smtp7.tb.mail.iss.as9143.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kx4wV-00AhfJ-Im for dm-crypt@saout.de; Wed, 06 Jan 2021 10:17:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kngnt.org; s=mail; t=1609924642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LhoG5j/oXVfXZTIjLYkf2PcmS5EYHWhSFVgcm/aWDk0=; b=t9er+8A/rZsXGroX0iWTCsD8t2WjHNN9dy0h3Z5mvClkiVQ8sUf0ev3MODtfc0xE2pDrN4 1wKGuUSVUEfgQZ50VDOJ/82fWXOcbVwJK10SHQ9b4UJ1iMzyNNg3j38CCVjvxlYfunSq0k LZ3aNmU2VTj8hur8nQvRukYXEavkMvGxBu+dmCoRc++H4QglZ94GCArrFUmeJrv+tI37jg PhfK7tks8DH+Gim6XQ3NsTeeXG1Ke4ZG0fpZG+SFW/PNcqafps0i6hvNrXgpyWzd+/tT5c 9FjT3sx2/sJa4ZSOPyzHwTgbgnJL4qu2hAJ0ksvYavg6DCYt9nuQCR9ZOn1cJw== MIME-Version: 1.0 Date: Wed, 06 Jan 2021 10:17:22 +0100 From: Felix Rubio To: dm-crypt@saout.de Message-ID: X-Sender: felix@kngnt.org X-SourceIP: 80.115.99.116 X-Authenticated-Sender: f.rubiodalmau@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.4 cv=Ff+JeLy6 c=1 sm=1 tr=0 ts=5ff58023 a=L5q10J0BAxueQzk5LW0IQA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=IkcTkHD0fZMA:10 a=EmqxpYm9HcoA:10 a=95y3FMmOSev6upshJncA:9 a=QEXdDO2ut3YA:10 X-Ziggo-Spam-Status: No Subject: [dm-crypt] length of keyfiles X-BeenThere: dm-crypt@saout.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: dm-crypt-bounces@saout.de Sender: "dm-crypt" Hi everybody, I have seen that keyfiles can be used in cryptsetup up to 8 kB, but internally the master key is 512 bits at max. Is there any recommendation / increased security by using a random sequence of 8 kB w.r.t., let's say, one of just 64 bytes? I understand that using one of 8kB will require more time than one of 64 B when unlocking the volume, but... is the former really that much more secure than the latter? Regards! Felix _______________________________________________ dm-crypt mailing list dm-crypt@saout.de https://www.saout.de/mailman/listinfo/dm-crypt