Changeset View
Changeset View
Standalone View
Standalone View
head/sys/crypto/armv8/armv8_crypto.c
Show First 20 Lines • Show All 275 Lines • ▼ Show 20 Lines | armv8_crypto_process(device_t dev, struct cryptop *crp, int hint __unused) | ||||
} | } | ||||
ses = crypto_get_driver_session(crp->crp_session); | ses = crypto_get_driver_session(crp->crp_session); | ||||
error = armv8_crypto_cipher_process(ses, crp); | error = armv8_crypto_cipher_process(ses, crp); | ||||
out: | out: | ||||
crp->crp_etype = error; | crp->crp_etype = error; | ||||
crypto_done(crp); | crypto_done(crp); | ||||
return (error); | return (0); | ||||
} | } | ||||
static uint8_t * | static uint8_t * | ||||
armv8_crypto_cipher_alloc(struct cryptop *crp, int *allocated) | armv8_crypto_cipher_alloc(struct cryptop *crp, int *allocated) | ||||
{ | { | ||||
uint8_t *addr; | uint8_t *addr; | ||||
addr = crypto_contiguous_subsegment(crp, crp->crp_payload_start, | addr = crypto_contiguous_subsegment(crp, crp->crp_payload_start, | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |