svn commit: r213062 - head/sys/geom/eli
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Sep 23 11:19:49 UTC 2010
Author: pjd
Date: Thu Sep 23 11:19:48 2010
New Revision: 213062
URL: http://svn.freebsd.org/changeset/base/213062
Log:
Define default overwrite count, so that userland can use it.
MFC after: 1 week
Modified:
head/sys/geom/eli/g_eli.c
head/sys/geom/eli/g_eli.h
Modified: head/sys/geom/eli/g_eli.c
==============================================================================
--- head/sys/geom/eli/g_eli.c Thu Sep 23 11:19:03 2010 (r213061)
+++ head/sys/geom/eli/g_eli.c Thu Sep 23 11:19:48 2010 (r213062)
@@ -69,7 +69,7 @@ TUNABLE_INT("kern.geom.eli.visible_passp
SYSCTL_UINT(_kern_geom_eli, OID_AUTO, visible_passphrase, CTLFLAG_RW,
&g_eli_visible_passphrase, 0,
"Turn on echo when entering the passphrase (for debug purposes only!!)");
-u_int g_eli_overwrites = 5;
+u_int g_eli_overwrites = G_ELI_OVERWRITES;
TUNABLE_INT("kern.geom.eli.overwrites", &g_eli_overwrites);
SYSCTL_UINT(_kern_geom_eli, OID_AUTO, overwrites, CTLFLAG_RW, &g_eli_overwrites,
0, "Number of times on-disk keys should be overwritten when destroying them");
Modified: head/sys/geom/eli/g_eli.h
==============================================================================
--- head/sys/geom/eli/g_eli.h Thu Sep 23 11:19:03 2010 (r213061)
+++ head/sys/geom/eli/g_eli.h Thu Sep 23 11:19:48 2010 (r213062)
@@ -97,6 +97,7 @@
#define G_ELI_DATAIVKEYLEN (G_ELI_DATAKEYLEN + G_ELI_IVKEYLEN)
/* Data-Key, IV-Key, HMAC_SHA512(Derived-Key, Data-Key+IV-Key) */
#define G_ELI_MKEYLEN (G_ELI_DATAIVKEYLEN + SHA512_MDLEN)
+#define G_ELI_OVERWRITES 5
#ifdef _KERNEL
extern u_int g_eli_debug;
More information about the svn-src-all
mailing list