Lines Matching refs:enckey
49 u8 *enckey; member
73 if (ctx->enckey) { in cc_aead_exit()
74 dma_free_coherent(dev, AES_MAX_KEY_SIZE, ctx->enckey, in cc_aead_exit()
79 ctx->enckey = NULL; in cc_aead_exit()
144 ctx->enckey = dma_alloc_coherent(dev, AES_MAX_KEY_SIZE, in cc_aead_init()
146 if (!ctx->enckey) { in cc_aead_init()
151 ctx->enckey); in cc_aead_init()
549 const u8 *enckey, *authkey; in cc_aead_setkey() local
563 enckey = keys.enckey; in cc_aead_setkey()
576 memcpy(ctx->ctr_nonce, enckey + ctx->enc_keylen - in cc_aead_setkey()
582 enckey = key; in cc_aead_setkey()
595 memcpy(ctx->enckey, enckey, ctx->enc_keylen); in cc_aead_setkey()
597 memset(ctx->enckey + 24, 0, CC_AES_KEY_SIZE_MAX - 24); in cc_aead_setkey()
648 err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: in cc_des3_aead_setkey()