Lines Matching refs:fctx
38 struct flexi_crypto_context *fctx; in nitrox_aes_gcm_setkey() local
46 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey()
47 flags.fu = be64_to_cpu(fctx->flags.f); in nitrox_aes_gcm_setkey()
49 fctx->flags.f = cpu_to_be64(flags.fu); in nitrox_aes_gcm_setkey()
52 memset(&fctx->crypto, 0, sizeof(fctx->crypto)); in nitrox_aes_gcm_setkey()
53 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_aes_gcm_setkey()
62 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize() local
65 flags.fu = be64_to_cpu(fctx->flags.f); in nitrox_aead_setauthsize()
67 fctx->flags.f = cpu_to_be64(flags.fu); in nitrox_aead_setauthsize()
219 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_enc() local
225 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_enc()
253 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_dec() local
259 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_dec()
300 nctx->u.fctx->flags.f = 0; in nitrox_aead_init()
315 flags = &nctx->u.fctx->flags; in nitrox_gcm_common_init()
347 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_exit() local
349 memzero_explicit(&fctx->crypto, sizeof(struct crypto_keys)); in nitrox_aead_exit()
350 memzero_explicit(&fctx->auth, sizeof(struct auth_keys)); in nitrox_aead_exit()
363 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_rfc4106_setkey() local
374 memcpy(fctx->crypto.iv, key + keylen, GCM_AES_SALT_SIZE); in nitrox_rfc4106_setkey()