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.
This commit is contained in:
Poul-Henning Kamp 2002-10-28 11:06:58 +00:00
parent cf2d89d98b
commit 1907a57b5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106085

View File

@ -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 *)&sector, sizeof sector);
}