diff options
author | phk <phk@FreeBSD.org> | 2002-10-28 11:06:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-28 11:06:58 +0000 |
commit | 35eae04ebba0470bb5b9b14580d28e369d3880a8 (patch) | |
tree | f16ab84f81a6b1e2bd4607f76685e6b389b09595 /sys | |
parent | 8f1da1ac7df362292d976af34effef4864bf0965 (diff) | |
download | FreeBSD-src-35eae04ebba0470bb5b9b14580d28e369d3880a8.zip FreeBSD-src-35eae04ebba0470bb5b9b14580d28e369d3880a8.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/bde/g_bde_crypt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/bde/g_bde_crypt.c b/sys/geom/bde/g_bde_crypt.c index c649e23..ee795f5 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); } |