Home
last modified time | relevance | path

Searched refs:gk (Results 1 – 4 of 4) sorted by relevance

/linux/net/rxrpc/
H A Drxgk_kdf.c28 static void rxgk_free(struct rxgk_context *gk) in rxgk_free() argument
30 if (gk->tx_Kc) in rxgk_free()
31 crypto_free_shash(gk->tx_Kc); in rxgk_free()
32 if (gk->rx_Kc) in rxgk_free()
33 crypto_free_shash(gk->rx_Kc); in rxgk_free()
34 if (gk->tx_enc) in rxgk_free()
35 crypto_free_aead(gk->tx_enc); in rxgk_free()
36 if (gk->rx_enc) in rxgk_free()
37 crypto_free_aead(gk->rx_enc); in rxgk_free()
38 if (gk->resp_enc) in rxgk_free()
[all …]
H A Drxgk.c89 struct rxgk_context *gk, *dead = NULL; in rxgk_rekey() local
111 gk = conn->rxgk.keys[key_number & mask]; in rxgk_rekey()
112 if (!gk) in rxgk_rekey()
115 test_bit(RXGK_TK_NEEDS_REKEY, &gk->flags)) in rxgk_rekey()
119 refcount_inc(&gk->usage); in rxgk_rekey()
122 return gk; in rxgk_rekey()
138 gk = conn->rxgk.keys[current_key & mask]; in rxgk_rekey()
139 gk = rxgk_generate_transport_key(conn, gk->key, key_number, GFP_NOFS); in rxgk_rekey()
140 if (IS_ERR(gk)) { in rxgk_rekey()
142 return gk; in rxgk_rekey()
[all …]
H A Drxgk_common.h53 void rxgk_put(struct rxgk_context *gk);
/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-cmac.c265 __be64 *gk; in ccp_aes_cmac_setkey() local
306 gk = (__be64 *)ctx->u.aes.k1; in ccp_aes_cmac_setkey()
307 *gk = cpu_to_be64(k1_hi); in ccp_aes_cmac_setkey()
308 gk++; in ccp_aes_cmac_setkey()
309 *gk = cpu_to_be64(k1_lo); in ccp_aes_cmac_setkey()
317 gk = (__be64 *)ctx->u.aes.k2; in ccp_aes_cmac_setkey()
318 *gk = cpu_to_be64(k2_hi); in ccp_aes_cmac_setkey()
319 gk++; in ccp_aes_cmac_setkey()
320 *gk = cpu_to_be64(k2_lo); in ccp_aes_cmac_setkey()