Lines Matching defs:ukey
259 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey,
331 * @ukey: pointer to user key data
334 int tipc_aead_key_validate(struct tipc_aead_key *ukey, struct genl_info *info)
339 if (unlikely(!crypto_has_alg(ukey->alg_name, 0, 0))) {
345 if (strcmp(ukey->alg_name, "gcm(aes)")) {
351 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE;
504 * @ukey: pointer to user key data
514 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey,
532 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE;
543 tfm = crypto_alloc_aead(ukey->alg_name, 0, 0);
557 err |= crypto_aead_setkey(tfm, ukey->key, keylen);
592 bin2hex(tmp->hint, ukey->key + keylen - TIPC_AEAD_HINT_LEN,
599 tmp->key = kmemdup(ukey, tipc_aead_key_size(ukey), GFP_KERNEL);
604 memcpy(&tmp->salt, ukey->key + keylen, TIPC_AES_GCM_SALT_SIZE);
1110 * @ukey: the user key
1119 int tipc_crypto_key_init(struct tipc_crypto *c, struct tipc_aead_key *ukey,
1126 rc = tipc_aead_init(&aead, ukey, mode);