• Home
  • Raw
  • Download

Lines Matching refs:nctx

38 	struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);  in nitrox_aes_gcm_setkey()  local
47 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey()
62 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aead_setauthsize() local
63 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize()
217 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_enc() local
220 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_enc()
235 rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_aes_gcm_enc()
244 return nitrox_process_se_request(nctx->ndev, creq, nitrox_aead_callback, in nitrox_aes_gcm_enc()
251 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_dec() local
254 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_dec()
269 rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_aes_gcm_dec()
278 return nitrox_process_se_request(nctx->ndev, creq, nitrox_aead_callback, in nitrox_aes_gcm_dec()
284 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aead_init() local
288 nctx->ndev = nitrox_get_first_device(); in nitrox_aead_init()
289 if (!nctx->ndev) in nitrox_aead_init()
293 chdr = crypto_alloc_context(nctx->ndev); in nitrox_aead_init()
295 nitrox_put_device(nctx->ndev); in nitrox_aead_init()
298 nctx->chdr = chdr; in nitrox_aead_init()
299 nctx->u.ctx_handle = (uintptr_t)((u8 *)chdr->vaddr + in nitrox_aead_init()
301 nctx->u.fctx->flags.f = 0; in nitrox_aead_init()
309 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_gcm_common_init() local
316 flags = &nctx->u.fctx->flags; in nitrox_gcm_common_init()
344 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aead_exit() local
347 if (nctx->u.ctx_handle) { in nitrox_aead_exit()
348 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_exit()
352 crypto_free_context((void *)nctx->chdr); in nitrox_aead_exit()
354 nitrox_put_device(nctx->ndev); in nitrox_aead_exit()
356 nctx->u.ctx_handle = 0; in nitrox_aead_exit()
357 nctx->ndev = NULL; in nitrox_aead_exit()
363 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_rfc4106_setkey() local
364 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_rfc4106_setkey()
444 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_rfc4106_enc() local
457 aead_rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_rfc4106_enc()
469 return nitrox_process_se_request(nctx->ndev, creq, in nitrox_rfc4106_enc()
476 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_rfc4106_dec() local
490 aead_rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_rfc4106_dec()
502 return nitrox_process_se_request(nctx->ndev, creq, in nitrox_rfc4106_dec()