Changeset View
Changeset View
Standalone View
Standalone View
head/sys/crypto/armv8/armv8_crypto.c
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | armv8_crypto_newsession(device_t dev, crypto_session_t cses, | ||||
} | } | ||||
ses = crypto_get_driver_session(cses); | ses = crypto_get_driver_session(cses); | ||||
ses->algo = encini->cri_alg; | ses->algo = encini->cri_alg; | ||||
error = armv8_crypto_cipher_setup(ses, encini); | error = armv8_crypto_cipher_setup(ses, encini); | ||||
if (error != 0) { | if (error != 0) { | ||||
CRYPTDEB("setup failed"); | CRYPTDEB("setup failed"); | ||||
rw_wunlock(&sc->lock); | |||||
return (error); | return (error); | ||||
} | } | ||||
rw_wunlock(&sc->lock); | |||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
armv8_crypto_process(device_t dev, struct cryptop *crp, int hint __unused) | armv8_crypto_process(device_t dev, struct cryptop *crp, int hint __unused) | ||||
{ | { | ||||
struct cryptodesc *crd, *enccrd; | struct cryptodesc *crd, *enccrd; | ||||
struct armv8_crypto_session *ses; | struct armv8_crypto_session *ses; | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |