CHDK_DE Vorschauversion
Trunk Rev. 6014
|
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
#define | host_to_be32(n) __builtin_bswap32(n) |
#define | os_memset memset |
#define | os_memcpy memcpy |
#define | os_strlen strlen |
#define | os_strcpy strcpy |
#define | SHA1_MAC_LEN 20 |
#define | MD5_MAC_LEN 16 |
Typdefinitionen | |
typedef unsigned int | u32 |
typedef unsigned short | u16 |
typedef unsigned char | u8 |
Funktionen | |
void | md5_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
void | hmac_md5_vector (const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
void | hmac_md5 (const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) |
void | pbkdf2_sha1 (const char *passphrase, const char *ssid, size_t ssid_len, int iterations, u8 *buf, size_t buflen) |
hmac_md5 - HMAC-MD5 over data buffer (RFC 2104) : Key for HMAC operations : Length of the key in bytes : Pointers to the data area : Length of the data area : Buffer for the hash (16 bytes)
void hmac_md5_vector | ( | const u8 * | key, |
size_t | key_len, | ||
size_t | num_elem, | ||
const u8 * | addr[], | ||
const size_t * | len, | ||
u8 * | mac | ||
) |
md5_vector - MD5 hash for data vector : Number of elements in the data vector : Pointers to the data areas : Lengths of the data blocks : Buffer for the hash
void pbkdf2_sha1 | ( | const char * | passphrase, |
const char * | ssid, | ||
size_t | ssid_len, | ||
int | iterations, | ||
u8 * | buf, | ||
size_t | buflen | ||
) |
pbkdf2_sha1 - SHA1-based key derivation function (PBKDF2) for IEEE 802.11i : ASCII passphrase : SSID : SSID length in bytes : Number of iterations to run : Buffer for the generated key : Length of the buffer in bytes
This function is used to derive PSK for WPA-PSK. For this protocol, iterations is set to 4096 and buflen to 32. This function is described in IEEE Std 802.11-2004, Clause H.4. The main construction is from PKCS#5 v2.0.
Definiert in Zeile 352 der Datei sha1.c.