Lines Matching refs:fctx
39 struct flexi_crypto_context *fctx; in nitrox_aes_gcm_setkey() local
47 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey()
48 flags.f = be64_to_cpu(fctx->flags.f); in nitrox_aes_gcm_setkey()
50 fctx->flags.f = cpu_to_be64(flags.f); in nitrox_aes_gcm_setkey()
53 memset(&fctx->crypto, 0, sizeof(fctx->crypto)); in nitrox_aes_gcm_setkey()
54 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_aes_gcm_setkey()
63 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize() local
66 flags.f = be64_to_cpu(fctx->flags.f); in nitrox_aead_setauthsize()
68 fctx->flags.f = cpu_to_be64(flags.f); in nitrox_aead_setauthsize()
220 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_enc() local
226 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_enc()
254 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_dec() local
260 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_dec()
301 nctx->u.fctx->flags.f = 0; in nitrox_aead_init()
316 flags = &nctx->u.fctx->flags; in nitrox_gcm_common_init()
348 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_exit() local
350 memzero_explicit(&fctx->crypto, sizeof(struct crypto_keys)); in nitrox_aead_exit()
351 memzero_explicit(&fctx->auth, sizeof(struct auth_keys)); in nitrox_aead_exit()
364 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_rfc4106_setkey() local
375 memcpy(fctx->crypto.iv, key + keylen, GCM_AES_SALT_SIZE); in nitrox_rfc4106_setkey()