diff options
author | phk <phk@FreeBSD.org> | 2002-10-20 11:09:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-20 11:09:58 +0000 |
commit | 9c61841d19004e25f56b1614e189c3d788de7154 (patch) | |
tree | 6d73a5810f3efbb1b39ff7b946c689897a3343d5 /sys/geom/bde/g_bde.h | |
parent | 8ed112060e6024f58c2e8a461abb5e64a65c8ff2 (diff) | |
download | FreeBSD-src-9c61841d19004e25f56b1614e189c3d788de7154.zip FreeBSD-src-9c61841d19004e25f56b1614e189c3d788de7154.tar.gz |
Constify input to the arc4 seed function.
Implement the lockfile hunting in sector zero.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/bde/g_bde.h')
-rw-r--r-- | sys/geom/bde/g_bde.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/bde/g_bde.h b/sys/geom/bde/g_bde.h index df924e4..016db7b 100644 --- a/sys/geom/bde/g_bde.h +++ b/sys/geom/bde/g_bde.h @@ -91,6 +91,7 @@ struct g_bde_key { /* Physical offsets */ uint32_t sectorsize; uint32_t flags; + /* 1 = lockfile in sector 0 */ uint8_t hash[16]; uint8_t spare[48]; uint8_t key[G_BDE_MKEYLEN]; @@ -135,7 +136,7 @@ void g_bde_encode_lock(struct g_bde_key *gl, u_char *ptr); void g_bde_decode_lock(struct g_bde_key *gl, u_char *ptr); u_char g_bde_arc4(struct g_bde_softc *sc); void g_bde_arc4_seq(struct g_bde_softc *sc, void *ptr, u_int len); -void g_bde_arc4_seed(struct g_bde_softc *sc, void *ptr, u_int len); +void g_bde_arc4_seed(struct g_bde_softc *sc, const void *ptr, u_int len); int g_bde_keyloc_encrypt(struct g_bde_softc *sc, void *input, void *output); int g_bde_keyloc_decrypt(struct g_bde_softc *sc, void *input, void *output); int g_bde_decrypt_lock(struct g_bde_softc *sc, u_char *sbox, u_char *meta, off_t mediasize, u_int sectorsize, u_int *nkey); |