WPA Supplicant / Crypto wrapper for Microsoft CryptoAPI. More...
#include "includes.h"#include <windows.h>#include <wincrypt.h>#include "common.h"#include "crypto.h"
Go to the source code of this file.
Defines | |
| #define | MS_ENH_RSA_AES_PROV "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)" |
| #define | CALG_HMAC (ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_HMAC) |
Functions | |
| int | cryptoapi_hash_vector (ALG_ID alg, size_t hash_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
| int | md4_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
| MD4 hash for data vector. | |
| void | des_encrypt (const u8 *clear, const u8 *key, u8 *cypher) |
| Encrypt one block with DES. | |
WPA Supplicant / Crypto wrapper for Microsoft CryptoAPI.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file crypto_cryptoapi.c.
| void des_encrypt | ( | const u8 * | clear, | |
| const u8 * | key, | |||
| u8 * | cypher | |||
| ) |
Encrypt one block with DES.
| clear | 8 octets (in) | |
| key | 7 octets (in) (no parity bits included) | |
| cypher | 8 octets (out) |
Definition at line 177 of file crypto_cryptoapi.c.

| int md4_vector | ( | size_t | num_elem, | |
| const u8 * | addr[], | |||
| const size_t * | len, | |||
| u8 * | mac | |||
| ) |
MD4 hash for data vector.
| num_elem | Number of elements in the data vector | |
| addr | Pointers to the data areas | |
| len | Lengths of the data blocks | |
| mac | Buffer for the hash |
Definition at line 171 of file crypto_cryptoapi.c.
1.6.1