Changeset View
Changeset View
Standalone View
Standalone View
head/sys/crypto/armv8/armv8_crypto.c
Show First 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | armv8_crypto_cipher_process(struct armv8_crypto_session *ses, | ||||
if (allocated) | if (allocated) | ||||
crypto_copyback(crp, crp->crp_payload_start, | crypto_copyback(crp, crp->crp_payload_start, | ||||
crp->crp_payload_length, buf); | crp->crp_payload_length, buf); | ||||
if (!kt) { | if (!kt) { | ||||
fpu_kern_leave(curthread, ctx); | fpu_kern_leave(curthread, ctx); | ||||
RELEASE_CTX(i, ctx); | RELEASE_CTX(i, ctx); | ||||
} | } | ||||
if (allocated) { | if (allocated) | ||||
bzero(buf, crp->crp_payload_length); | zfree(buf, M_ARMV8_CRYPTO); | ||||
free(buf, M_ARMV8_CRYPTO); | |||||
} | |||||
return (0); | return (0); | ||||
} | } | ||||
static device_method_t armv8_crypto_methods[] = { | static device_method_t armv8_crypto_methods[] = { | ||||
DEVMETHOD(device_identify, armv8_crypto_identify), | DEVMETHOD(device_identify, armv8_crypto_identify), | ||||
DEVMETHOD(device_probe, armv8_crypto_probe), | DEVMETHOD(device_probe, armv8_crypto_probe), | ||||
DEVMETHOD(device_attach, armv8_crypto_attach), | DEVMETHOD(device_attach, armv8_crypto_attach), | ||||
DEVMETHOD(device_detach, armv8_crypto_detach), | DEVMETHOD(device_detach, armv8_crypto_detach), | ||||
Show All 14 Lines |