This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
void | md4_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
MD4 hash for data vector. | |
void | md5_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
MD5 hash for data vector. | |
void | sha1_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
SHA-1 hash for data vector. | |
void | sha1_transform (u8 *state, const u8 data[64]) |
Perform one SHA-1 transform step. | |
void | des_encrypt (const u8 *clear, const u8 *key, u8 *cypher) |
Encrypt one block with DES. | |
void * | aes_encrypt_init (const u8 *key, size_t len) |
Initialize AES for encryption. | |
void | aes_encrypt (void *ctx, const u8 *plain, u8 *crypt) |
Encrypt one AES block. | |
void | aes_encrypt_deinit (void *ctx) |
Deinitialize AES encryption. | |
void * | aes_decrypt_init (const u8 *key, size_t len) |
Initialize AES for decryption. | |
void | aes_decrypt (void *ctx, const u8 *crypt, u8 *plain) |
Decrypt one AES block. | |
void | aes_decrypt_deinit (void *ctx) |
Deinitialize AES decryption. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
This file defines the cryptographic functions that need to be implemented for wpa_supplicant and hostapd. When TLS is not used, internal implementation of MD5, SHA1, and AES is used and no external libraries are required. When TLS is enabled (e.g., by enabling EAP-TLS or EAP-PEAP), the crypto library used by the TLS implementation is expected to be used for non-TLS needs, too, in order to save space by not implementing these functions twice.
Wrapper code for using each crypto library is in its own file (crypto*.c) and one of these files is build and linked in to provide the functions defined here.
Definition in file crypto.h.
|
Decrypt one AES block.
|
|
Deinitialize AES decryption.
|
|
Initialize AES for decryption.
Definition at line 1084 of file aes.c. Here is the call graph for this function: |
|
Encrypt one AES block.
|
|
Deinitialize AES encryption.
|
|
Initialize AES for encryption.
Definition at line 1059 of file aes.c. Here is the call graph for this function: |
|
Encrypt one block with DES.
|
|
MD4 hash for data vector.
|
|
MD5 hash for data vector.
|
|
Perform one SHA-1 transform step.
|
|
SHA-1 hash for data vector.
|