Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 11 of 11) sorted by relevance

/net/wireless/
Dlib80211.c167 struct lib80211_crypto_alg *alg; in lib80211_register_crypto_ops() local
169 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in lib80211_register_crypto_ops()
170 if (alg == NULL) in lib80211_register_crypto_ops()
173 alg->ops = ops; in lib80211_register_crypto_ops()
176 list_add(&alg->list, &lib80211_crypto_algs); in lib80211_register_crypto_ops()
188 struct lib80211_crypto_alg *alg; in lib80211_unregister_crypto_ops() local
192 list_for_each_entry(alg, &lib80211_crypto_algs, list) { in lib80211_unregister_crypto_ops()
193 if (alg->ops == ops) in lib80211_unregister_crypto_ops()
202 list_del(&alg->list); in lib80211_unregister_crypto_ops()
204 kfree(alg); in lib80211_unregister_crypto_ops()
[all …]
Dwext-compat.c696 switch (ext->alg) { in cfg80211_wext_siwencodeext()
/net/mac80211/
Drate.c120 struct rate_control_alg *alg; in ieee80211_rate_control_register() local
126 list_for_each_entry(alg, &rate_ctrl_algs, list) { in ieee80211_rate_control_register()
127 if (!strcmp(alg->ops->name, ops->name)) { in ieee80211_rate_control_register()
135 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in ieee80211_rate_control_register()
136 if (alg == NULL) { in ieee80211_rate_control_register()
140 alg->ops = ops; in ieee80211_rate_control_register()
142 list_add_tail(&alg->list, &rate_ctrl_algs); in ieee80211_rate_control_register()
151 struct rate_control_alg *alg; in ieee80211_rate_control_unregister() local
154 list_for_each_entry(alg, &rate_ctrl_algs, list) { in ieee80211_rate_control_unregister()
155 if (alg->ops == ops) { in ieee80211_rate_control_unregister()
[all …]
Daead_api.c86 aead_key_setup_encrypt(const char *alg, const u8 key[], in aead_key_setup_encrypt() argument
92 tfm = crypto_alloc_aead(alg, 0, CRYPTO_ALG_ASYNC); in aead_key_setup_encrypt()
Daead_api.h10 aead_key_setup_encrypt(const char *alg, const u8 key[],
/net/ceph/crush/
Dcrush.c10 const char *crush_bucket_alg_name(int alg) in crush_bucket_alg_name() argument
12 switch (alg) { in crush_bucket_alg_name()
32 switch (b->alg) { in crush_get_bucket_item_weight()
85 switch (b->alg) { in crush_destroy_bucket()
Dmapper.c384 switch (in->alg) { in crush_bucket_choose()
404 dprintk("unknown bucket %d alg %d\n", in->id, in->alg); in crush_bucket_choose()
710 if (in->alg == CRUSH_BUCKET_UNIFORM && in crush_choose_indep()
869 switch (map->buckets[b]->alg) { in crush_init_workspace()
/net/sunrpc/auth_gss/
Dgss_krb5_mech.c153 int alg; in get_key() local
155 p = simple_get_bytes(p, end, &alg, sizeof(alg)); in get_key()
159 switch (alg) { in get_key()
164 alg = ENCTYPE_DES_CBC_RAW; in get_key()
168 if (!supported_gss_krb5_enctype(alg)) { in get_key()
170 "encryption key algorithm %d\n", alg); in get_key()
/net/sctp/
DKconfig72 bool "Use no hmac alg in SCTP cookie generation"
Dsocket.c8527 char alg[32]; in sctp_listen_start() local
8531 sprintf(alg, "hmac(%s)", sp->sctp_hmac_alg); in sctp_listen_start()
8532 tfm = crypto_alloc_shash(alg, 0, 0); in sctp_listen_start()
/net/ceph/
Dosdmap.c401 switch (c->buckets[b]->alg) { in crush_finalize()
461 u32 alg; in crush_decode() local
464 ceph_decode_32_safe(p, end, alg, bad); in crush_decode()
465 if (alg == 0) { in crush_decode()
472 switch (alg) { in crush_decode()
499 b->alg = ceph_decode_8(p); in crush_decode()
515 switch (b->alg) { in crush_decode()