Lines Matching refs:key
53 u8 *key; member
59 const u8 *key, in _key_to_kb() argument
81 memcpy(kb->keybuf + sizeof(*h), key, keylen); in _key_to_kb()
83 kb->key = kb->keybuf; in _key_to_kb()
88 kb->key = kb->keybuf; in _key_to_kb()
90 kb->key = kmalloc(keylen, GFP_KERNEL); in _key_to_kb()
91 if (!kb->key) in _key_to_kb()
94 memcpy(kb->key, key, keylen); in _key_to_kb()
104 if (kb->key && kb->key != kb->keybuf in _free_kb_keybuf()
106 kfree(kb->key); in _free_kb_keybuf()
107 kb->key = NULL; in _free_kb_keybuf()
135 ret = pkey_keyblob2pkey(kb->key, kb->keylen, pk); in __paes_keyblob2pkey()
163 ctx->kb.key = NULL; in ecb_paes_init()
218 u8 key[MAXPROTKEYSIZE]; in ecb_paes_crypt() member
226 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
240 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
278 ctx->kb.key = NULL; in cbc_paes_init()
334 u8 key[MAXPROTKEYSIZE]; in cbc_paes_crypt() member
343 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in cbc_paes_crypt()
359 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in cbc_paes_crypt()
398 ctx->kb[0].key = NULL; in xts_paes_init()
399 ctx->kb[1].key = NULL; in xts_paes_init()
496 u8 key[MAXPROTKEYSIZE]; /* key + verification pattern */ in xts_paes_crypt() member
503 u8 key[MAXPROTKEYSIZE]; /* key + verification pattern */ in xts_paes_crypt() member
517 memcpy(pcc_param.key + offset, ctx->pk[1].protkey, keylen); in xts_paes_crypt()
518 memcpy(xts_param.key + offset, ctx->pk[0].protkey, keylen); in xts_paes_crypt()
520 cpacf_pcc(ctx->fc, pcc_param.key + offset); in xts_paes_crypt()
526 k = cpacf_km(ctx->fc | modifier, xts_param.key + offset, in xts_paes_crypt()
534 memcpy(xts_param.key + offset, in xts_paes_crypt()
575 ctx->kb.key = NULL; in ctr_paes_init()
647 u8 key[MAXPROTKEYSIZE]; in ctr_paes_crypt() member
655 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ctr_paes_crypt()
681 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ctr_paes_crypt()
701 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ctr_paes_crypt()