plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
fips_prf_wolfssl
.c
platform/external/wpa_supplicant_8/src/crypto/fips_prf_wolfssl.c
1,794
utf_8
029c8f25c7c7f617b58825c670538956
/* * FIPS 186-2 PRF for libcrypto * See README for more details. */ #include "includes.h" #include <wolfssl/options.h> #include <wolfssl/wolfcrypt/sha.h> #include "common.h" #include "crypto.h" static void sha1_transform(u32 *state, const u8 data[64]) { wc_Sha sha; os_memset(&sha, 0, sizeof(sha)); sha.digest[0] =...
google
android
crypto_openssl
.c
platform/external/wpa_supplicant_8/src/crypto/crypto_openssl.c
89,600
utf_8
6dee42b9c92db139fd75d5a60071b6ce
/* * Wrapper functions for OpenSSL libcrypto * See README for more details. */ #include "includes.h" #include <openssl/opensslv.h> #include <openssl/err.h> #include <openssl/des.h> #include <openssl/aes.h> #include <openssl/bn.h> #include <openssl/evp.h> #include <openssl/dh.h> #include <openssl/hmac.h> #include <op...
google
android
dh_group5
.c
platform/external/wpa_supplicant_8/src/crypto/dh_group5.c
806
utf_8
ebceb9a5386d461bcc31171b77854e60
/* * Diffie-Hellman group 5 operations * See README for more details. */ #include "includes.h" #include "common.h" #include "dh_groups.h" #include "dh_group5.h" void * dh5_init(struct wpabuf **priv, struct wpabuf **publ) { wpabuf_free(*publ); *publ = dh_init(dh_groups_get(5), priv); if (*publ == NULL) return NU...
google
android
aes-gcm
.c
platform/external/wpa_supplicant_8/src/crypto/aes-gcm.c
6,622
utf_8
45300fd391d78e7b0030d4a7c92a0b6e
/* * Galois/Counter Mode (GCM) and GMAC with AES * * See README for more details. */ #include "includes.h" #include "common.h" #include "aes.h" #include "aes_wrap.h" static void inc32(u8 *block) { u32 val; val = WPA_GET_BE32(block + AES_BLOCK_SIZE - 4); val++; WPA_PUT_BE32(block + AES_BLOCK_SIZE - 4, val); } st...
google
android
sha256-tlsprf
.c
platform/external/wpa_supplicant_8/src/crypto/sha256-tlsprf.c
1,850
utf_8
45e0c9008186369b8fd51eed84d384de
/* * TLS PRF P_SHA256 * Returns: 0 on success, -1 on failure. * * This function is used to derive new, cryptographically separate keys from a * given key in TLS. This PRF is defined in RFC 2246, Chapter 5. */ int tls_prf_sha256(const u8 *secret, size_t secret_len, const char *label, const u8 *seed, size_t se...
google
android
sha512-internal
.c
platform/external/wpa_supplicant_8/src/crypto/sha512-internal.c
7,893
ibm852
2bc6955c48b0fe38e66ec0df2789a793
/* * SHA-512 hash implementation and interface functions * Returns: 0 on success, -1 of failure */ int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) { struct sha512_state ctx; size_t i; sha512_init(&ctx); for (i = 0; i < num_elem; i++) if (sha512_process(&ctx, addr[i], len[i]...
google
android
tls_openssl
.c
platform/external/wpa_supplicant_8/src/crypto/tls_openssl.c
153,753
utf_8
5626b8288e1a157648ec20d27639cb95
/* * SSL/TLS interface functions for OpenSSL * See README for more details. */ #include "includes.h" #ifdef CONFIG_TESTING_OPTIONS #include <fcntl.h> #endif /* CONFIG_TESTING_OPTIONS */ #ifndef CONFIG_SMARTCARD #ifndef OPENSSL_NO_ENGINE #ifndef ANDROID #define OPENSSL_NO_ENGINE #endif #endif #endif #include <openssl...
google
android
crypto_none
.c
platform/external/wpa_supplicant_8/src/crypto/crypto_none.c
492
utf_8
0c9d2d05a9ca170729c5a9c9def24003
/* * WPA Supplicant / Empty template functions for crypto wrapper * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto.h" int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) { return 0; } int des_encrypt(const u8 *clear, const u8 *key, u8 *cypher) { ...
google
android
crypto_libtomcrypt
.c
platform/external/wpa_supplicant_8/src/crypto/crypto_libtomcrypt.c
15,464
utf_8
fadd399c3cb3c8b83967dfdb0adc8fcc
/* * WPA Supplicant / Crypto wrapper for LibTomCrypt (for internal TLSv1) * See README for more details. */ #include "includes.h" #include <tomcrypt.h> #include "common.h" #include "crypto.h" #ifndef mp_init_multi #define mp_init_multi ltc_init_multi #define mp_clear_multi ltc_deinit_mul...
google
android
sha512-prf
.c
platform/external/wpa_supplicant_8/src/crypto/sha512-prf.c
2,917
utf_8
fdc877293c6c94a038e534e928a5c8e9
/* * SHA512-based KDF (IEEE 802.11ac) * Returns: 0 on success, -1 on failure * * This function is used to derive new, cryptographically separate keys from a * given key. */ int sha512_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) { return ...
google
android
sha256
.c
platform/external/wpa_supplicant_8/src/crypto/sha256.c
2,703
utf_8
98d908dbf336661189a0807a4ddbb3e0
/* * SHA-256 hash implementation and interface functions * Returns: 0 on success, -1 on failure */ int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) { unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */ unsigned char tk[32]; ...
google
android
sha512-kdf
.c
platform/external/wpa_supplicant_8/src/crypto/sha512-kdf.c
2,135
utf_8
39f68bd3bc3f3656ecf0325918bc3b40
/* * HMAC-SHA512 KDF (RFC 5295) and HKDF-Expand(SHA512) (RFC 5869) * Returns: 0 on success, -1 on failure. * * This function is used to derive new, cryptographically separate keys from a * given key in ERP. This KDF is defined in RFC 5295, Chapter 3.1.2. When used * with label = NULL and seed = info, this matches...
google
android
sha384-prf
.c
platform/external/wpa_supplicant_8/src/crypto/sha384-prf.c
2,917
utf_8
634bcf7a18e43687682d6ed6a1b3ff53
/* * SHA384-based KDF (IEEE 802.11ac) * Returns: 0 on success, -1 on failure * * This function is used to derive new, cryptographically separate keys from a * given key. */ int sha384_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) { return ...
google
android
aes-wrap
.c
platform/external/wpa_supplicant_8/src/crypto/aes-wrap.c
1,655
utf_8
e05ffdc86dfee2222f1c70552429280b
/* * AES Key Wrap Algorithm (RFC3394) * * Returns: 0 on success, -1 on failure */ int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) { u8 *a, *r, b[AES_BLOCK_SIZE]; int i, j; void *ctx; unsigned int t; a = cipher; r = cipher + 8; /* 1) Initialize variables. */ os_memset(a, 0xa6,...
google
android
sha1-internal
.c
platform/external/wpa_supplicant_8/src/crypto/sha1-internal.c
9,144
utf_8
7f85528f5cada69c9a7dc0c9ee388402
/* * SHA1 hash implementation and interface functions * See README for more details. */ #include "includes.h" #include "common.h" #include "sha1.h" #include "sha1_i.h" #include "md5.h" #include "crypto.h" typedef struct SHA1Context SHA1_CTX; void SHA1Transform(u32 state[5], const unsigned char buffer[64]); #ifdef CO...
google
android
md5-internal
.c
platform/external/wpa_supplicant_8/src/crypto/md5-internal.c
8,999
utf_8
a868e5f553d03335902df17efefc9991
/* * MD5 hash implementation and interface functions * See README for more details. */ #include "includes.h" #include "common.h" #include "md5.h" #include "md5_i.h" #include "crypto.h" static void MD5Transform(u32 buf[4], u32 const in[16]); typedef struct MD5Context MD5_CTX; /** * md5_vector - MD5 hash for data vec...
google
android
crypto_module_tests
.c
platform/external/wpa_supplicant_8/src/crypto/crypto_module_tests.c
67,719
utf_8
e43a21bbe6dd219a21abb0fb814dffb1
/* * crypto module tests * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/module_tests.h" #include "crypto/aes_siv.h" #include "crypto/aes_wrap.h" #include "crypto/aes.h" #include "crypto/ms_funcs.h" #include "crypto/crypto.h" #include "crypto/sha1.h" #include "...
google
android
crypto_internal-rsa
.c
platform/external/wpa_supplicant_8/src/crypto/crypto_internal-rsa.c
2,876
utf_8
56b1486f157851eb97b8b21c77641a23
/* * Crypto wrapper for internal crypto implementation - RSA parts * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto.h" #include "tls/rsa.h" #include "tls/pkcs1.h" #include "tls/pkcs8.h" /* Stub structures; these are just typecast to struct crypto_rsa_key */ struct crypto_p...
google
android
sha1-prf
.c
platform/external/wpa_supplicant_8/src/crypto/sha1-prf.c
1,620
utf_8
075752277e2918a366857c9b27191bfd
/* * SHA1-based PRF * Returns: 0 on success, -1 of failure * * This function is used to derive new, cryptographically separate keys from a * given key (e.g., PMK in IEEE 802.11i). */ int sha1_prf(const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) { u...
google
android
tls_internal
.c
platform/external/wpa_supplicant_8/src/crypto/tls_internal.c
19,168
utf_8
bb459b66c26a4ced32822f8921fc0c44
/* * TLS interface functions and an internal TLS implementation * See README for more details. * * This file interface functions for hostapd/wpa_supplicant to use the * integrated TLSv1 implementation. */ #include "includes.h" #include "common.h" #include "tls.h" #include "tls/tlsv1_client.h" #include "tls/tlsv1_...
google
android
tls_wolfssl
.c
platform/external/wpa_supplicant_8/src/crypto/tls_wolfssl.c
56,179
utf_8
45a81c662f9325bff197359b7ec2d087
/* * SSL/TLS interface functions for wolfSSL TLS case * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "tls.h" /* wolfSSL includes */ #include <wolfssl/options.h> #include <wolfssl/ssl.h> #include <wolfssl/err...
google
android
sha1-tprf
.c
platform/external/wpa_supplicant_8/src/crypto/sha1-tprf.c
1,788
utf_8
9fbe2d8a9b615b4c59e6a33376e9264c
/* * SHA1 T-PRF for EAP-FAST * Returns: 0 on success, -1 of failure * * This function is used to derive new, cryptographically separate keys from a * given key for EAP-FAST. T-PRF is defined in RFC 4851, Section 5.5. */ int sha1_t_prf(const u8 *key, size_t key_len, const char *label, const u8 *seed, size_...
google
android
ms_funcs
.c
platform/external/wpa_supplicant_8/src/crypto/ms_funcs.c
16,545
utf_8
5797700164a632d259d152661e74f733
/* * WPA Supplicant / shared MSCHAPV2 helper functions / RFC 2433 / RFC 2759 * Returns: 0 on success, -1 on failure */ static int utf8_to_ucs2(const u8 *utf8_string, size_t utf8_string_len, u8 *ucs2_buffer, size_t ucs2_buffer_size, size_t *ucs2_string_size) { size_t i...
google
android
sha512
.c
platform/external/wpa_supplicant_8/src/crypto/sha512.c
2,691
utf_8
fa026e878ba357b69f5b11875a30178a
/* * SHA-512 hash implementation and interface functions * Returns: 0 on success, -1 on failure */ int hmac_sha512_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) { unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */ unsigned char tk[64]; ...
google
android
milenage
.c
platform/external/wpa_supplicant_8/src/crypto/milenage.c
9,723
utf_8
6aa0181364d8e059f4b1c03b55f601af
/* * 3GPP AKA - Milenage algorithm (3GPP TS 35.205, .206, .207, .208) * See README for more details. * * This file implements an example authentication algorithm defined for 3GPP * AKA. This can be used to implement a simple HLR/AuC into hlr_auc_gw to allow * EAP-AKA to be tested properly with real USIM cards. *...
google
android
aes-internal
.c
platform/external/wpa_supplicant_8/src/crypto/aes-internal.c
42,221
utf_8
03aadfb2563c8b5a2991f501732667df
/* * AES (Rijndael) cipher * * Modifications to public domain implementation: * - cleanup * - use C pre-processor to make it easier to change S table access * - added option (AES_SMALL_TABLES) for reducing code size by about 8 kB at * cost of reduced throughput (quite small difference on Pentium 4, * 10-25%...
google
android
sha1-pbkdf2
.c
platform/external/wpa_supplicant_8/src/crypto/sha1-pbkdf2.c
2,505
utf_8
61fe4761a4a1c36470687b8564d52187
/* * SHA1-based key derivation function (PBKDF2) for IEEE 802.11i * See README for more details. */ #include "includes.h" #include "common.h" #include "sha1.h" static int pbkdf2_sha1_f(const char *passphrase, const u8 *ssid, size_t ssid_len, int iterations, unsigned int count, u8 *digest) { unsigned char tm...
google
android
sha384-internal
.c
platform/external/wpa_supplicant_8/src/crypto/sha384-internal.c
2,223
ibm852
23a7ff4dfbdbe85d91901ca8f2446624
/* * SHA-384 hash implementation and interface functions * Returns: 0 on success, -1 of failure */ int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) { struct sha384_state ctx; size_t i; sha384_init(&ctx); for (i = 0; i < num_elem; i++) if (sha384_process(&ctx, addr[i], len[i]...
google
android
sha256-kdf
.c
platform/external/wpa_supplicant_8/src/crypto/sha256-kdf.c
2,135
utf_8
5ca08feca521ee7e887ce2dd81f15310
/* * HMAC-SHA256 KDF (RFC 5295) and HKDF-Expand(SHA256) (RFC 5869) * Returns: 0 on success, -1 on failure. * * This function is used to derive new, cryptographically separate keys from a * given key in ERP. This KDF is defined in RFC 5295, Chapter 3.1.2. When used * with label = NULL and seed = info, this matches...
google
android
sha1-tlsprf
.c
platform/external/wpa_supplicant_8/src/crypto/sha1-tlsprf.c
2,751
utf_8
2fb74b15825aa419064faca0b9f5242c
/* * TLS PRF (SHA1 + MD5) * Returns: 0 on success, -1 on failure. * * This function is used to derive new, cryptographically separate keys from a * given key in TLS. This PRF is defined in RFC 2246, Chapter 5. */ int tls_prf_sha1_md5(const u8 *secret, size_t secret_len, const char *label, const u8 *seed, s...
google
android
crypto_nettle
.c
platform/external/wpa_supplicant_8/src/crypto/crypto_nettle.c
9,959
utf_8
4592d1a32357b923e4f33b17bc0b7668
/* * Wrapper functions for libnettle and libgmp * See README for more details. */ #include "includes.h" #include <nettle/nettle-meta.h> #include <nettle/des.h> #undef des_encrypt #include <nettle/hmac.h> #include <nettle/aes.h> #undef aes_encrypt #undef aes_decrypt #include <nettle/arcfour.h> #include <nettle/bignum...
google
android
sha384-tlsprf
.c
platform/external/wpa_supplicant_8/src/crypto/sha384-tlsprf.c
1,855
utf_8
d717254e99a7c50ba3a424e218993e73
/* * TLS PRF P_SHA384 * Returns: 0 on success, -1 on failure. * * This function is used to derive new, cryptographically separate keys from a * given key in TLS. This PRF is defined in RFC 5246, Chapter 5. */ int tls_prf_sha384(const u8 *secret, size_t secret_len, const char *label, const u8 *seed, size_t se...
google
android
crypto_internal-cipher
.c
platform/external/wpa_supplicant_8/src/crypto/crypto_internal-cipher.c
5,199
utf_8
6f505f0af821dbb545250f7a6393a5ca
/* * Crypto wrapper for internal crypto implementation - Cipher wrappers * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto.h" #include "aes.h" #include "des_i.h" struct crypto_cipher { enum crypto_cipher_alg alg; union { struct { size_t used_bytes; u8 key[16]; ...
google
android
tls_none
.c
platform/external/wpa_supplicant_8/src/crypto/tls_none.c
4,016
utf_8
a35b3f2791aeb53bcb9758ab1ecb53c6
/* * SSL/TLS interface functions for no TLS case * See README for more details. */ #include "includes.h" #include "common.h" #include "tls.h" void * tls_init(const struct tls_config *conf) { return (void *) 1; } void tls_deinit(void *ssl_ctx) { } int tls_get_errors(void *tls_ctx) { return 0; } struct tls_connectio...
google
android
rc4
.c
platform/external/wpa_supplicant_8/src/crypto/rc4.c
1,009
utf_8
31283f4987c18d6ec7376b25421b2137
/* * RC4 stream cipher * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto.h" #define S_SWAP(a,b) do { u8 t = S[a]; S[a] = S[b]; S[b] = t; } while(0) int rc4_skip(const u8 *key, size_t keylen, size_t skip, u8 *data, size_t data_len) { u32 i, j, k; u8 S[256], *pos; si...
google
android
md4-internal
.c
platform/external/wpa_supplicant_8/src/crypto/md4-internal.c
8,097
utf_8
03f15b65038993b40429dcc5a2359613
/* * MD4 hash implementation * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto.h" #define MD4_BLOCK_LENGTH 64 #define MD4_DIGEST_LENGTH 16 typedef struct MD4Context { u32 state[4]; /* state */ u64 count; /* number of bits, mod 2^64 */ u8 buffer[MD4_BLOCK_LENGTH]; /...
google
android
sha384
.c
platform/external/wpa_supplicant_8/src/crypto/sha384.c
2,691
utf_8
09367bc952aef77c2d978f974244586d
/* * SHA-384 hash implementation and interface functions * Returns: 0 on success, -1 on failure */ int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) { unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */ unsigned char tk[48]; ...
google
android
tls_gnutls
.c
platform/external/wpa_supplicant_8/src/crypto/tls_gnutls.c
46,071
utf_8
3b333dc7fad93af622597c73ac3ac62a
/* * SSL/TLS interface functions for GnuTLS * See README for more details. */ #include "includes.h" #include <gnutls/gnutls.h> #include <gnutls/x509.h> #ifdef PKCS12_FUNCS #include <gnutls/pkcs12.h> #endif /* PKCS12_FUNCS */ #if GNUTLS_VERSION_NUMBER >= 0x030103 #include <gnutls/ocsp.h> #endif /* 3.1.3 */ #include "...
google
android
fips_prf_openssl
.c
platform/external/wpa_supplicant_8/src/crypto/fips_prf_openssl.c
2,100
utf_8
2ca326f73fc2fcb914a578495f22ea8a
/* * FIPS 186-2 PRF for libcrypto * See README for more details. */ #include "includes.h" #include <openssl/sha.h> #include "common.h" #include "crypto.h" static void sha1_transform(u32 *state, const u8 data[64]) { SHA_CTX context; os_memset(&context, 0, sizeof(context)); #if defined(OPENSSL_IS_BORINGSSL) && !defi...
google
android
fips_prf_internal
.c
platform/external/wpa_supplicant_8/src/crypto/fips_prf_internal.c
1,405
utf_8
9d6c41e5fa7cf5f0003b5dabdc1be8b9
/* * FIPS 186-2 PRF for internal crypto implementation * See README for more details. */ #include "includes.h" #include "common.h" #include "sha1.h" #include "sha1_i.h" #include "crypto.h" int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen) { u8 xkey[64]; u32 t[5], _t[5]; int i, j, m, k; u8 *x...
google
android
ieee802_11_common
.c
platform/external/wpa_supplicant_8/src/common/ieee802_11_common.c
75,914
utf_8
1fd28a7c1b91b060f8d9cef1966d8b26
/* * IEEE 802.11 Common routines * See README for more details. */ #include "includes.h" #include "common.h" #include "defs.h" #include "wpa_common.h" #include "drivers/driver.h" #include "qca-vendor.h" #include "ieee802_11_defs.h" #include "ieee802_11_common.h" static int ieee802_11_parse_vendor_specific(const u8 *...
google
android
sae_pk
.c
platform/external/wpa_supplicant_8/src/common/sae_pk.c
23,887
utf_8
c09d80d5e2addae01c53f8ae02eb7050
/* * SAE-PK * See README for more details. */ #include "utils/includes.h" #include <stdint.h> #include "utils/common.h" #include "utils/base64.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_11_common.h" #include "crypto/crypto.h" #include "crypto/aes.h" #include "crypto/aes_siv.h" #include "sae.h" /...
google
android
cli
.c
platform/external/wpa_supplicant_8/src/common/cli.c
5,871
utf_8
cca259317514bf6fd8117857805fc42e
/* * Common hostapd/wpa_supplicant command line interface functions "\n" "Redistribution and use in source and binary forms, with or without\n" "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n" "THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n" "(INCLUDING NEGLIGENCE OR OTH...
google
android
wpa_common
.c
platform/external/wpa_supplicant_8/src/common/wpa_common.c
102,133
utf_8
eef6b68910639cf6b8c11ba9d8bbc193
/* * WPA/RSN - Shared functions for supplicant and authenticator * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/md5.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "crypto/sha384.h" #include "crypto/sha512.h" #include "crypto/aes_wrap.h" #include "crypto/...
google
android
dpp_crypto
.c
platform/external/wpa_supplicant_8/src/common/dpp_crypto.c
69,629
utf_8
ea34913ca17b4cbef5e2fe2028435da1
/* * DPP crypto functionality * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/base64.h" #include "utils/json.h" #include "common/ieee802_11_defs.h" #include "crypto/crypto.h" #include "crypto/random.h" #include "crypto/sha384.h" #include "crypto/sha512.h" #incl...
google
android
wpa_helpers
.c
platform/external/wpa_supplicant_8/src/common/wpa_helpers.c
6,105
utf_8
52a199b87696bbf4dc9f0ef4491162a7
/* * wpa_supplicant ctrl_iface helpers * See README for more details. */ #include "includes.h" #include <time.h> #include "common.h" #include "wpa_ctrl.h" #include "wpa_helpers.h" char *wpas_ctrl_path = "/var/run/wpa_supplicant/"; static int default_timeout = 60; static struct wpa_ctrl * wpa_open_ctrl(const char *if...
google
android
sae
.c
platform/external/wpa_supplicant_8/src/common/sae.c
67,962
utf_8
989dddf694fc3538cab082e89b83b554
/* * Simultaneous authentication of equals * See README for more details. */ #include "includes.h" #include "common.h" #include "utils/const_time.h" #include "crypto/crypto.h" #include "crypto/sha256.h" #include "crypto/sha384.h" #include "crypto/sha512.h" #include "crypto/random.h" #include "crypto/dh_groups.h" #in...
google
android
gas
.c
platform/external/wpa_supplicant_8/src/common/gas.c
6,279
utf_8
16ae42e7a47c2836a7016579eafa4ad1
/* * Generic advertisement service (GAS) (IEEE 802.11u) * See README for more details. */ #include "includes.h" #include "common.h" #include "ieee802_11_defs.h" #include "gas.h" static struct wpabuf * gas_build_req(u8 action, u8 dialog_token, size_t size) { struct wpabuf *buf; buf = wpabuf_alloc(100 + size); if (...
google
android
hw_features_common
.c
platform/external/wpa_supplicant_8/src/common/hw_features_common.c
20,810
utf_8
9494fd0baf824e69ca3e23aae0205b80
/* * Common hostapd/wpa_supplicant HW features * See README for more details. */ #include "includes.h" #include "common.h" #include "defs.h" #include "ieee802_11_defs.h" #include "ieee802_11_common.h" #include "hw_features_common.h" struct hostapd_channel_data * hw_get_channel_chan(struct hostapd_hw_modes *mode, ...
google
android
dpp_pkex
.c
platform/external/wpa_supplicant_8/src/common/dpp_pkex.c
38,938
utf_8
a0c8fc963c32e0a7005df6b854f97aa7
/* * DPP PKEX functionality * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/wpa_ctrl.h" #include "crypto/aes.h" #include "crypto/aes_siv.h" #include "crypto/crypto.h" #include "dpp.h" #include "dpp_i.h" #ifdef CONFIG_TESTING_OPTIONS u8 dpp_pkex_own_mac_overrid...
google
android
dpp
.c
platform/external/wpa_supplicant_8/src/common/dpp.c
121,634
utf_8
07266ddfbc09fe3ede2fe316e1c4a11e
/* * DPP functionality shared between hostapd and wpa_supplicant * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/base64.h" #include "utils/json.h" #include "common/ieee802_11_common.h" #include "common/wpa_ctrl.h" #include "common/gas.h" #include "eap_common/ea...
google
android
gas_server
.c
platform/external/wpa_supplicant_8/src/common/gas_server.c
16,888
utf_8
90eb4849c211295b05c4056ab1035002
/* * Generic advertisement service (GAS) server * See README for more details. */ #include "includes.h" #include "utils/common.h" #include "utils/list.h" #include "utils/eloop.h" #include "ieee802_11_defs.h" #include "gas.h" #include "gas_server.h" #define MAX_ADV_PROTO_ID_LEN 10 #define GAS_QUERY_TIMEOUT 60 struct ...
google
android
dragonfly
.c
platform/external/wpa_supplicant_8/src/common/dragonfly.c
6,810
utf_8
a9f2de73888403c1911f4e952e97f8b2
/* * Shared Dragonfly functionality * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/const_time.h" #include "crypto/crypto.h" #include "dragonfly.h" int dragonfly_suitable_group(int group, int ecc_only) { /* Enforce REVmd rules on which SAE groups are suitable ...
google
android
dpp_tcp
.c
platform/external/wpa_supplicant_8/src/common/dpp_tcp.c
59,188
utf_8
9a3dc7f5185e1956eba362452c65543f
/* * DPP over TCP * See README for more details. */ #include "utils/includes.h" #include <fcntl.h> #include "utils/common.h" #include "utils/ip_addr.h" #include "utils/eloop.h" #include "common/ieee802_11_common.h" #include "common/wpa_ctrl.h" #include "dpp.h" #include "dpp_i.h" #ifdef CONFIG_DPP2 struct dpp_connect...
google
android
dpp_auth
.c
platform/external/wpa_supplicant_8/src/common/dpp_auth.c
60,267
utf_8
0ebf0b8d4a56b93fbe0e9a6c57224018
/* * DPP authentication exchange * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "common/ieee802_11_common.h" #include "common/wpa_ctrl.h" #include "crypto/aes.h" #include "crypto/aes_siv.h" #include "crypto/random.h" #include "dpp.h" #include "dpp_i.h" #ifdef CONFIG_...
google
android
ocv
.c
platform/external/wpa_supplicant_8/src/common/ocv.c
4,805
utf_8
cbbbcb20ed7120053a89f518dfd18079
/* * Operating Channel Validation (OCV) * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "drivers/driver.h" #include "common/ieee802_11_common.h" #include "ocv.h" /** * Caller of OCV functionality may use various debug output functions, so store * the error here and ...
google
android
dpp_backup
.c
platform/external/wpa_supplicant_8/src/common/dpp_backup.c
33,232
utf_8
5f191eb71603ab8845bbe36581553217
/* * DPP configurator backup * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "crypto/aes.h" #include "crypto/aes_siv.h" #include "tls/asn1.h" #include "dpp.h" #include "dpp_i.h" #ifdef CONFIG_DPP2 void dpp_free_asymmetric_key(struct dpp_asymmetric_key *key) { while (...
google
android
ctrl_iface_common
.c
platform/external/wpa_supplicant_8/src/common/ctrl_iface_common.c
4,620
utf_8
e9e80a33d5668d4203cd6cf22da6f860
/* * Common hostapd/wpa_supplicant ctrl iface code. * See README for more details. */ #include "utils/includes.h" #include <netdb.h> #include <sys/un.h> #include "utils/common.h" #include "ctrl_iface_common.h" static int sockaddr_compare(struct sockaddr_storage *a, socklen_t a_len, struct sockaddr_storage *b,...
google
android
common_module_tests
.c
platform/external/wpa_supplicant_8/src/common/common_module_tests.c
24,074
utf_8
02de914f926de35590a762f1def0a5fe
/* * common module tests * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/module_tests.h" #include "crypto/crypto.h" #include "crypto/dh_groups.h" #include "ieee802_11_common.h" #include "ieee802_11_defs.h" #include "gas.h" #include "wpa_common.h" #include "sae....
google
android
wpa_ctrl
.c
platform/external/wpa_supplicant_8/src/common/wpa_ctrl.c
18,444
utf_8
5d2485e3a68a3350865c5b4d5f5fa97c
/* * wpa_supplicant/hostapd control interface library * See README for more details. */ #include "includes.h" #ifdef CONFIG_CTRL_IFACE #ifdef CONFIG_CTRL_IFACE_UNIX #include <sys/un.h> #include <unistd.h> #include <fcntl.h> #endif /* CONFIG_CTRL_IFACE_UNIX */ #ifdef CONFIG_CTRL_IFACE_UDP_REMOTE #include <netdb.h> #e...
google
android
ptksa_cache
.c
platform/external/wpa_supplicant_8/src/common/ptksa_cache.c
7,768
utf_8
52bc028cda7c32b4c03cc96f8111bbbd
/* * RSN PTKSA cache implementation * * See README for more details. */ #include "includes.h" #include "utils/common.h" #include "eloop.h" #include "common/ptksa_cache.h" #define PTKSA_CACHE_MAX_ENTRIES 16 struct ptksa_cache { struct dl_list ptksa; unsigned int n_ptksa; }; static void ptksa_cache_set_expiration(s...
google
android
dpp_reconfig
.c
platform/external/wpa_supplicant_8/src/common/dpp_reconfig.c
27,816
utf_8
f53c29da11a529321fbeec400e710df8
/* * DPP reconfiguration * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/json.h" #include "crypto/crypto.h" #include "crypto/random.h" #include "crypto/aes.h" #include "crypto/aes_siv.h" #include "dpp.h" #include "dpp_i.h" #ifdef CONFIG_DPP2 static void dpp_bui...
google
android
pkcs5
.c
platform/external/wpa_supplicant_8/src/tls/pkcs5.c
15,630
utf_8
d5245d2e4383a17ed0fc30d6f9a2e009
/* * PKCS #5 (Password-based Encryption) * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/crypto.h" #include "crypto/md5.h" #include "crypto/sha1.h" #include "asn1.h" #include "pkcs5.h" struct pkcs5_params { enum pkcs5_alg { PKCS5_ALG_UNKNOWN, PKCS5_ALG_MD5_DES_CBC, ...
google
android
rsa
.c
platform/external/wpa_supplicant_8/src/tls/rsa.c
8,649
utf_8
1f29655859e8d683b8fbbaad77ba5970
/* * RSA * See README for more details. */ #include "includes.h" #include "common.h" #include "asn1.h" #include "bignum.h" #include "rsa.h" struct crypto_rsa_key { int private_key; /* whether private key is set */ struct bignum *n; /* modulus (p * q) */ struct bignum *e; /* public exponent */ /* The following pa...
google
android
pkcs8
.c
platform/external/wpa_supplicant_8/src/tls/pkcs8.c
4,494
utf_8
bea4ae0a4f5f5944c32c405f72eba817
/* * PKCS #8 (Private-key information syntax) * See README for more details. */ #include "includes.h" #include "common.h" #include "asn1.h" #include "bignum.h" #include "rsa.h" #include "pkcs5.h" #include "pkcs8.h" struct crypto_private_key * pkcs8_key_import(const u8 *buf, size_t len) { struct asn1_hdr hdr; const...
google
android
tlsv1_server_read
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_server_read.c
35,013
utf_8
a79cfd9b620e903d584c5bc0f131a9e3
/* * TLSv1 server - read handshake message * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/md5.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "crypto/tls.h" #include "x509v3.h" #include "tlsv1_common.h" #include "tlsv1_record.h" #include "tlsv1_server.h" ...
google
android
tlsv1_client_read
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_client_read.c
41,085
utf_8
57d8fca900f1ccb39f66b7bbc544123d
/* * TLSv1 client - read handshake message * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/md5.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "crypto/tls.h" #include "x509v3.h" #include "tlsv1_common.h" #include "tlsv1_record.h" #include "tlsv1_client.h" ...
google
android
bignum
.c
platform/external/wpa_supplicant_8/src/tls/bignum.c
5,493
utf_8
42ea05a795a81752e38b95a68dbfab16
/* * Big number math * See README for more details. */ #include "includes.h" #include "common.h" #include "bignum.h" #ifdef CONFIG_INTERNAL_LIBTOMMATH #include "libtommath.c" #else /* CONFIG_INTERNAL_LIBTOMMATH */ #include <tommath.h> #endif /* CONFIG_INTERNAL_LIBTOMMATH */ /* * The current version is just a wrappe...
google
android
tlsv1_client
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_client.c
24,596
utf_8
73253885eada5d0cd687dfb17a0d7b85
/* * TLS v1.0/v1.1/v1.2 client (RFC 2246, RFC 4346, RFC 5246) * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/sha1.h" #include "crypto/tls.h" #include "x509v3.h" #include "tlsv1_common.h" #include "tlsv1_record.h" #include "tlsv1_client.h" #include "tlsv1_client_i.h" /* T...
google
android
pkcs1
.c
platform/external/wpa_supplicant_8/src/tls/pkcs1.c
8,165
utf_8
19655b128b6a492616ad1dae44a3d115
/* * PKCS #1 (RSA Encryption) * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/crypto.h" #include "rsa.h" #include "asn1.h" #include "pkcs1.h" static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, const u8 *in, size_t inlen, u8 *out, size...
google
android
asn1
.c
platform/external/wpa_supplicant_8/src/tls/asn1.c
14,242
utf_8
97e17e9f7ae0512a892623004d15bdaa
/* * ASN.1 DER parsing * See README for more details. */ #include "includes.h" #include "common.h" #include "utils/wpabuf.h" #include "asn1.h" const struct asn1_oid asn1_sha1_oid = { .oid = { 1, 3, 14, 3, 2, 26 }, .len = 6 }; const struct asn1_oid asn1_sha256_oid = { .oid = { 2, 16, 840, 1, 101, 3, 4, 2, 1 }, .l...
google
android
x509v3
.c
platform/external/wpa_supplicant_8/src/tls/x509v3.c
56,357
utf_8
59df55a4be68e9c40aff169b815dbc57
/* * X.509v3 certificate parsing and processing (RFC 3280 profile) * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/crypto.h" #include "asn1.h" #include "x509v3.h" void x509_free_name(struct x509_name *name) { size_t i; for (i = 0; i < name->num_attr; i++) { os_free(na...
google
android
tlsv1_cred
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_cred.c
30,229
utf_8
da65a95f89436476064470e894b7a41b
/* * TLSv1 credentials * See README for more details. */ #include "includes.h" #include "common.h" #include "base64.h" #include "crypto/crypto.h" #include "crypto/sha1.h" #include "pkcs5.h" #include "pkcs8.h" #include "x509v3.h" #include "tlsv1_cred.h" struct tlsv1_credentials * tlsv1_cred_alloc(void) { struct tlsv...
google
android
tlsv1_client_write
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_client_write.c
25,808
utf_8
e250c82abbccc54e0229c577a6960b37
/* * TLSv1 client - write handshake message * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/md5.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "crypto/tls.h" #include "crypto/random.h" #include "x509v3.h" #include "tlsv1_common.h" #include "tlsv1_record.h...
google
android
tlsv1_client_ocsp
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_client_ocsp.c
21,708
utf_8
612c75a1fe9efd0add814e04576cedf1
/* * TLSv1 client - OCSP * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/tls.h" #include "crypto/sha1.h" #include "asn1.h" #include "x509v3.h" #include "tlsv1_common.h" #include "tlsv1_record.h" #include "tlsv1_client.h" #include "tlsv1_client_i.h" /* RFC 6960, 4.2.1: OCS...
google
android
tlsv1_server
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_server.c
24,087
utf_8
b7b5eaf7abc9d20e279c1572dd322bcd
/* * TLS v1.0/v1.1/v1.2 server (RFC 2246, RFC 4346, RFC 5246) * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/sha1.h" #include "crypto/tls.h" #include "tlsv1_common.h" #include "tlsv1_record.h" #include "tlsv1_server.h" #include "tlsv1_server_i.h" /* TODO: * Support for ...
google
android
tlsv1_record
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_record.c
13,734
utf_8
0767ef2786ce41abd51c0046b28fa44d
/* * TLSv1 Record Protocol * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/md5.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "tlsv1_common.h" #include "tlsv1_record.h" /** * tlsv1_record_set_cipher_suite - TLS record layer: Set cipher suite * Returns: ...
google
android
tlsv1_server_write
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_server_write.c
28,376
utf_8
cfdeb9b8f45767ff7f8cf42eef909c45
/* * TLSv1 server - write handshake message * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/md5.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "crypto/tls.h" #include "crypto/random.h" #include "x509v3.h" #include "tlsv1_common.h" #include "tlsv1_record.h...
google
android
libtommath
.c
platform/external/wpa_supplicant_8/src/tls/libtommath.c
78,032
utf_8
a988760b4daae07e374c8157b5f74e0b
/* * Minimal code for RSA support from LibTomMath 0.41 * http://libtom.org/ * http://libtom.org/files/ltm-0.41.tar.bz2 * This library was released in public domain by Tom St Denis. * * The combination in this file may not use all of the optimized algorithms * from LibTomMath and may be considerable slower than t...
google
android
tlsv1_common
.c
platform/external/wpa_supplicant_8/src/tls/tlsv1_common.c
15,080
utf_8
5d62f1499937aca86bdf85bcb81b668b
/* * TLSv1 common routines * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/md5.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "x509v3.h" #include "tlsv1_common.h" /* * TODO: * RFC 2246 Section 9: Mandatory to implement TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA ...
google
android
eapol_supp_sm
.c
platform/external/wpa_supplicant_8/src/eapol_supp/eapol_supp_sm.c
60,684
utf_8
d22a34a2f057daf3be1735ad7dfdcc76
/* * EAPOL supplicant state machines * See README for more details. */ #include "includes.h" #include "common.h" #include "state_machine.h" #include "wpabuf.h" #include "eloop.h" #include "crypto/crypto.h" #include "crypto/md5.h" #include "common/eapol_common.h" #include "eap_peer/eap.h" #include "eap_peer/eap_confi...
google
android
wpa_ft
.c
platform/external/wpa_supplicant_8/src/rsn_supp/wpa_ft.c
37,501
utf_8
175061cbb89995f49592395a5c655128
/* * WPA Supplicant - IEEE 802.11r - Fast BSS Transition * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/aes_wrap.h" #include "crypto/sha384.h" #include "crypto/random.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_11_common.h" #include "common/ocv.h" #in...
google
android
tdls
.c
platform/external/wpa_supplicant_8/src/rsn_supp/tdls.c
86,190
utf_8
398586e14d53691b0cf0f60a30614890
/* * wpa_supplicant - TDLS * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "utils/os.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_11_common.h" #include "crypto/sha256.h" #include "crypto/crypto.h" #include "crypto/aes_wrap.h...
google
android
wpa_ie
.c
platform/external/wpa_supplicant_8/src/rsn_supp/wpa_ie.c
10,900
utf_8
2d1996302b998fffabed441241dda2cf
/* * wpa_supplicant - WPA/RSN IE and KDE processing * See README for more details. */ #include "includes.h" #include "common.h" #include "wpa.h" #include "pmksa_cache.h" #include "common/ieee802_11_defs.h" #include "wpa_i.h" #include "wpa_ie.h" /** * wpa_parse_wpa_ie - Parse WPA/RSN IE * Returns: 0 on success, -1 ...
google
android
preauth
.c
platform/external/wpa_supplicant_8/src/rsn_supp/preauth.c
15,636
utf_8
b635c7ca0921e6fa275231f2eb67cb2d
/* * RSN pre-authentication (supplicant) * See README for more details. */ #include "includes.h" #include "common.h" #include "wpa.h" #include "eloop.h" #include "l2_packet/l2_packet.h" #include "eapol_supp/eapol_supp_sm.h" #include "preauth.h" #include "pmksa_cache.h" #include "wpa_i.h" #if defined(IEEE8021X_EAPOL)...
google
android
pmksa_cache
.c
platform/external/wpa_supplicant_8/src/rsn_supp/pmksa_cache.c
21,922
utf_8
310c1c2d0ab72a052bb084177821c1c1
/* * WPA Supplicant - RSN PMKSA cache * See README for more details. */ #include "includes.h" #include "common.h" #include "eloop.h" #include "eapol_supp/eapol_supp_sm.h" #include "wpa.h" #include "wpa_i.h" #include "pmksa_cache.h" #include "wpa_supplicant_i.h" #include "notify.h" #if defined(IEEE8021X_EAPOL) && !de...
google
android
wpa
.c
platform/external/wpa_supplicant_8/src/rsn_supp/wpa.c
149,333
utf_8
b902524913de9adc51a90b7d357d7289
/* * WPA Supplicant - WPA state machine and EAPOL-Key processing * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/aes.h" #include "crypto/aes_wrap.h" #include "crypto/crypto.h" #include "crypto/random.h" #include "crypto/aes_siv.h" #include "crypto/sha256.h" #include "cryp...
google
android
radius
.c
platform/external/wpa_supplicant_8/src/radius/radius.c
46,998
utf_8
5b39d802968c5139c9bbe2f8e5d9e2f1
/* * RADIUS message processing * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/wpabuf.h" #include "crypto/md5.h" #include "crypto/crypto.h" #include "radius.h" /** * struct radius_msg - RADIUS message structure for new and parsed messages */ struct radius_msg...
google
android
radius_das
.c
platform/external/wpa_supplicant_8/src/radius/radius_das.c
14,708
utf_8
a9010e7537ebf6614f20a60a953649ad
/* * RADIUS Dynamic Authorization Server (DAS) (RFC 5176) * See README for more details. */ #include "includes.h" #include <net/if.h> #include "utils/common.h" #include "utils/eloop.h" #include "utils/ip_addr.h" #include "radius.h" #include "radius_das.h" struct radius_das_data { int sock; u8 *shared_secret; size...
google
android
radius_client
.c
platform/external/wpa_supplicant_8/src/radius/radius_client.c
47,113
utf_8
d9231f221873797deccfa5b2e507af40
/* * RADIUS client * See README for more details. */ #include "includes.h" #include <net/if.h> #include "common.h" #include "radius.h" #include "radius_client.h" #include "eloop.h" /* Defaults for RADIUS retransmit values (exponential backoff) */ /** * RADIUS_CLIENT_FIRST_WAIT - RADIUS client timeout for first retr...
google
android
radius_server
.c
platform/external/wpa_supplicant_8/src/radius/radius_server.c
72,456
utf_8
3ed99922ce329db53a84f4c37e2a79df
/* * RADIUS authentication server * See README for more details. */ #include "includes.h" #include <net/if.h> #ifdef CONFIG_SQLITE #include <sqlite3.h> #endif /* CONFIG_SQLITE */ #include "common.h" #include "radius.h" #include "eloop.h" #include "eap_server/eap.h" #include "ap/ap_config.h" #include "crypto/tls.h" #...
google
android
l2_packet_linux
.c
platform/external/wpa_supplicant_8/src/l2_packet/l2_packet_linux.c
14,032
utf_8
43ef482ac282960c28c361a0bbad3a9f
/* * WPA Supplicant - Layer2 packet handling with Linux packet sockets * See README for more details. */ #include "includes.h" #include <sys/ioctl.h> #include <netpacket/packet.h> #include <net/if.h> #include <linux/filter.h> #include "common.h" #include "eloop.h" #include "crypto/sha1.h" #include "crypto/crypto.h" ...
google
android
l2_packet_ndis
.c
platform/external/wpa_supplicant_8/src/l2_packet/l2_packet_ndis.c
14,848
utf_8
85cba09638834f17cb98f6ea6dad50ac
/* * WPA Supplicant - Layer2 packet handling with Microsoft NDISUIO * See README for more details. * * This implementation requires Windows specific event loop implementation, * i.e., eloop_win.c. In addition, the NDISUIO connection is shared with * driver_ndis.c, so only that driver interface can be used and * ...
google
android
l2_packet_none
.c
platform/external/wpa_supplicant_8/src/l2_packet/l2_packet_none.c
2,955
utf_8
dbf6ed059a56f94710f1fb4f9783b908
/* * WPA Supplicant - Layer2 packet handling example with stub functions * See README for more details. * * This file can be used as a starting point for layer2 packet implementation. */ #include "includes.h" #include "common.h" #include "eloop.h" #include "l2_packet.h" struct l2_packet_data { char ifname[17]; u...
google
android
l2_packet_freebsd
.c
platform/external/wpa_supplicant_8/src/l2_packet/l2_packet_freebsd.c
7,948
utf_8
d44663962c798226a2ff82b2de0a40fa
/* * See README for more details. */ #include "includes.h" #if defined(__APPLE__) || defined(__GLIBC__) #include <net/bpf.h> #endif /* __APPLE__ */ #include <pcap.h> #include <sys/ioctl.h> #ifdef __sun__ #include <libdlpi.h> #else /* __sun__ */ #include <sys/sysctl.h> #endif /* __sun__ */ #include <net/if.h> #include...
google
android
l2_packet_winpcap
.c
platform/external/wpa_supplicant_8/src/l2_packet/l2_packet_winpcap.c
9,626
utf_8
ebcecd0c333274e46f48391de9b11d37
/* * WPA Supplicant - Layer2 packet handling with WinPcap RX thread * See README for more details. * * This l2_packet implementation is explicitly for WinPcap and Windows events. * l2_packet_pcap.c has support for WinPcap, but it requires polling to receive * frames which means relatively long latency for EAPOL R...
google
android
l2_packet_pcap
.c
platform/external/wpa_supplicant_8/src/l2_packet/l2_packet_pcap.c
9,998
utf_8
be2ef746b65b54326e138d67cdd5c724
/* * WPA Supplicant - Layer2 packet handling with libpcap/libdnet and WinPcap * See README for more details. */ #include "includes.h" #ifndef CONFIG_NATIVE_WINDOWS #include <sys/ioctl.h> #endif /* CONFIG_NATIVE_WINDOWS */ #include <pcap.h> #ifndef CONFIG_WINPCAP #include <dnet.h> #endif /* CONFIG_WINPCAP */ #include...
google
android
l2_packet_privsep
.c
platform/external/wpa_supplicant_8/src/l2_packet/l2_packet_privsep.c
6,581
utf_8
d8361b1d3834f1ad131d22b2d85f43f7
/* * WPA Supplicant - Layer2 packet handling with privilege separation * See README for more details. */ #include "includes.h" #include <sys/un.h> #include "common.h" #include "eloop.h" #include "l2_packet.h" #include "common/privsep_commands.h" struct l2_packet_data { int fd; /* UNIX domain socket for privsep acce...
google
android
p2p
.c
platform/external/wpa_supplicant_8/src/p2p/p2p.c
149,700
utf_8
cd6683340f89cc136b0389fd0f446a6e
/* * Wi-Fi Direct - P2P module * See README for more details. */ #include "includes.h" #include <log/log.h> #include "common.h" #include "eloop.h" #include "common/defs.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_11_common.h" #include "common/wpa_ctrl.h" #include "crypto/sha256.h" #include "crypt...
google
android
p2p_group
.c
platform/external/wpa_supplicant_8/src/p2p/p2p_group.c
26,218
utf_8
7c192e8e210f0c2779b15e16b85577b7
/* * Wi-Fi Direct - P2P group operations * See README for more details. */ #include "includes.h" #include "common.h" #include "common/ieee802_11_defs.h" #include "common/ieee802_11_common.h" #include "common/wpa_ctrl.h" #include "wps/wps_defs.h" #include "wps/wps_i.h" #include "p2p_i.h" #include "p2p.h" struct p2p_g...