![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <crypto/chacha20.h>#include <test/fuzz/FuzzedDataProvider.h>#include <test/fuzz/fuzz.h>#include <test/fuzz/util.h>#include <cstdint>#include <vector>Go to the source code of this file.
Classes | |
| struct | ECRYPT_ctx |
Macros | |
| #define | U8C(v) |
| #define | U32C(v) |
| #define | U8V(v) |
| #define | U32V(v) |
| #define | ROTL32(v, n) |
| #define | U8TO32_LITTLE(p) |
| #define | U32TO8_LITTLE(p, v) |
| #define | ROTATE(v, c) |
| #define | XOR(v, w) |
| #define | PLUS(v, w) |
| #define | PLUSONE(v) |
| #define | QUARTERROUND(a, b, c, d) |
Typedefs | |
| typedef unsigned int | u32 |
| typedef unsigned char | u8 |
Functions | |
| void | ECRYPT_keysetup (ECRYPT_ctx *ctx, const u8 *key, u32 keysize, u32 ivsize) |
| void | ECRYPT_ivsetup (ECRYPT_ctx *ctx, const u8 *iv) |
| void | ECRYPT_encrypt_bytes (ECRYPT_ctx *ctx, const u8 *plaintext, u8 *ciphertext, u32 msglen) |
| void | ECRYPT_keystream_bytes (ECRYPT_ctx *ctx, u8 *keystream, u32 length) |
| FUZZ_TARGET (crypto_diff_fuzz_chacha20) | |
Variables | |
| static const char | sigma [] = "expand 32-byte k" |
| static const char | tau [] = "expand 16-byte k" |
| #define PLUS | ( | v, | |
| w ) |
Definition at line 83 of file crypto_diff_fuzz_chacha20.cpp.
| #define PLUSONE | ( | v | ) |
Definition at line 84 of file crypto_diff_fuzz_chacha20.cpp.
| #define QUARTERROUND | ( | a, | |
| b, | |||
| c, | |||
| d ) |
Definition at line 86 of file crypto_diff_fuzz_chacha20.cpp.
| #define ROTATE | ( | v, | |
| c ) |
Definition at line 81 of file crypto_diff_fuzz_chacha20.cpp.
| #define ROTL32 | ( | v, | |
| n ) |
Definition at line 29 of file crypto_diff_fuzz_chacha20.cpp.
| #define U32C | ( | v | ) |
Definition at line 24 of file crypto_diff_fuzz_chacha20.cpp.
| #define U32TO8_LITTLE | ( | p, | |
| v ) |
| #define U32V | ( | v | ) |
Definition at line 27 of file crypto_diff_fuzz_chacha20.cpp.
| #define U8C | ( | v | ) |
Definition at line 23 of file crypto_diff_fuzz_chacha20.cpp.
| #define U8TO32_LITTLE | ( | p | ) |
| #define U8V | ( | v | ) |
Definition at line 26 of file crypto_diff_fuzz_chacha20.cpp.
| #define XOR | ( | v, | |
| w ) |
Definition at line 82 of file crypto_diff_fuzz_chacha20.cpp.
| typedef unsigned int u32 |
Definition at line 20 of file crypto_diff_fuzz_chacha20.cpp.
| typedef unsigned char u8 |
Definition at line 21 of file crypto_diff_fuzz_chacha20.cpp.
| void ECRYPT_encrypt_bytes | ( | ECRYPT_ctx * | ctx, |
| const u8 * | plaintext, | ||
| u8 * | ciphertext, | ||
| u32 | msglen ) |
Definition at line 127 of file crypto_diff_fuzz_chacha20.cpp.
| void ECRYPT_ivsetup | ( | ECRYPT_ctx * | ctx, |
| const u8 * | iv ) |
Definition at line 119 of file crypto_diff_fuzz_chacha20.cpp.
| void ECRYPT_keysetup | ( | ECRYPT_ctx * | ctx, |
| const u8 * | key, | ||
| u32 | keysize, | ||
| u32 | ivsize ) |
Definition at line 95 of file crypto_diff_fuzz_chacha20.cpp.
| void ECRYPT_keystream_bytes | ( | ECRYPT_ctx * | ctx, |
| u8 * | keystream, | ||
| u32 | length ) |
Definition at line 260 of file crypto_diff_fuzz_chacha20.cpp.
| FUZZ_TARGET | ( | crypto_diff_fuzz_chacha20 | ) |
Definition at line 268 of file crypto_diff_fuzz_chacha20.cpp.
|
static |
Definition at line 92 of file crypto_diff_fuzz_chacha20.cpp.
|
static |
Definition at line 93 of file crypto_diff_fuzz_chacha20.cpp.