|
Monero
|
#include <assert.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include "int-util.h"#include "warnings.h"

Go to the source code of this file.
Classes | |
| union | hash_state |
Macros | |
| #define | RX_BLOCK_VERSION 12 |
Enumerations | |
| enum | { HASH_SIZE = 32 , HASH_DATA_AREA = 136 } |
Functions | |
| static void * | padd (void *p, size_t i) |
| static const void * | cpadd (const void *p, size_t i) |
| static void | place_length (uint8_t *buffer, size_t bufsize, size_t length) |
| void | hash_permutation (union hash_state *state) |
| void | hash_process (union hash_state *state, const uint8_t *buf, size_t count) |
| void | cn_fast_hash (const void *data, size_t length, char *hash) |
| void | cn_slow_hash (const void *data, size_t length, char *hash, int variant, int prehashed, uint64_t height) |
| void | hash_extra_blake (const void *data, size_t length, char *hash) |
| void | hash_extra_groestl (const void *data, size_t length, char *hash) |
| void | hash_extra_jh (const void *data, size_t length, char *hash) |
| void | hash_extra_skein (const void *data, size_t length, char *hash) |
| void | tree_hash (const char(*hashes)[HASH_SIZE], size_t count, char *root_hash) |
| void | rx_slow_hash_allocate_state (void) |
| void | rx_slow_hash_free_state (void) |
| uint64_t | rx_seedheight (const uint64_t height) |
| void | rx_seedheights (const uint64_t height, uint64_t *seed_height, uint64_t *next_height) |
| void | rx_slow_hash (const uint64_t mainheight, const uint64_t seedheight, const char *seedhash, const void *data, size_t length, char *hash, int miners, int is_alt) |
| void | rx_reorg (const uint64_t split_height) |
Variables | |
| PUSH_WARNINGS | |
| #define RX_BLOCK_VERSION 12 |
| void cn_fast_hash | ( | const void * | data, |
| size_t | length, | ||
| char * | hash | ||
| ) |
| void cn_slow_hash | ( | const void * | data, |
| size_t | length, | ||
| char * | hash, | ||
| int | variant, | ||
| int | prehashed, | ||
| uint64_t | height | ||
| ) |
|
inlinestatic |
| void hash_extra_blake | ( | const void * | data, |
| size_t | length, | ||
| char * | hash | ||
| ) |
| void hash_extra_groestl | ( | const void * | data, |
| size_t | length, | ||
| char * | hash | ||
| ) |
| void hash_extra_jh | ( | const void * | data, |
| size_t | length, | ||
| char * | hash | ||
| ) |
| void hash_extra_skein | ( | const void * | data, |
| size_t | length, | ||
| char * | hash | ||
| ) |
| void hash_permutation | ( | union hash_state * | state | ) |
| void hash_process | ( | union hash_state * | state, |
| const uint8_t * | buf, | ||
| size_t | count | ||
| ) |
|
inlinestatic |
|
inlinestatic |
| void rx_reorg | ( | const uint64_t | split_height | ) |
| uint64_t rx_seedheight | ( | const uint64_t | height | ) |
| void rx_seedheights | ( | const uint64_t | height, |
| uint64_t * | seed_height, | ||
| uint64_t * | next_height | ||
| ) |
| void rx_slow_hash | ( | const uint64_t | mainheight, |
| const uint64_t | seedheight, | ||
| const char * | seedhash, | ||
| const void * | data, | ||
| size_t | length, | ||
| char * | hash, | ||
| int | miners, | ||
| int | is_alt | ||
| ) |
| void rx_slow_hash_allocate_state | ( | void | ) |
| void rx_slow_hash_free_state | ( | void | ) |
| void tree_hash | ( | const char(*) | hashes[HASH_SIZE], |
| size_t | count, | ||
| char * | root_hash | ||
| ) |
| PUSH_WARNINGS |