Searched refs:ukey (Results 1 – 4 of 4) sorted by relevance
/net/tipc/ |
D | crypto.h | 168 int tipc_crypto_key_init(struct tipc_crypto *c, struct tipc_aead_key *ukey, 176 int tipc_aead_key_validate(struct tipc_aead_key *ukey, struct genl_info *info);
|
D | crypto.c | 259 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey, 334 int tipc_aead_key_validate(struct tipc_aead_key *ukey, struct genl_info *info) in tipc_aead_key_validate() argument 339 if (unlikely(!crypto_has_alg(ukey->alg_name, 0, 0))) { in tipc_aead_key_validate() 345 if (strcmp(ukey->alg_name, "gcm(aes)")) { in tipc_aead_key_validate() 351 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE; in tipc_aead_key_validate() 514 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey, in tipc_aead_init() argument 532 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE; in tipc_aead_init() 543 tfm = crypto_alloc_aead(ukey->alg_name, 0, 0); in tipc_aead_init() 557 err |= crypto_aead_setkey(tfm, ukey->key, keylen); in tipc_aead_init() 592 bin2hex(tmp->hint, ukey->key + keylen - TIPC_AEAD_HINT_LEN, in tipc_aead_init() [all …]
|
D | node.c | 2967 struct tipc_aead_key *ukey; in __tipc_nl_node_set_key() local 2992 rc = tipc_nl_retrieve_key(attrs, &ukey); in __tipc_nl_node_set_key() 2998 rc = tipc_aead_key_validate(ukey, info); in __tipc_nl_node_set_key() 3023 rc = tipc_crypto_key_init(c, ukey, mode, master_key); in __tipc_nl_node_set_key()
|
/net/ceph/ |
D | ceph_common.c | 381 struct key *ukey; in get_secret() local 386 ukey = request_key(&key_type_ceph, name, NULL); in get_secret() 387 if (IS_ERR(ukey)) { in get_secret() 390 key_err = PTR_ERR(ukey); in get_secret() 412 ckey = ukey->payload.data[0]; in get_secret() 419 key_put(ukey); in get_secret()
|