Home
last modified time | relevance | path

Searched refs:pubkey (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wireguard/
H A Dpeerlookup.c11 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in pubkey_bucket()
17 const u64 hash = siphash(pubkey, NOISE_PUBLIC_KEY_LEN, &table->key); in pubkey_bucket()
55 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in wg_pubkey_hashtable_lookup()
60 hlist_for_each_entry_rcu_bh(iter_peer, pubkey_bucket(table, pubkey), in wg_pubkey_hashtable_lookup()
62 if (!memcmp(pubkey, iter_peer->handshake.remote_static, in wg_pubkey_hashtable_lookup()
10 pubkey_bucket(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) pubkey_bucket() argument
54 wg_pubkey_hashtable_lookup(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) wg_pubkey_hashtable_lookup() argument
H A Dpeerlookup.h31 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]);
H A Dcookie.c33 const u8 pubkey[NOISE_PUBLIC_KEY_LEN], in precompute_key()
40 blake2s_update(&blake, pubkey, NOISE_PUBLIC_KEY_LEN); in precompute_key()
32 precompute_key(u8 key[NOISE_SYMMETRIC_KEY_LEN], const u8 pubkey[NOISE_PUBLIC_KEY_LEN], const u8 label[COOKIE_KEY_LABEL_LEN]) precompute_key() argument
/kernel/linux/linux-6.6/drivers/net/wireguard/
H A Dpeerlookup.c11 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in pubkey_bucket()
17 const u64 hash = siphash(pubkey, NOISE_PUBLIC_KEY_LEN, &table->key); in pubkey_bucket()
55 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) in wg_pubkey_hashtable_lookup()
60 hlist_for_each_entry_rcu_bh(iter_peer, pubkey_bucket(table, pubkey), in wg_pubkey_hashtable_lookup()
62 if (!memcmp(pubkey, iter_peer->handshake.remote_static, in wg_pubkey_hashtable_lookup()
10 pubkey_bucket(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) pubkey_bucket() argument
54 wg_pubkey_hashtable_lookup(struct pubkey_hashtable *table, const u8 pubkey[NOISE_PUBLIC_KEY_LEN]) wg_pubkey_hashtable_lookup() argument
H A Dpeerlookup.h31 const u8 pubkey[NOISE_PUBLIC_KEY_LEN]);
H A Dcookie.c33 const u8 pubkey[NOISE_PUBLIC_KEY_LEN], in precompute_key()
40 blake2s_update(&blake, pubkey, NOISE_PUBLIC_KEY_LEN); in precompute_key()
32 precompute_key(u8 key[NOISE_SYMMETRIC_KEY_LEN], const u8 pubkey[NOISE_PUBLIC_KEY_LEN], const u8 label[COOKIE_KEY_LABEL_LEN]) precompute_key() argument
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c43 char *pubkey; member
734 if (unlikely(!ctx->rsa.pubkey)) in hpre_rsa_enc()
832 ctx->rsa.pubkey = dma_alloc_coherent(HPRE_DEV(ctx), vlen << 1, in hpre_rsa_set_n()
835 if (!ctx->rsa.pubkey) in hpre_rsa_set_n()
844 ctx->rsa.pubkey, in hpre_rsa_set_n()
846 ctx->rsa.pubkey = NULL; in hpre_rsa_set_n()
851 memcpy(ctx->rsa.pubkey + vlen, ptr, vlen); in hpre_rsa_set_n()
867 memcpy(ctx->rsa.pubkey + ctx->key_sz - vlen, ptr, vlen); in hpre_rsa_set_e()
968 if (ctx->rsa.pubkey) { in hpre_rsa_clear_ctx()
970 ctx->rsa.pubkey, ct in hpre_rsa_clear_ctx()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/
H A Datmel-i2c.c105 struct scatterlist *pubkey) in atmel_i2c_init_ecdh_cmd()
121 copied = sg_copy_to_buffer(pubkey, in atmel_i2c_init_ecdh_cmd()
122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
104 atmel_i2c_init_ecdh_cmd(struct atmel_i2c_cmd *cmd, struct scatterlist *pubkey) atmel_i2c_init_ecdh_cmd() argument
H A Datmel-i2c.h183 struct scatterlist *pubkey);
/kernel/linux/linux-6.6/drivers/crypto/
H A Datmel-i2c.c105 struct scatterlist *pubkey) in atmel_i2c_init_ecdh_cmd()
121 copied = sg_copy_to_buffer(pubkey, in atmel_i2c_init_ecdh_cmd()
122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
104 atmel_i2c_init_ecdh_cmd(struct atmel_i2c_cmd *cmd, struct scatterlist *pubkey) atmel_i2c_init_ecdh_cmd() argument
H A Datmel-i2c.h184 struct scatterlist *pubkey);
/kernel/linux/linux-5.10/drivers/firmware/
H A Dturris-mox-rwtm.c72 u8 pubkey[135]; member
146 MOX_ATTR_RO(pubkey, "%s\n", pubkey);
254 sprintf(rwtm->pubkey, in mox_get_board_info()
/kernel/linux/linux-6.6/drivers/firmware/
H A Dturris-mox-rwtm.c72 u8 pubkey[135]; member
146 MOX_ATTR_RO(pubkey, "%s\n", pubkey);
254 sprintf(rwtm->pubkey, in mox_get_board_info()
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c64 char *pubkey; member
811 if (unlikely(!ctx->rsa.pubkey)) in hpre_rsa_enc()
909 ctx->rsa.pubkey = dma_alloc_coherent(ctx->dev, vlen << 1, in hpre_rsa_set_n()
912 if (!ctx->rsa.pubkey) in hpre_rsa_set_n()
921 ctx->rsa.pubkey, in hpre_rsa_set_n()
923 ctx->rsa.pubkey = NULL; in hpre_rsa_set_n()
928 memcpy(ctx->rsa.pubkey + vlen, ptr, vlen); in hpre_rsa_set_n()
944 memcpy(ctx->rsa.pubkey + ctx->key_sz - vlen, ptr, vlen); in hpre_rsa_set_e()
1045 if (ctx->rsa.pubkey) { in hpre_rsa_clear_ctx()
1047 ctx->rsa.pubkey, ct in hpre_rsa_clear_ctx()
[all...]

Completed in 10 milliseconds