From owner-freebsd-questions@FreeBSD.ORG Sun Oct 24 16:04:35 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ACAF1065670 for ; Sun, 24 Oct 2010 16:04:35 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr18.xs4all.nl (smtp-vbr18.xs4all.nl [194.109.24.38]) by mx1.freebsd.org (Postfix) with ESMTP id 3184C8FC08 for ; Sun, 24 Oct 2010 16:04:34 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr18.xs4all.nl (8.13.8/8.13.8) with ESMTP id o9OG4XIw035110; Sun, 24 Oct 2010 18:04:33 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id AF729BAAA; Sun, 24 Oct 2010 18:04:32 +0200 (CEST) Date: Sun, 24 Oct 2010 18:04:32 +0200 From: Roland Smith To: Victor Sudakov , FreeBSD Questions Message-ID: <20101024160432.GB43549@slackbox.erewhon.net> References: <20101024101457.GA72426@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dTy3Mrz/UPE2dbVg" Content-Disposition: inline In-Reply-To: <20101024101457.GA72426@admin.sibptus.tomsk.ru> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Subject: Re: geli keys X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2010 16:04:35 -0000 --dTy3Mrz/UPE2dbVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 24, 2010 at 05:14:57PM +0700, Victor Sudakov wrote: > Colleagues, >=20 > The geli(8) man page suggests initializing a geli provider with a > random keyfile (geli init -K). It also asks for a passphrase by default. >=20 > What happens if a provider is initialized without the -K option, just > with a passphrase?=20 The passphrase is not used as the key directly. It is used to derive the key with PKCS #5 [see http://www.faqs.org/rfcs/rfc2898.html].=20 > Will there be no encryption?=20 No, there will be encryption. > Encryption will be weaker? I don't think so. But in depends on a lot of things. If you use a keyfile, it needs to be on an unencrypted (or previously decrypted) partition, and it needs to be referenced in /etc/rc.conf if you want to be able to maount that partition at boot. So the keyfile might be random but it may not be secret (unless you put it on a USB thumbdrive and mount that before mounting the encrypted fs). Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --dTy3Mrz/UPE2dbVg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkzEWRAACgkQEnfvsMMhpyW5sgCZASoHtAXQkFwfKNpknXSvSfii NEYAoJAtDlJa6yrfUisT0RTKDBCwaEOi =Kefv -----END PGP SIGNATURE----- --dTy3Mrz/UPE2dbVg--