| 391 | } |
| 392 | |
| 393 | int |
| 394 | padlock_hash_process(struct padlock_session *ses, struct cryptop *crp, |
| 395 | const struct crypto_session_params *csp) |
| 396 | { |
| 397 | struct thread *td; |
| 398 | int error; |
| 399 | |
| 400 | td = curthread; |
| 401 | fpu_kern_enter(td, ses->ses_fpu_ctx, FPU_KERN_NORMAL | FPU_KERN_KTHR); |
| 402 | if (crp->crp_auth_key != NULL) |
| 403 | padlock_hash_key_setup(ses, crp->crp_auth_key, |
| 404 | csp->csp_auth_klen); |
| 405 | |
| 406 | error = padlock_authcompute(ses, crp); |
| 407 | fpu_kern_leave(td, ses->ses_fpu_ctx); |
| 408 | return (error); |
| 409 | } |
| 410 | |
| 411 | void |
| 412 | padlock_hash_free(struct padlock_session *ses) |
no test coverage detected