Changeset View
Changeset View
Standalone View
Standalone View
sys/crypto/via/padlock.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
#define cw_filler1 __field.filler1 | #define cw_filler1 __field.filler1 | ||||
#define cw_filler2 __field.filler2 | #define cw_filler2 __field.filler2 | ||||
#define cw_filler3 __field.filler3 | #define cw_filler3 __field.filler3 | ||||
struct padlock_session { | struct padlock_session { | ||||
union padlock_cw ses_cw __aligned(16); | union padlock_cw ses_cw __aligned(16); | ||||
uint32_t ses_ekey[4 * (RIJNDAEL_MAXNR + 1) + 4] __aligned(16); /* 128 bit aligned */ | uint32_t ses_ekey[4 * (RIJNDAEL_MAXNR + 1) + 4] __aligned(16); /* 128 bit aligned */ | ||||
uint32_t ses_dkey[4 * (RIJNDAEL_MAXNR + 1) + 4] __aligned(16); /* 128 bit aligned */ | uint32_t ses_dkey[4 * (RIJNDAEL_MAXNR + 1) + 4] __aligned(16); /* 128 bit aligned */ | ||||
struct auth_hash *ses_axf; | const struct auth_hash *ses_axf; | ||||
uint8_t *ses_ictx; | uint8_t *ses_ictx; | ||||
uint8_t *ses_octx; | uint8_t *ses_octx; | ||||
int ses_mlen; | int ses_mlen; | ||||
struct fpu_kern_ctx *ses_fpu_ctx; | struct fpu_kern_ctx *ses_fpu_ctx; | ||||
}; | }; | ||||
#define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16)) | #define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16)) | ||||
Show All 12 Lines |