Lines Matching refs:enckey
48 u8 *enckey; member
77 if (ctx->enckey) { in cc_aead_exit()
78 dma_free_coherent(dev, AES_MAX_KEY_SIZE, ctx->enckey, in cc_aead_exit()
83 ctx->enckey = NULL; in cc_aead_exit()
148 ctx->enckey = dma_alloc_coherent(dev, AES_MAX_KEY_SIZE, in cc_aead_init()
150 if (!ctx->enckey) { in cc_aead_init()
155 ctx->enckey); in cc_aead_init()
551 const u8 *enckey, *authkey; in cc_aead_setkey() local
565 enckey = keys.enckey; in cc_aead_setkey()
579 memcpy(ctx->ctr_nonce, enckey + ctx->enc_keylen - in cc_aead_setkey()
585 enckey = key; in cc_aead_setkey()
598 memcpy(ctx->enckey, enckey, ctx->enc_keylen); in cc_aead_setkey()
600 memset(ctx->enckey + 24, 0, CC_AES_KEY_SIZE_MAX - 24); in cc_aead_setkey()
658 err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: in cc_des3_aead_setkey()