From 1907a57b5f9574c9a6f219b5442249bd424c19ca Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 28 Oct 2002 11:06:58 +0000 Subject: [PATCH] Fix a bug in the cherry-picker kkey generator routine. WARNING: You need to backup and restore the _unencrypted_ contents WARNING: of your GBDE disks when you take this update! Sponsored by: DARPA & NAI Labs. --- sys/geom/bde/g_bde_crypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/geom/bde/g_bde_crypt.c b/sys/geom/bde/g_bde_crypt.c index c649e23d312..ee795f5288b 100644 --- a/sys/geom/bde/g_bde_crypt.c +++ b/sys/geom/bde/g_bde_crypt.c @@ -146,6 +146,7 @@ g_bde_kkey(struct g_bde_softc *sc, keyInstance *ki, int dir, off_t sector) v += 13; /* A small prime */ else u += 131; /* A prime roughly G_BDE_MKEYLEN / 2 */ + w >>= 1; if (t == G_BDE_SKEYLEN / 2) MD5Update(&ct, (void *)§or, sizeof sector); }