Changeset View
Changeset View
Standalone View
Standalone View
sys/crypto/aesni/aesni.c
| Show First 20 Lines • Show All 604 Lines • ▼ Show 20 Lines | if (ses->hash_len != 0) { | ||||
| else | else | ||||
| ses->mlen = csp->csp_auth_mlen; | ses->mlen = csp->csp_auth_mlen; | ||||
| error = aesni_authprepare(ses, csp->csp_auth_klen); | error = aesni_authprepare(ses, csp->csp_auth_klen); | ||||
| if (error != 0) | if (error != 0) | ||||
| return (error); | return (error); | ||||
| } | } | ||||
| kt = is_fpu_kern_thread(0) || (csp->csp_cipher_alg == 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, | ||||
| FPU_KERN_NORMAL | FPU_KERN_KTHR); | FPU_KERN_NORMAL | FPU_KERN_KTHR); | ||||
| } | } | ||||
| error = 0; | error = 0; | ||||
| if (csp->csp_cipher_key != NULL) | if (csp->csp_cipher_key != NULL) | ||||
| ▲ Show 20 Lines • Show All 302 Lines • Show Last 20 Lines | |||||