Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/cryptodev.c
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | |||||
struct csession { | struct csession { | ||||
TAILQ_ENTRY(csession) next; | TAILQ_ENTRY(csession) next; | ||||
crypto_session_t cses; | crypto_session_t cses; | ||||
volatile u_int refs; | volatile u_int refs; | ||||
uint32_t ses; | uint32_t ses; | ||||
struct mtx lock; /* for op submission */ | struct mtx lock; /* for op submission */ | ||||
struct enc_xform *txform; | const struct enc_xform *txform; | ||||
int hashsize; | int hashsize; | ||||
int ivsize; | int ivsize; | ||||
int mode; | int mode; | ||||
void *key; | void *key; | ||||
void *mackey; | void *mackey; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | checkforsoftware(int *cridp) | ||||
return 0; | return 0; | ||||
} | } | ||||
static int | static int | ||||
cse_create(struct fcrypt *fcr, struct session2_op *sop) | cse_create(struct fcrypt *fcr, struct session2_op *sop) | ||||
{ | { | ||||
struct crypto_session_params csp; | struct crypto_session_params csp; | ||||
struct csession *cse; | struct csession *cse; | ||||
struct enc_xform *txform; | const struct enc_xform *txform; | ||||
struct auth_hash *thash; | const struct auth_hash *thash; | ||||
void *key = NULL; | void *key = NULL; | ||||
void *mackey = NULL; | void *mackey = NULL; | ||||
crypto_session_t cses; | crypto_session_t cses; | ||||
int crid, error; | int crid, error; | ||||
switch (sop->cipher) { | switch (sop->cipher) { | ||||
case 0: | case 0: | ||||
txform = NULL; | txform = NULL; | ||||
▲ Show 20 Lines • Show All 1,052 Lines • Show Last 20 Lines |