freebsd-dev/sys/geom/eli
Colin Percival 835c4dd436 Cache GELI passphrases entered at the console during the boot process,
in order to improve user-friendliness when a system has multiple disks
encrypted using the same passphrase.

When examining a new GELI provider, the most recently used passphrase
will be attempted before prompting for a passphrase; and whenever a
passphrase is entered, it is cached for later reference.  When the root
disk is mounted, the cached passphrase is zeroed (triggered by the
"mountroot" event), in order to minimize the possibility of leakage
of passphrases.  (After root is mounted, the "taste and prompt for
passphrases on the console" code path is disabled, so there is no
potential for a passphrase to be stored after the zeroing takes place.)

This behaviour can be disabled by setting kern.geom.eli.boot_passcache=0.

Reviewed by:	pjd, dteske, allanjude
MFC after:	7 days
2014-09-16 08:40:52 +00:00
..
g_eli_crypto.c use a straight buffer instead of an iov w/ 1 segment... The aesni 2014-09-04 23:53:51 +00:00
g_eli_ctl.c When zero'ing out a buffer, make sure we are using right size. 2013-11-02 01:16:10 +00:00
g_eli_integrity.c use a straight buffer instead of an iov w/ 1 segment... The aesni 2014-09-04 23:53:51 +00:00
g_eli_key_cache.c Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
g_eli_key.c Correct a comment and correct style of a flag check. 2012-07-04 17:43:25 +00:00
g_eli_privacy.c use a straight buffer instead of an iov w/ 1 segment... The aesni 2014-09-04 23:53:51 +00:00
g_eli.c Cache GELI passphrases entered at the console during the boot process, 2014-09-16 08:40:52 +00:00
g_eli.h Use correct part of the Master-Key for generating encryption keys. 2012-07-04 17:54:17 +00:00
pkcs5v2.c
pkcs5v2.h