mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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:
parent
cf2d89d98b
commit
1907a57b5f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue