Changeset View
Changeset View
Standalone View
Standalone View
head/stand/libsa/geli/geliboot_internal.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
/* Pull in AES implementation */ | /* Pull in AES implementation */ | ||||
#include <crypto/rijndael/rijndael-api-fst.h> | #include <crypto/rijndael/rijndael-api-fst.h> | ||||
/* AES-XTS implementation */ | /* AES-XTS implementation */ | ||||
#define _STAND 1 | #define _STAND 1 | ||||
#define STAND_H /* We don't want stand.h in {gpt,zfs,gptzfs}boot */ | #define STAND_H /* We don't want stand.h in {gpt,zfs,gptzfs}boot */ | ||||
#include <opencrypto/xform_enc.h> | #include <opencrypto/xform_enc.h> | ||||
struct geli_entry { | #define GELIDEV_NAMELEN 32 | ||||
struct dsk *dsk; | |||||
struct geli_dev { | |||||
off_t part_end; | off_t part_end; | ||||
struct g_eli_softc sc; | struct g_eli_softc sc; | ||||
struct g_eli_metadata md; | struct g_eli_metadata md; | ||||
int keybuf_slot; | int keybuf_slot; | ||||
SLIST_ENTRY(geli_entry) entries; | char *name; /* for prompting; it ends in ':' */ | ||||
} *geli_e, *geli_e_tmp; | }; | ||||
static int geli_count; | int geliboot_crypt(u_int algo, int enc, u_char *data, size_t datasize, | ||||
const u_char *key, size_t keysize, u_char *iv); | |||||
#endif /* _GELIBOOT_INTERNAL_H_ */ | #endif /* _GELIBOOT_INTERNAL_H_ */ |