Changeset View
Changeset View
Standalone View
Standalone View
sys/crypto/blake2/blake2_cryptodev.c
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | blake2_cipher_process(struct blake2_session *ses, struct cryptop *crp) | ||||
const struct crypto_session_params *csp; | const struct crypto_session_params *csp; | ||||
struct fpu_kern_ctx *ctx; | struct fpu_kern_ctx *ctx; | ||||
const void *key; | const void *key; | ||||
int ctxidx; | int ctxidx; | ||||
bool kt; | bool kt; | ||||
int error, rc; | int error, rc; | ||||
unsigned klen; | unsigned klen; | ||||
if (crp->crp_op & CRYPTO_OP_SKIP_DIGEST) | |||||
return (0); | |||||
ctx = NULL; | ctx = NULL; | ||||
ctxidx = 0; | ctxidx = 0; | ||||
error = EINVAL; | error = EINVAL; | ||||
kt = is_fpu_kern_thread(0); | kt = is_fpu_kern_thread(0); | ||||
if (!kt) { | if (!kt) { | ||||
ACQUIRE_CTX(ctxidx, ctx); | ACQUIRE_CTX(ctxidx, ctx); | ||||
fpu_kern_enter(curthread, ctx, | fpu_kern_enter(curthread, ctx, | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |