repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
hostap | hostap-master/src/crypto/milenage.c | /*
* 3GPP AKA - Milenage algorithm (3GPP TS 35.205, .206, .207, .208)
* Copyright (c) 2006-2007 <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*
* This file implements an example authentication algorithm defined for 3GPP
* AKA. This can be used ... | 9,723 | 29.012346 | 79 | c |
hostap | hostap-master/src/crypto/md5-internal.c | /*
* MD5 hash implementation and interface functions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "md5.h"
#include "md5_i.h"
#include "crypto.h"
s... | 8,999 | 29.927835 | 78 | c |
hostap | hostap-master/src/crypto/milenage.h | /*
* UMTS AKA - Milenage algorithm (3GPP TS 35.205, .206, .207, .208)
* Copyright (c) 2006-2007 <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef MILENAGE_H
#define MILENAGE_H
void milenage_generate(const u8 *opc, const u8 *amf, const u8... | 1,019 | 35.428571 | 78 | h |
hostap | hostap-master/src/crypto/sha1.c | /*
* SHA1 hash implementation and interface functions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha1.h"
#include "crypto.h"
/**
* hmac_sha1_v... | 2,716 | 24.157407 | 77 | c |
hostap | hostap-master/src/crypto/aes-internal-enc.c | /*
* AES (Rijndael) cipher - encrypt
*
* 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,
... | 2,676 | 20.07874 | 79 | c |
hostap | hostap-master/src/crypto/aes.h | /*
* AES functions
* Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef AES_H
#define AES_H
#define AES_BLOCK_SIZE 16
void * aes_encrypt_init(const u8 *key, size_t len);
void aes_encrypt(void *ctx, ... | 550 | 24.045455 | 71 | h |
hostap | hostap-master/src/crypto/sha1-internal.c | /*
* SHA1 hash implementation and interface functions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha1.h"
#include "sha1_i.h"
#include "md5.h"
#in... | 9,128 | 28.736156 | 78 | c |
hostap | hostap-master/src/crypto/md5_i.h | /*
* MD5 internal definitions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef MD5_I_H
#define MD5_I_H
struct MD5Context {
u32 buf[4];
u32 bits[2];
u8 in[64];
};
void MD5Init(struct MD5Contex... | 516 | 20.541667 | 71 | h |
hostap | hostap-master/src/crypto/md5.c | /*
* MD5 hash implementation and interface functions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "md5.h"
#include "crypto.h"
/**
* hmac_md5_vect... | 2,705 | 23.6 | 76 | c |
hostap | hostap-master/src/crypto/tls.h | /*
* SSL/TLS interface definition
* Copyright (c) 2004-2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TLS_H
#define TLS_H
struct tls_connection;
struct tls_random {
const u8 *client_random;
size_t client_random_... | 21,393 | 34.42053 | 79 | h |
hostap | hostap-master/src/crypto/aes-ccm.c | /*
* Counter with CBC-MAC (CCM) with AES
*
* Copyright (c) 2010-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
static void xor_aes_block(u... | 5,043 | 22.680751 | 80 | c |
hostap | hostap-master/src/crypto/sha256.h | /*
* SHA256 hash implementation and interface functions
* Copyright (c) 2003-2016, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef SHA256_H
#define SHA256_H
#define SHA256_MAC_LEN 32
int hmac_sha256_vector(const u8 *key,... | 1,095 | 34.354839 | 71 | h |
hostap | hostap-master/src/crypto/ms_funcs.h | /*
* WPA Supplicant / shared MSCHAPV2 helper functions / RFC 2433 / RFC 2759
* Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef MS_FUNCS_H
#define MS_FUNCS_H
int generate_nt_response(const u8 *auth... | 2,469 | 39.491803 | 76 | h |
hostap | hostap-master/src/crypto/sha1-pbkdf2.c | /*
* SHA1-based key derivation function (PBKDF2) for IEEE 802.11i
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha1.h"
static int pbkdf2_sha1_f(co... | 2,393 | 24.741935 | 79 | c |
hostap | hostap-master/src/crypto/dh_groups.h | /*
* Diffie-Hellman groups
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef DH_GROUPS_H
#define DH_GROUPS_H
struct dh_group {
int id;
const u8 *generator;
size_t generator_len;
const u8 *prime;
s... | 692 | 22.1 | 73 | h |
hostap | hostap-master/src/crypto/sha512-internal.c | /*
* SHA-512 hash implementation and interface functions
* Copyright (c) 2015, Pali Rohár <pali.rohar@gmail.com>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha512_i.h"
#include "crypto.h"
/**
*... | 7,820 | 28.513208 | 79 | c |
hostap | hostap-master/src/crypto/aes-unwrap.c | /*
* AES key unwrap (RFC3394)
*
* Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
/**
* aes_unwrap - Unwrap key with AES... | 1,818 | 21.45679 | 77 | c |
hostap | hostap-master/src/crypto/sha1-tprf.c | /*
* SHA1 T-PRF for EAP-FAST
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha1.h"
#include "crypto.h"
/**
* sha1_t_prf - EAP-FAST Pseudo-Random F... | 1,786 | 23.479452 | 78 | c |
hostap | hostap-master/src/crypto/crypto_gnutls.c | /*
* WPA Supplicant / wrapper functions for libgcrypt
* Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <gcrypt.h>
#include "common.h"
#include "crypto.h"
int md4_vector(si... | 6,802 | 21.676667 | 78 | c |
hostap | hostap-master/src/crypto/md5.h | /*
* MD5 hash implementation and interface functions
* Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef MD5_H
#define MD5_H
#define MD5_MAC_LEN 16
int hmac_md5_vector(const u8 *key, size_t key_len... | 505 | 24.3 | 76 | h |
hostap | hostap-master/src/crypto/sha384-internal.c | /*
* SHA-384 hash implementation and interface functions
* Copyright (c) 2015, Pali Rohár <pali.rohar@gmail.com>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha384_i.h"
#include "crypto.h"
/**
*... | 2,222 | 22.903226 | 79 | c |
hostap | hostap-master/src/crypto/fips_prf_openssl.c | /*
* FIPS 186-2 PRF for libcrypto
* Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <openssl/sha.h>
#include "common.h"
#include "crypto.h"
static void sha1_transform(u32 ... | 2,100 | 20.01 | 71 | c |
hostap | hostap-master/src/crypto/sha1_i.h | /*
* SHA1 internal definitions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef SHA1_I_H
#define SHA1_I_H
struct SHA1Context {
u32 state[5];
u32 count[2];
unsigned char buffer[64];
};
void SH... | 590 | 23.625 | 72 | h |
hostap | hostap-master/src/crypto/crypto_internal.c | /*
* Crypto wrapper for internal crypto implementation
* Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto.h"
#include "sha256_i.h"
#include "sha38... | 6,977 | 20.404908 | 78 | c |
hostap | hostap-master/src/crypto/md4-internal.c | /*
* MD4 hash implementation
* Copyright (c) 2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* 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... | 8,091 | 28.318841 | 77 | c |
hostap | hostap-master/src/crypto/dh_group5.h | /*
* Diffie-Hellman group 5 operations
* Copyright (c) 2009, 2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef DH_GROUP5_H
#define DH_GROUP5_H
void * dh5_init(struct wpabuf **priv, struct wpabuf **publ);
void * dh5_in... | 556 | 28.315789 | 78 | h |
hostap | hostap-master/src/crypto/sha384-prf.c | /*
* SHA384-based KDF (IEEE 802.11ac)
* Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha384.h"
#include "crypto.h"
/**
* sha384_prf - SHA384-based... | 2,742 | 26.158416 | 80 | c |
hostap | hostap-master/src/crypto/ms_funcs.c | /*
* WPA Supplicant / shared MSCHAPV2 helper functions / RFC 2433 / RFC 2759
* Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha1.h"
#include "ms_func... | 16,362 | 30.167619 | 134 | c |
hostap | hostap-master/src/crypto/aes-encblock.c | /*
* AES encrypt_block
*
* Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
/**
* aes_128_encrypt_block - Perform one AES... | 704 | 20.363636 | 71 | c |
hostap | hostap-master/src/crypto/aes-internal-dec.c | /*
* AES (Rijndael) cipher - decrypt
*
* 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,
... | 3,713 | 21.925926 | 76 | c |
hostap | hostap-master/src/crypto/sha1-tlsprf.c | /*
* TLS PRF (SHA1 + MD5)
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha1.h"
#include "md5.h"
/**
* tls_prf_sha1_md5 - Pseudo-Random Function ... | 2,778 | 25.466667 | 78 | c |
hostap | hostap-master/src/crypto/sha1-prf.c | /*
* SHA1-based PRF
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha1.h"
#include "crypto.h"
/**
* sha1_prf - SHA1-based Pseudo-Random Function ... | 1,618 | 22.808824 | 78 | c |
hostap | hostap-master/src/crypto/aes-omac1.c | /*
* One-key CBC MAC (OMAC1) hash with AES
*
* Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
static void gf_mulx(u8 *pa... | 4,571 | 25.275862 | 79 | c |
hostap | hostap-master/src/crypto/aes-ctr.c | /*
* AES-128/192/256 CTR
*
* Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
/**
* aes_ctr_encrypt - AES-128/192/256 CTR... | 1,677 | 22.305556 | 71 | c |
hostap | hostap-master/src/crypto/random.h | /*
* Random number generator
* Copyright (c) 2010-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef RANDOM_H
#define RANDOM_H
#ifdef CONFIG_NO_RANDOM_POOL
#define random_init(e) do { } while (0)
#define random_deinit(... | 855 | 28.517241 | 71 | h |
hostap | hostap-master/src/crypto/random.c | /*
* Random number generator
* Copyright (c) 2010-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*
* This random number generator is used to provide additional entropy to the
* one provided by the operating system (os_get_ran... | 11,206 | 24.470455 | 77 | c |
hostap | hostap-master/src/crypto/crypto_internal-modexp.c | /*
* Crypto wrapper for internal crypto implementation - modexp
* Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "tls/bignum.h"
#include "crypto.h"
in... | 1,256 | 24.14 | 71 | c |
hostap | hostap-master/src/crypto/aes_wrap.h | /*
* AES-based functions
*
* - AES Key Wrap Algorithm (RFC3394)
* - One-Key CBC MAC (OMAC1) hash with AES-128 and AES-256
* - AES-128/192/256 CTR mode encryption
* - AES-128 EAX mode encryption/decryption
* - AES-128 CBC
* - AES-GCM
* - AES-CCM
*
* Copyright (c) 2003-2012, Jouni Malinen <j@w1.fi>
*
* This ... | 2,975 | 39.216216 | 80 | h |
hostap | hostap-master/src/crypto/sha384.h | /*
* SHA384 hash implementation and interface functions
* Copyright (c) 2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef SHA384_H
#define SHA384_H
#define SHA384_MAC_LEN 48
int hmac_sha384_vector(const u8 *key, size... | 796 | 30.88 | 71 | h |
hostap | hostap-master/src/crypto/sha256_i.h | /*
* SHA-256 internal definitions
* Copyright (c) 2003-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef SHA256_I_H
#define SHA256_I_H
#define SHA256_BLOCK_SIZE 64
struct sha256_state {
u64 length;
u32 state[8], cu... | 584 | 21.5 | 71 | h |
hostap | hostap-master/src/crypto/aes-eax.c | /*
* AES-128 EAX
*
* Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
/**
* aes_128_eax_encrypt - AES-128 EAX mode encryp... | 3,320 | 21.746575 | 73 | c |
hostap | hostap-master/src/crypto/tls_openssl_ocsp.c | /*
* SSL/TLS interface functions for OpenSSL - BoringSSL OCSP
* Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/x5... | 21,011 | 23.807556 | 117 | c |
hostap | hostap-master/src/eap_common/eap_sake_common.h | /*
* EAP server/peer: EAP-SAKE shared routines
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_SAKE_COMMON_H
#define EAP_SAKE_COMMON_H
#define EAP_SAKE_VERSION 2
#define EAP_SAKE_SUBTYPE_CH... | 2,467 | 24.443299 | 75 | h |
hostap | hostap-master/src/eap_common/eap_common.h | /*
* EAP common peer/server definitions
* Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_COMMON_H
#define EAP_COMMON_H
#include "wpabuf.h"
struct erp_tlvs {
const u8 *keyname;
const u8 *do... | 905 | 25.647059 | 75 | h |
hostap | hostap-master/src/eap_common/eap_wsc_common.c | /*
* EAP-WSC common routines for Wi-Fi Protected Setup
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_defs.h"
#include "eap_common.h"
#include "wps/wp... | 784 | 22.088235 | 71 | c |
hostap | hostap-master/src/eap_common/eap_eke_common.c | /*
* EAP server/peer: EAP-EKE shared routines
* Copyright (c) 2011-2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes.h"
#include "crypto/aes_wrap.h"
#include "cry... | 17,752 | 22.639148 | 81 | c |
hostap | hostap-master/src/eap_common/ikev2_common.h | /*
* IKEv2 definitions
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef IKEV2_COMMON_H
#define IKEV2_COMMON_H
/*
* Nonce length must be at least 16 octets. It must also be at least half the
* key si... | 8,305 | 23.79403 | 78 | h |
hostap | hostap-master/src/eap_common/eap_gpsk_common.h | /*
* EAP server/peer: EAP-GPSK shared routines
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_GPSK_COMMON_H
#define EAP_GPSK_COMMON_H
#define EAP_GPSK_OPCODE_GPSK_1 1
#define EAP_GPSK_OPCOD... | 2,052 | 29.641791 | 73 | h |
hostap | hostap-master/src/eap_common/eap_common.c | /*
* EAP common peer/server definitions
* Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_defs.h"
#include "eap_common.h"
/**
* eap_hdr_len_valid ... | 7,487 | 24.910035 | 79 | c |
hostap | hostap-master/src/eap_common/eap_pwd_common.h | /*
* EAP server/peer: EAP-pwd shared definitions
* Copyright (c) 2009, Dan Harkins <dharkins@lounge.org>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_PWD_COMMON_H
#define EAP_PWD_COMMON_H
#include <openssl/bn.h>
#include <openssl/ec.h>
#i... | 2,243 | 29.739726 | 76 | h |
hostap | hostap-master/src/eap_common/eap_sake_common.c | /*
* EAP server/peer: EAP-SAKE shared routines
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "wpabuf.h"
#include "crypto/sha1.h"
#include "eap_defs.h... | 10,634 | 26.409794 | 78 | c |
hostap | hostap-master/src/eap_common/eap_defs.h | /*
* EAP server/peer: Shared EAP definitions
* Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_DEFS_H
#define EAP_DEFS_H
/* RFC 3748 - Extensible Authentication Protocol (EAP) */
#ifdef _MSC_... | 3,473 | 28.193277 | 78 | h |
hostap | hostap-master/src/eap_common/eap_ikev2_common.h | /*
* EAP-IKEv2 definitions
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_IKEV2_COMMON_H
#define EAP_IKEV2_COMMON_H
#define IKEV2_FLAGS_LENGTH_INCLUDED 0x80
#define IKEV2_FLAGS_MORE_FRAGMENTS 0x... | 832 | 26.766667 | 71 | h |
hostap | hostap-master/src/eap_common/eap_pwd_common.c | /*
* EAP server/peer: EAP-pwd shared routines
* Copyright (c) 2010, Dan Harkins <dharkins@lounge.org>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha256.h"
#include "crypto/crypto.h"
#include... | 10,027 | 26.25 | 75 | c |
hostap | hostap-master/src/eap_common/eap_fast_common.c | /*
* EAP-FAST common helper functions (RFC 4851)
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#include "eap_defs.... | 7,368 | 26.191882 | 80 | c |
hostap | hostap-master/src/eap_common/eap_wsc_common.h | /*
* EAP-WSC definitions for Wi-Fi Protected Setup
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_WSC_COMMON_H
#define EAP_WSC_COMMON_H
#define EAP_VENDOR_TYPE_WSC 1
#define WSC_FLAGS_MF 0x01
#... | 644 | 22.035714 | 71 | h |
hostap | hostap-master/src/eap_common/eap_eke_common.h | /*
* EAP server/peer: EAP-EKE shared routines
* Copyright (c) 2011-2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_EKE_COMMON_H
#define EAP_EKE_COMMON_H
/* EKE Exchange */
#define EAP_EKE_ID 1
#define EAP_EKE_CO... | 3,551 | 29.886957 | 80 | h |
hostap | hostap-master/src/eap_common/eap_psk_common.h | /*
* EAP server/peer: EAP-PSK shared routines
* Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_PSK_COMMON_H
#define EAP_PSK_COMMON_H
#define EAP_PSK_RAND_LEN 16
#define EAP_PSK_MAC_LEN 16
#d... | 1,766 | 23.205479 | 78 | h |
hostap | hostap-master/src/eap_common/eap_tlv_common.h | /*
* EAP-TLV definitions (draft-josefsson-pppext-eap-tls-eap-10.txt)
* Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_TLV_COMMON_H
#define EAP_TLV_COMMON_H
/* EAP-TLV TLVs (draft-josefsson-pp... | 2,634 | 22.318584 | 71 | h |
hostap | hostap-master/src/eap_common/eap_gpsk_common.c | /*
* EAP server/peer: EAP-GPSK shared routines
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "crypto/sha256.h"
#include ... | 14,624 | 25.446655 | 74 | c |
hostap | hostap-master/src/eap_common/eap_psk_common.c | /*
* EAP server/peer: EAP-PSK shared routines
* Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "eap_defs.h"
#include "eap_p... | 1,554 | 21.536232 | 74 | c |
hostap | hostap-master/src/eap_common/eap_pax_common.c | /*
* EAP server/peer: EAP-PAX shared routines
* Copyright (c) 2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "eap_pax_common.h"
/**
* eap_pax_k... | 4,508 | 28.860927 | 79 | c |
hostap | hostap-master/src/eap_common/eap_ikev2_common.c | /*
* EAP-IKEv2 common routines
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_defs.h"
#include "eap_common.h"
#include "ikev2_common.h"
#include "eap_... | 2,843 | 23.307692 | 71 | c |
hostap | hostap-master/src/eap_common/eap_sim_common.h | /*
* EAP peer/server: EAP-SIM/AKA/AKA' shared routines
* Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_SIM_COMMON_H
#define EAP_SIM_COMMON_H
#define EAP_SIM_NONCE_S_LEN 16
#define EAP_SIM_NO... | 7,742 | 32.519481 | 79 | h |
hostap | hostap-master/src/eap_common/eap_pax_common.h | /*
* EAP server/peer: EAP-PAX shared routines
* Copyright (c) 2005-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_PAX_COMMON_H
#define EAP_PAX_COMMON_H
#ifdef _MSC_VER
#pragma pack(push, 1)
#endif /* _MSC_VER *... | 2,249 | 23.193548 | 72 | h |
hostap | hostap-master/src/eap_common/eap_ttls.h | /*
* EAP server/peer: EAP-TTLS (RFC 5281)
* Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_TTLS_H
#define EAP_TTLS_H
struct ttls_avp {
be32 avp_code;
be32 avp_length; /* 8-bit flags, 24-bit... | 1,623 | 23.606061 | 71 | h |
hostap | hostap-master/src/eap_common/ikev2_common.c | /*
* IKEv2 common routines for initiator and responder
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/crypto.h"
#include "crypto/md5.h"
#include "c... | 17,582 | 23.219008 | 77 | c |
hostap | hostap-master/src/eap_common/eap_fast_common.h | /*
* EAP-FAST definitions (RFC 4851)
* Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_FAST_H
#define EAP_FAST_H
#define EAP_FAST_VERSION 1
#define EAP_FAST_KEY_LEN 64
#define EAP_FAST_SIMCK_L... | 2,936 | 26.194444 | 78 | h |
hostap | hostap-master/src/drivers/rfkill.h | /*
* Linux rfkill helper functions for driver wrappers
* Copyright (c) 2010, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef RFKILL_H
#define RFKILL_H
struct rfkill_data;
struct rfkill_config {
void *ctx;
char ifname[I... | 583 | 21.461538 | 71 | h |
hostap | hostap-master/src/drivers/netlink.h | /*
* Netlink helper functions for driver wrappers
* Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef NETLINK_H
#define NETLINK_H
struct netlink_data;
struct ifinfomsg;
struct netlink_config {
voi... | 741 | 24.586207 | 71 | h |
hostap | hostap-master/src/drivers/priv_netlink.h | /*
* wpa_supplicant - Private copy of Linux netlink/rtnetlink definitions.
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef PRIV_NETLINK_H
#define PRIV_NETLINK_H
/*
* This should be replaced wit... | 2,882 | 25.209091 | 78 | h |
hostap | hostap-master/src/drivers/ndis_events.c | /*
* ndis_events - Receive NdisMIndicateStatus() events using WMI
* Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#define _WIN32_WINNT 0x0400
#include "includes.h"
#ifndef COBJMACROS
#define COBJMAC... | 21,715 | 26.043587 | 76 | c |
hostap | hostap-master/src/drivers/driver_roboswitch.c | /*
* WPA Supplicant - roboswitch driver interface
* Copyright (c) 2008-2012 Jouke Witteveen
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <sys/ioctl.h>
#include <linux/sockios.h>
#include <linux/if_ether.h>
#include <linu... | 13,762 | 27.672917 | 78 | c |
hostap | hostap-master/src/drivers/driver_privsep.c | /*
* WPA Supplicant - privilege separated driver interface
* Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <sys/un.h>
#include "common.h"
#include "driver.h"
#include "elo... | 20,936 | 23.984487 | 77 | c |
hostap | hostap-master/src/drivers/driver_hostap.h | /*
* Driver interaction with Linux Host AP driver
* Copyright (c) 2002-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef HOSTAP_DRIVER_H
#define HOSTAP_DRIVER_H
/* netdevice private ioctls (used, e.g., with iwpriv fro... | 6,176 | 28.274882 | 78 | h |
hostap | hostap-master/src/drivers/linux_ioctl.h | /*
* Linux ioctl helper functions for driver wrappers
* Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef LINUX_IOCTL_H
#define LINUX_IOCTL_H
int linux_set_iface_flags(int sock, const char *ifname, ... | 898 | 36.458333 | 71 | h |
hostap | hostap-master/src/drivers/netlink.c | /*
* Netlink helper functions for driver wrappers
* Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "priv_netlink.h"
#include "netlink... | 5,258 | 22.167401 | 92 | c |
hostap | hostap-master/src/drivers/driver_wext.h | /*
* WPA Supplicant - driver_wext exported functions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef DRIVER_WEXT_H
#define DRIVER_WEXT_H
#include <net/if.h>
struct wpa_driver_wext_data {
void ... | 2,411 | 28.414634 | 77 | h |
hostap | hostap-master/src/drivers/driver_wired.c | /*
* Wired Ethernet driver interface
* Copyright (c) 2005-2009, Jouni Malinen <j@w1.fi>
* Copyright (c) 2004, Gunter Burchardt <tira@isx.de>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#i... | 16,834 | 23.684751 | 90 | c |
hostap | hostap-master/src/drivers/linux_defines.h | /*
* Linux defines for values that are not yet included in common C libraries
* Copyright (c) 2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef LINUX_DEFINES_H
#define LINUX_DEFINES_H
#ifndef SO_WIFI_STATUS
# if defin... | 992 | 20.12766 | 75 | h |
hostap | hostap-master/src/drivers/driver_nl80211_monitor.c | /*
* Driver interaction with Linux nl80211/cfg80211 - AP monitor interface
* Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi>
* Copyright (c) 2003-2004, Instant802 Networks, Inc.
* Copyright (c) 2005-2006, Devicescape Software, Inc.
* Copyright (c) 2007, Johannes Berg <johannes@sipsolutions.net>
* Copyright (c) 2... | 13,358 | 26.152439 | 82 | c |
hostap | hostap-master/src/drivers/driver_ndis.h | /*
* WPA Supplicant - Windows/NDIS driver interface
* Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef DRIVER_NDIS_H
#define DRIVER_NDIS_H
#ifdef CONFIG_NDIS_EVENTS_INTEGRATED
struct ndis_events_da... | 1,519 | 24.333333 | 76 | h |
hostap | hostap-master/src/drivers/driver_ndis_.c | /*
* WPA Supplicant - Windows/NDIS driver interface - event processing
* Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "driver.h"
#include "eloop.h"
/... | 2,722 | 26.23 | 79 | c |
hostap | hostap-master/src/drivers/drivers.c | /*
* Driver interface list
* Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "driver.h"
const struct wpa_driver_ops *const wpa_drivers[] =
{... | 1,290 | 24.313725 | 71 | c |
hostap | hostap-master/src/drivers/driver_openbsd.c | /*
* Driver interaction with OpenBSD net80211 layer
* Copyright (c) 2013, Mark Kettenis
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <sys/ioctl.h>
#include <net/if.h>
#include <net80211/ieee80211.h>
#include <net80211/i... | 3,032 | 21.138686 | 76 | c |
hostap | hostap-master/src/drivers/driver_nl80211.h | /*
* Driver interaction with Linux nl80211/cfg80211 - definitions
* Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi>
* Copyright (c) 2003-2004, Instant802 Networks, Inc.
* Copyright (c) 2005-2006, Devicescape Software, Inc.
* Copyright (c) 2007, Johannes Berg <johannes@sipsolutions.net>
* Copyright (c) 2009-2010,... | 9,434 | 29.633117 | 79 | h |
hostap | hostap-master/src/drivers/android_drv.h | /*
* Android driver interface
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef ANDROID_DRV_H
#define ANDROID_DRV_H
#define WPA_EVENT_DRIVER_STATE "CTRL-EVENT-DRIVER-STATE "
#define MAX_SSID_LEN 32
#define MAX_DRV_CMD_SIZE 248
#define DRV_NUMBER... | 2,046 | 34.912281 | 79 | h |
hostap | hostap-master/src/drivers/driver_nl80211_android.c | /*
* Driver interaction with Linux nl80211/cfg80211 - Android specific
* Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi>
* Copyright (c) 2007, Johannes Berg <johannes@sipsolutions.net>
* Copyright (c) 2009-2010, Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* Se... | 4,599 | 23.08377 | 78 | c |
hostap | hostap-master/src/tls/tlsv1_server_i.h | /*
* TLSv1 server - internal structures
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TLSV1_SERVER_I_H
#define TLSV1_SERVER_I_H
struct tlsv1_server {
enum {
CLIENT_HELLO, SERVER_HELLO, SERV... | 2,308 | 25.238636 | 78 | h |
hostap | hostap-master/src/tls/rsa.c | /*
* RSA
* Copyright (c) 2006-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* 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; /* w... | 8,972 | 22.864362 | 75 | c |
hostap | hostap-master/src/tls/bignum.h | /*
* Big number math
* Copyright (c) 2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef BIGNUM_H
#define BIGNUM_H
struct bignum;
struct bignum * bignum_init(void);
void bignum_deinit(struct bignum *n);
size_t bignum_g... | 1,152 | 33.939394 | 74 | h |
hostap | hostap-master/src/tls/pkcs1.h | /*
* PKCS #1 (RSA Encryption)
* Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef PKCS1_H
#define PKCS1_H
struct crypto_public_key;
struct asn1_oid;
int pkcs1_encrypt(int block_type, struct crypto_... | 872 | 28.1 | 71 | h |
hostap | hostap-master/src/tls/tlsv1_common.c | /*
* TLSv1 common routines
* Copyright (c) 2006-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/md5.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
#include ... | 15,081 | 27.782443 | 105 | c |
hostap | hostap-master/src/tls/tlsv1_client_ocsp.c | /*
* TLSv1 client - OCSP
* Copyright (c) 2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* 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"
#incl... | 23,678 | 28.451493 | 108 | c |
hostap | hostap-master/src/tls/x509v3.h | /*
* X.509v3 certificate parsing and processing
* Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef X509V3_H
#define X509V3_H
#include "asn1.h"
struct x509_algorithm_identifier {
struct asn1_oid o... | 4,844 | 29.664557 | 76 | h |
hostap | hostap-master/src/tls/tlsv1_client.h | /*
* TLS v1.0/v1.1/v1.2 client (RFC 2246, RFC 4346, RFC 5246)
* Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TLSV1_CLIENT_H
#define TLSV1_CLIENT_H
#include "tlsv1_cred.h"
struct tlsv1_client;
... | 2,402 | 37.142857 | 80 | h |
hostap | hostap-master/src/tls/tlsv1_client.c | /*
* TLS v1.0/v1.1/v1.2 client (RFC 2246, RFC 4346, RFC 5246)
* Copyright (c) 2006-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#... | 23,407 | 25.905747 | 79 | c |
hostap | hostap-master/src/tls/tlsv1_server.h | /*
* TLS v1.0/v1.1/v1.2 server (RFC 2246, RFC 4346, RFC 5246)
* Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TLSV1_SERVER_H
#define TLSV1_SERVER_H
#include "tlsv1_cred.h"
struct tlsv1_server;
... | 2,059 | 37.148148 | 80 | h |
hostap | hostap-master/src/tls/pkcs1.c | /*
* PKCS #1 (RSA Encryption)
* Copyright (c) 2006-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/crypto.h"
#include "rsa.h"
#include "asn1.h"
#include "pkcs1.h"
... | 7,454 | 22.224299 | 83 | c |
hostap | hostap-master/src/tls/pkcs8.c | /*
* PKCS #8 (Private-key information syntax)
* Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "asn1.h"
#include "bignum.h"
#include "rsa.h"
#include "p... | 5,214 | 26.739362 | 72 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.