Lines Matching refs:fctx
39 struct flexi_crypto_context *fctx; in nitrox_aes_gcm_setkey() local
49 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey()
50 flags.f = be64_to_cpu(fctx->flags.f); in nitrox_aes_gcm_setkey()
52 fctx->flags.f = cpu_to_be64(flags.f); in nitrox_aes_gcm_setkey()
55 memset(&fctx->crypto, 0, sizeof(fctx->crypto)); in nitrox_aes_gcm_setkey()
56 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_aes_gcm_setkey()
65 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize() local
68 flags.f = be64_to_cpu(fctx->flags.f); in nitrox_aead_setauthsize()
70 fctx->flags.f = cpu_to_be64(flags.f); in nitrox_aead_setauthsize()
195 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_enc() local
198 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_enc()
226 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_dec() local
229 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_dec()
270 nctx->u.fctx->flags.f = 0; in nitrox_aead_init()
285 flags = &nctx->u.fctx->flags; in nitrox_gcm_common_init()
317 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_exit() local
319 memzero_explicit(&fctx->crypto, sizeof(struct crypto_keys)); in nitrox_aead_exit()
320 memzero_explicit(&fctx->auth, sizeof(struct auth_keys)); in nitrox_aead_exit()
333 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_rfc4106_setkey() local
344 memcpy(fctx->crypto.iv, key + keylen, GCM_AES_SALT_SIZE); in nitrox_rfc4106_setkey()