Searched defs:alg (Results 101 - 125 of 143) sorted by relevance

123456

/external/wpa_supplicant_8/hostapd/src/rsn_supp/
H A Dwpa_i.h180 static inline int wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg, argument
186 return sm->ctx->set_key(sm->ctx->ctx, alg, addr, key_idx, set_tx,
/external/wpa_supplicant_8/hostapd/src/tls/
H A Dtlsv1_common.h233 enum crypto_cipher_alg alg; member in struct:tls_cipher_data
/external/wpa_supplicant_8/src/ap/
H A Dwpa_auth_ft.c776 enum wpa_alg alg, const u8 *addr, int idx,
781 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx,
788 enum wpa_alg alg; local
792 alg = wpa_cipher_to_alg(sm->pairwise);
795 wpa_printf(MSG_DEBUG, "FT: Unknown pairwise alg 0x%x - skip "
814 if (wpa_auth_set_key(sm->wpa_auth, 0, alg, sm->addr, 0,
774 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
H A Dwpa_auth.c131 enum wpa_alg alg, const u8 *addr, int idx,
136 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx,
1408 int alg; local
1480 alg = pairwise ? sm->pairwise : wpa_auth->conf.wpa_group;
1485 WPA_PUT_BE16(key->key_length, wpa_cipher_key_len(alg));
2426 enum wpa_alg alg; local
2432 alg = wpa_cipher_to_alg(sm->pairwise);
2436 if (wpa_auth_set_key(sm->wpa_auth, 0, alg, sm->addr, 0,
2887 enum wpa_alg alg = wpa_cipher_to_alg(sm->pairwise); local
2889 if (wpa_auth_set_key(sm->wpa_auth, 0, alg, s
129 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
3411 enum wpa_alg alg; local
[all...]
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_openssl.c514 struct crypto_cipher * crypto_cipher_init(enum crypto_cipher_alg alg, argument
525 switch (alg) {
852 struct crypto_hash * crypto_hash_init(enum crypto_hash_alg alg, const u8 *key, argument
858 switch (alg) {
/external/wpa_supplicant_8/src/drivers/
H A Ddriver_atheros.c477 atheros_set_key(const char *ifname, void *priv, enum wpa_alg alg, argument
486 if (alg == WPA_ALG_NONE)
489 wpa_printf(MSG_DEBUG, "%s: alg=%d addr=%s key_idx=%d",
490 __func__, alg, ether_sprintf(addr), key_idx);
492 switch (alg) {
531 __func__, alg);
559 " key_idx %d alg %d key_len %lu set_tx %d)",
561 alg, (unsigned long) key_len, set_tx);
H A Ddriver_bsd.c334 bsd_set_key(const char *ifname, void *priv, enum wpa_alg alg, argument
343 wpa_printf(MSG_DEBUG, "%s: alg=%d addr=%p key_idx=%d set_tx=%d "
344 "seq_len=%zu key_len=%zu", __func__, alg, addr, key_idx,
347 if (alg == WPA_ALG_NONE) {
357 switch (alg) {
368 wpa_printf(MSG_ERROR, "%s: unknown alg=%d", __func__, alg);
H A Ddriver_wext.c1707 ext->alg = IW_ENCODE_ALG_PMK;
1719 static int wpa_driver_wext_set_key_ext(void *priv, enum wpa_alg alg, argument
1743 if (alg == WPA_ALG_NONE)
1762 switch (alg) {
1764 ext->alg = IW_ENCODE_ALG_NONE;
1767 ext->alg = IW_ENCODE_ALG_WEP;
1770 ext->alg = IW_ENCODE_ALG_TKIP;
1773 ext->alg = IW_ENCODE_ALG_CCMP;
1776 ext->alg = IW_ENCODE_ALG_PMK;
1780 ext->alg
1839 wpa_driver_wext_set_key(const char *ifname, void *priv, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len) argument
[all...]
/external/wpa_supplicant_8/src/rsn_supp/
H A Dtdls.c194 enum wpa_alg alg; local
214 alg = WPA_ALG_CCMP;
229 if (wpa_sm_set_key(sm, alg, peer->addr, -1, 1,
H A Dwpa.c686 enum wpa_alg alg; local
711 alg = wpa_cipher_to_alg(sm->pairwise_cipher);
722 if (wpa_sm_set_key(sm, alg, sm->bssid, 0, 1, key_rsc, rsclen,
726 "driver (alg=%d keylen=%d bssid=" MACSTR ")",
727 alg, keylen, MAC2STR(sm->bssid));
749 enum wpa_alg *alg)
753 *alg = wpa_cipher_to_alg(group_cipher);
754 if (*alg == WPA_ALG_NONE) {
774 enum wpa_alg alg; member in struct:wpa_gtk_data
813 if (wpa_sm_set_key(sm, gd->alg, NUL
745 wpa_supplicant_check_group_cipher(struct wpa_sm *sm, int group_cipher, int keylen, int maxkeylen, int *key_rsc_len, enum wpa_alg *alg) argument
3694 enum wpa_alg alg; local
[all...]
H A Dwpa_i.h180 static inline int wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg, argument
186 return sm->ctx->set_key(sm->ctx->ctx, alg, addr, key_idx, set_tx,
/external/wpa_supplicant_8/src/tls/
H A Dtlsv1_common.h233 enum crypto_cipher_alg alg; member in struct:tls_cipher_data
/external/wpa_supplicant_8/wpa_supplicant/
H A Ddriver_i.h142 enum wpa_alg alg, const u8 *addr,
147 if (alg != WPA_ALG_NONE) {
155 alg, addr, key_idx, set_tx,
141 wpa_drv_set_key(struct wpa_supplicant *wpa_s, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len) argument
H A Dwpas_glue.c486 static int wpa_supplicant_set_key(void *_wpa_s, enum wpa_alg alg, argument
492 if (alg == WPA_ALG_TKIP && key_idx == 0 && key_len == 32) {
498 alg != WPA_ALG_NONE && key_len <= sizeof(wpa_s->last_gtk)) {
503 return wpa_drv_set_key(wpa_s, alg, addr, key_idx, set_tx, seq, seq_len,
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dwpa_auth_ft.c776 enum wpa_alg alg, const u8 *addr, int idx,
781 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx,
788 enum wpa_alg alg; local
792 alg = wpa_cipher_to_alg(sm->pairwise);
795 wpa_printf(MSG_DEBUG, "FT: Unknown pairwise alg 0x%x - skip "
814 if (wpa_auth_set_key(sm->wpa_auth, 0, alg, sm->addr, 0,
774 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_openssl.c514 struct crypto_cipher * crypto_cipher_init(enum crypto_cipher_alg alg, argument
525 switch (alg) {
852 struct crypto_hash * crypto_hash_init(enum crypto_hash_alg alg, const u8 *key, argument
858 switch (alg) {
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Ddriver_atheros.c477 atheros_set_key(const char *ifname, void *priv, enum wpa_alg alg, argument
486 if (alg == WPA_ALG_NONE)
489 wpa_printf(MSG_DEBUG, "%s: alg=%d addr=%s key_idx=%d",
490 __func__, alg, ether_sprintf(addr), key_idx);
492 switch (alg) {
531 __func__, alg);
559 " key_idx %d alg %d key_len %lu set_tx %d)",
561 alg, (unsigned long) key_len, set_tx);
H A Ddriver_bsd.c334 bsd_set_key(const char *ifname, void *priv, enum wpa_alg alg, argument
343 wpa_printf(MSG_DEBUG, "%s: alg=%d addr=%p key_idx=%d set_tx=%d "
344 "seq_len=%zu key_len=%zu", __func__, alg, addr, key_idx,
347 if (alg == WPA_ALG_NONE) {
357 switch (alg) {
368 wpa_printf(MSG_ERROR, "%s: unknown alg=%d", __func__, alg);
H A Ddriver_wext.c1707 ext->alg = IW_ENCODE_ALG_PMK;
1719 static int wpa_driver_wext_set_key_ext(void *priv, enum wpa_alg alg, argument
1743 if (alg == WPA_ALG_NONE)
1762 switch (alg) {
1764 ext->alg = IW_ENCODE_ALG_NONE;
1767 ext->alg = IW_ENCODE_ALG_WEP;
1770 ext->alg = IW_ENCODE_ALG_TKIP;
1773 ext->alg = IW_ENCODE_ALG_CCMP;
1776 ext->alg = IW_ENCODE_ALG_PMK;
1780 ext->alg
1839 wpa_driver_wext_set_key(const char *ifname, void *priv, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/rsn_supp/
H A Dtdls.c194 enum wpa_alg alg; local
214 alg = WPA_ALG_CCMP;
229 if (wpa_sm_set_key(sm, alg, peer->addr, -1, 1,
H A Dwpa.c686 enum wpa_alg alg; local
711 alg = wpa_cipher_to_alg(sm->pairwise_cipher);
722 if (wpa_sm_set_key(sm, alg, sm->bssid, 0, 1, key_rsc, rsclen,
726 "driver (alg=%d keylen=%d bssid=" MACSTR ")",
727 alg, keylen, MAC2STR(sm->bssid));
749 enum wpa_alg *alg)
753 *alg = wpa_cipher_to_alg(group_cipher);
754 if (*alg == WPA_ALG_NONE) {
774 enum wpa_alg alg; member in struct:wpa_gtk_data
813 if (wpa_sm_set_key(sm, gd->alg, NUL
745 wpa_supplicant_check_group_cipher(struct wpa_sm *sm, int group_cipher, int keylen, int maxkeylen, int *key_rsc_len, enum wpa_alg *alg) argument
3694 enum wpa_alg alg; local
[all...]
H A Dwpa_i.h180 static inline int wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg, argument
186 return sm->ctx->set_key(sm->ctx->ctx, alg, addr, key_idx, set_tx,
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Dtlsv1_common.h233 enum crypto_cipher_alg alg; member in struct:tls_cipher_data
/external/openssh/
H A Dsshkey.c932 fingerprint_b64(const char *alg, u_char *dgst_raw, size_t dgst_raw_len) argument
935 size_t plen = strlen(alg) + 1;
941 strlcpy(ret, alg, rlen);
957 fingerprint_hex(const char *alg, u_char *dgst_raw, size_t dgst_raw_len) argument
960 size_t i, rlen = dgst_raw_len * 3 + strlen(alg) + 2;
964 strlcpy(retval, alg, rlen);
1056 fingerprint_randomart(const char *alg, u_char *dgst_raw, size_t dgst_raw_len, argument
1115 r = snprintf(hash, sizeof(hash), "[%s]", alg);
2185 const u_char *data, size_t datalen, const char *alg, u_int compat)
2205 return ssh_rsa_sign(key, sigp, lenp, data, datalen, alg);
2183 sshkey_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, const char *alg, u_int compat) argument
2381 sshkey_certify(struct sshkey *k, struct sshkey *ca, const char *alg) argument
[all...]
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dwpa_auth.c131 enum wpa_alg alg, const u8 *addr, int idx,
136 return wpa_auth->cb->set_key(wpa_auth->cb_ctx, vlan_id, alg, addr, idx,
1408 int alg; local
1480 alg = pairwise ? sm->pairwise : wpa_auth->conf.wpa_group;
1485 WPA_PUT_BE16(key->key_length, wpa_cipher_key_len(alg));
2426 enum wpa_alg alg; local
2432 alg = wpa_cipher_to_alg(sm->pairwise);
2436 if (wpa_auth_set_key(sm->wpa_auth, 0, alg, sm->addr, 0,
2887 enum wpa_alg alg = wpa_cipher_to_alg(sm->pairwise); local
2889 if (wpa_auth_set_key(sm->wpa_auth, 0, alg, s
129 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
3411 enum wpa_alg alg; local
[all...]

Completed in 364 milliseconds

123456