#include <stdint.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
#define | CONFIG_CRYPTO_INTERNAL |
#define | TEST_FAIL() |
#define | MSG_DEBUG |
#define | wpa_hexdump(x, args...) |
#define | wpa_hexdump_key(x, args...) |
#define | wpa_printf(x, args...) |
#define | os_memcpy(x, y, z) |
#define | os_memcmp(x, y, z) |
#define | os_memset(x, y, z) |
#define | os_malloc(x) |
#define | os_free(x) |
#define | os_strlen(x) |
#define | forced_memzero(ptr, len) |
#define | WPA_GET_BE16(a) |
#define | WPA_PUT_BE16(a, val) |
#define | WPA_GET_LE16(a) |
#define | WPA_PUT_LE16(a, val) |
#define | WPA_GET_BE24(a) |
#define | WPA_PUT_BE24(a, val) |
#define | WPA_GET_BE32(a) |
#define | WPA_PUT_BE32(a, val) |
#define | WPA_GET_LE32(a) |
#define | WPA_PUT_LE32(a, val) |
#define | WPA_GET_BE64(a) |
#define | WPA_PUT_BE64(a, val) |
#define | WPA_GET_LE64(a) |
#define | __must_check |
|
typedef uint64_t | u64 |
typedef uint32_t | u32 |
typedef uint16_t | u16 |
typedef uint8_t | u8 |
typedef int64_t | s64 |
typedef int32_t | s32 |
typedef int16_t | s16 |
typedef int8_t | s8 |
◆ __must_check
Referenced by aes_128_cbc_decrypt(), aes_128_cbc_encrypt(), aes_128_ctr_encrypt(), aes_128_eax_decrypt(), aes_128_eax_encrypt(), aes_unwrap(), aes_wrap(), crypto_cipher_decrypt(), crypto_cipher_encrypt(), crypto_global_init(), crypto_mod_exp(), crypto_private_key_decrypt_pkcs1_v15(), crypto_private_key_sign_pkcs1(), crypto_public_key_decrypt_pkcs1(), crypto_public_key_encrypt_pkcs1_v15(), fips186_2_prf(), omac1_aes_128(), omac1_aes_128_vector(), and tls_prf_sha1_md5().
◆ CONFIG_CRYPTO_INTERNAL
#define CONFIG_CRYPTO_INTERNAL |
◆ forced_memzero
#define forced_memzero |
( |
| ptr, |
|
|
| len ) |
Value:
uint8_t len
Definition gsm_04_11.h:0
◆ MSG_DEBUG
◆ os_free
◆ os_malloc
◆ os_memcmp
#define os_memcmp |
( |
| x, |
|
|
| y, |
|
|
| z ) |
◆ os_memcpy
#define os_memcpy |
( |
| x, |
|
|
| y, |
|
|
| z ) |
◆ os_memset
#define os_memset |
( |
| x, |
|
|
| y, |
|
|
| z ) |
◆ os_strlen
◆ TEST_FAIL
◆ WPA_GET_BE16
#define WPA_GET_BE16 |
( |
| a | ) |
|
Value:((
u16) (((a)[0] << 8) | (a)[1]))
uint16_t u16
Definition common.h:26
◆ WPA_GET_BE24
#define WPA_GET_BE24 |
( |
| a | ) |
|
Value: ((((
u32) (a)[0]) << 16) | (((
u32) (a)[1]) << 8) | \
uint32_t u32
Definition common.h:25
◆ WPA_GET_BE32
#define WPA_GET_BE32 |
( |
| a | ) |
|
◆ WPA_GET_BE64
#define WPA_GET_BE64 |
( |
| a | ) |
|
Value: ((((
u64) (a)[0]) << 56) | (((
u64) (a)[1]) << 48) | \
(((
u64) (a)[2]) << 40) | (((
u64) (a)[3]) << 32) | \
(((
u64) (a)[4]) << 24) | (((
u64) (a)[5]) << 16) | \
(((
u64) (a)[6]) << 8) | ((
u64) (a)[7]))
uint64_t u64
Definition common.h:24
◆ WPA_GET_LE16
#define WPA_GET_LE16 |
( |
| a | ) |
|
Value:((
u16) (((a)[1] << 8) | (a)[0]))
◆ WPA_GET_LE32
#define WPA_GET_LE32 |
( |
| a | ) |
|
Value: ((((
u32) (a)[3]) << 24) | (((
u32) (a)[2]) << 16) | \
(((
u32) (a)[1]) << 8) | ((
u32) (a)[0]))
◆ WPA_GET_LE64
#define WPA_GET_LE64 |
( |
| a | ) |
|
Value: ((((
u64) (a)[7]) << 56) | (((
u64) (a)[6]) << 48) | \
(((
u64) (a)[5]) << 40) | (((
u64) (a)[4]) << 32) | \
(((
u64) (a)[3]) << 24) | (((
u64) (a)[2]) << 16) | \
(((
u64) (a)[1]) << 8) | ((
u64) (a)[0]))
◆ wpa_hexdump
#define wpa_hexdump |
( |
| x, |
|
|
| args... ) |
◆ wpa_hexdump_key
#define wpa_hexdump_key |
( |
| x, |
|
|
| args... ) |
◆ wpa_printf
#define wpa_printf |
( |
| x, |
|
|
| args... ) |
◆ WPA_PUT_BE16
#define WPA_PUT_BE16 |
( |
| a, |
|
|
| val ) |
Value: do { \
(a)[0] = ((
u16) (val)) >> 8; \
(a)[1] = ((
u16) (val)) & 0xff; \
} while (0)
◆ WPA_PUT_BE24
#define WPA_PUT_BE24 |
( |
| a, |
|
|
| val ) |
Value: do { \
(a)[0] = (
u8) ((((
u32) (val)) >> 16) & 0xff); \
(a)[1] = (
u8) ((((
u32) (val)) >> 8) & 0xff); \
(a)[2] = (
u8) (((
u32) (val)) & 0xff); \
} while (0)
uint8_t u8
Definition common.h:27
◆ WPA_PUT_BE32
#define WPA_PUT_BE32 |
( |
| a, |
|
|
| val ) |
Value: do { \
(a)[0] = (
u8) ((((
u32) (val)) >> 24) & 0xff); \
(a)[1] = (
u8) ((((
u32) (val)) >> 16) & 0xff); \
(a)[2] = (
u8) ((((
u32) (val)) >> 8) & 0xff); \
(a)[3] = (
u8) (((
u32) (val)) & 0xff); \
} while (0)
Referenced by sha256_done().
◆ WPA_PUT_BE64
#define WPA_PUT_BE64 |
( |
| a, |
|
|
| val ) |
Value: do { \
(a)[0] = (
u8) (((
u64) (val)) >> 56); \
(a)[1] = (
u8) (((
u64) (val)) >> 48); \
(a)[2] = (
u8) (((
u64) (val)) >> 40); \
(a)[3] = (
u8) (((
u64) (val)) >> 32); \
(a)[4] = (
u8) (((
u64) (val)) >> 24); \
(a)[5] = (
u8) (((
u64) (val)) >> 16); \
(a)[6] = (
u8) (((
u64) (val)) >> 8); \
(a)[7] = (
u8) (((
u64) (val)) & 0xff); \
} while (0)
Referenced by sha256_done().
◆ WPA_PUT_LE16
#define WPA_PUT_LE16 |
( |
| a, |
|
|
| val ) |
Value: do { \
(a)[1] = ((
u16) (val)) >> 8; \
(a)[0] = ((
u16) (val)) & 0xff; \
} while (0)
Referenced by sha256_prf().
◆ WPA_PUT_LE32
#define WPA_PUT_LE32 |
( |
| a, |
|
|
| val ) |
Value: do { \
(a)[3] = (
u8) ((((
u32) (val)) >> 24) & 0xff); \
(a)[2] = (
u8) ((((
u32) (val)) >> 16) & 0xff); \
(a)[1] = (
u8) ((((
u32) (val)) >> 8) & 0xff); \
(a)[0] = (
u8) (((
u32) (val)) & 0xff); \
} while (0)
◆ s16
◆ s32
◆ s64
◆ s8
◆ u16
◆ u32
◆ u64
◆ u8