|
Electroneum
|
#include <stddef.h>#include <iostream>#include <boost/utility/value_init.hpp>#include "common/pod-class.h"#include "generic-ops.h"#include "hex.h"#include "span.h"#include "hash-ops.h"

Go to the source code of this file.
Classes | |
| struct | crypto::is_blob_type< T > |
| a descriptor for dispatching serialize More... | |
| struct | crypto::has_free_serializer< T > |
| a descriptor for dispatching serialize More... | |
| struct | crypto::is_basic_type< T > |
| a descriptor for dispatching serialize More... | |
| struct | crypto::is_basic_type< std::pair< F, S > > |
| struct | crypto::is_basic_type< std::string > |
| struct | crypto::serializer< Archive, T > |
| ... wouldn't a class be better? More... | |
| union | crypto::hash_state |
Namespaces | |
| namespace | crypto |
| crypto namespace. | |
| namespace | crypto::serialization |
| namespace | detail |
| declaration and default definition for the functions used the API | |
| namespace | crypto::serialization::detail |
Enumerations | |
| enum | { crypto::HASH_SIZE = 32 , crypto::HASH_DATA_AREA = 136 } |
Functions | |
| template<class Archive, class T> | |
| bool | crypto::do_serialize (Archive &ar, T &v) |
| just calls the serialize function defined for ar and v... | |
| template<class Archive> | |
| bool | crypto::do_serialize (Archive &ar, bool &v) |
| template<typename T> | |
| void | crypto::serialization::detail::prepare_custom_vector_serialization (size_t size, std::vector< T > &vec, const boost::mpl::bool_< true > &) |
| template<typename T> | |
| void | crypto::serialization::detail::prepare_custom_vector_serialization (size_t size, std::vector< T > &vec, const boost::mpl::bool_< false > &) |
| template<typename T> | |
| void | crypto::serialization::detail::prepare_custom_deque_serialization (size_t size, std::deque< T > &vec, const boost::mpl::bool_< true > &) |
| template<typename T> | |
| void | crypto::serialization::detail::prepare_custom_deque_serialization (size_t size, std::deque< T > &vec, const boost::mpl::bool_< false > &) |
| template<class Stream> | |
| bool | crypto::serialization::detail::do_check_stream_state (Stream &s, boost::mpl::bool_< true >, bool noeof) |
| template<class Stream> | |
| bool | crypto::serialization::detail::do_check_stream_state (Stream &s, boost::mpl::bool_< false >, bool noeof) |
| template<class Archive> | |
| bool | crypto::serialization::check_stream_state (Archive &ar, bool noeof=false) |
| template<class Archive, class T> | |
| bool | crypto::serialization::serialize (Archive &ar, T &v) |
| template<class Archive, class T> | |
| bool | crypto::serialization::serialize_noeof (Archive &ar, T &v) |
| template<template< bool > class Archive> | |
| bool | crypto::do_serialize (Archive< false > &ar, std::string &str) |
| template<template< bool > class Archive> | |
| bool | crypto::do_serialize (Archive< true > &ar, std::string &str) |
| void | crypto::hash_permutation (union hash_state *state) |
| void | crypto::hash_process (union hash_state *state, const uint8_t *buf, size_t count) |
| void | crypto::cn_fast_hash (const void *data, size_t length, char *hash) |
| void | crypto::cn_slow_hash (const void *data, size_t length, char *hash, int variant, int prehashed, uint64_t height) |
| void | crypto::hash_extra_blake (const void *data, size_t length, char *hash) |
| void | crypto::hash_extra_groestl (const void *data, size_t length, char *hash) |
| void | crypto::hash_extra_jh (const void *data, size_t length, char *hash) |
| void | crypto::hash_extra_skein (const void *data, size_t length, char *hash) |
| void | crypto::tree_hash (const char(*hashes)[HASH_SIZE], size_t count, char *root_hash) |
| void | crypto::cn_fast_hash (const void *data, std::size_t length, hash &hash) |
| hash | crypto::cn_fast_hash (const void *data, std::size_t length) |
| void | crypto::cn_slow_hash (const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0) |
| void | crypto::cn_slow_hash_prehashed (const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0) |
| void | crypto::tree_hash (const hash *hashes, std::size_t count, hash &root_hash) |
| std::ostream & | crypto::operator<< (std::ostream &o, const crypto::hash &v) |
| std::ostream & | crypto::operator<< (std::ostream &o, const crypto::hash8 &v) |
| std::ostream & | crypto::operator<< (std::ostream &o, const crypto::hash64 &v) |
Variables | |
| crypto::PUSH_WARNINGS | |
| POD_CLASS | crypto::hash |
| POD_CLASS | crypto::hash8 |
| POD_CLASS | crypto::hash64 |
| #define _W64 |
| #define BEGIN_SERIALIZE | ( | ) |
| #define BEGIN_SERIALIZE_OBJECT | ( | ) |
| #define BIG_ENDIAN 4321 |
| #define BLOB_SERIALIZER | ( | T | ) |
| #define BYTE_ORDER LITTLE_ENDIAN |
| #define DISABLE_CLANG_WARNING | ( | w | ) |
| #define DISABLE_GCC_AND_CLANG_WARNING | ( | w | ) |
| #define DISABLE_GCC_WARNING DISABLE_GCC_AND_CLANG_WARNING |
| #define DISABLE_VS_WARNINGS | ( | w | ) |
| #define END_SERIALIZE | ( | ) |
| #define false 0 |
| #define FIELD | ( | f | ) |
| #define FIELD_N | ( | t, | |
| f ) |
| #define FIELDS | ( | f | ) |
| #define FREE_SERIALIZER | ( | T | ) |
| #define IDENT32 | ( | x | ) |
| #define IDENT64 | ( | x | ) |
| #define INT16_C | ( | val | ) |
| #define INT16_MAX _I16_MAX |
| #define INT16_MIN ((int16_t)_I16_MIN) |
| #define INT32_C | ( | val | ) |
| #define INT32_MAX _I32_MAX |
| #define INT32_MIN ((int32_t)_I32_MIN) |
| #define INT64_C | ( | val | ) |
| #define INT64_MAX _I64_MAX |
| #define INT64_MIN ((int64_t)_I64_MIN) |
| #define INT8_C | ( | val | ) |
| #define INT8_MAX _I8_MAX |
| #define INT8_MIN ((int8_t)_I8_MIN) |
| #define INT_FAST16_MAX INT16_MAX |
| #define INT_FAST16_MIN INT16_MIN |
| #define INT_FAST32_MAX INT32_MAX |
| #define INT_FAST32_MIN INT32_MIN |
| #define INT_FAST64_MAX INT64_MAX |
| #define INT_FAST64_MIN INT64_MIN |
| #define INT_FAST8_MAX INT8_MAX |
| #define INT_FAST8_MIN INT8_MIN |
| #define INT_LEAST16_MAX INT16_MAX |
| #define INT_LEAST16_MIN INT16_MIN |
| #define INT_LEAST32_MAX INT32_MAX |
| #define INT_LEAST32_MIN INT32_MIN |
| #define INT_LEAST64_MAX INT64_MAX |
| #define INT_LEAST64_MIN INT64_MIN |
| #define INT_LEAST8_MAX INT8_MAX |
| #define INT_LEAST8_MIN INT8_MIN |
| #define INTMAX_C INT64_C |
| #define INTMAX_MAX INT64_MAX |
| #define INTMAX_MIN INT64_MIN |
| #define INTPTR_MAX INT32_MAX |
| #define INTPTR_MIN INT32_MIN |
| #define LITTLE_ENDIAN 1234 |
| #define mem_inplace_swap32be mem_inplace_swap32 |
| #define mem_inplace_swap32le mem_inplace_ident |
| #define mem_inplace_swap64be mem_inplace_swap64 |
| #define mem_inplace_swap64le mem_inplace_ident |
| #define memcpy_swap32be memcpy_swap32 |
| #define memcpy_swap32le memcpy_ident32 |
| #define memcpy_swap64be memcpy_swap64 |
| #define memcpy_swap64le memcpy_ident64 |
| #define PDP_ENDIAN 3412 |
| #define POP_WARNINGS _Pragma("GCC diagnostic pop") |
| #define PREPARE_CUSTOM_DEQUE_SERIALIZATION | ( | size, | |
| vec ) |
| #define PREPARE_CUSTOM_VECTOR_SERIALIZATION | ( | size, | |
| vec ) |
| #define PTRDIFF_MAX _I32_MAX |
| #define PTRDIFF_MIN _I32_MIN |
| #define PUSH_WARNINGS _Pragma("GCC diagnostic push") |
| #define SIG_ATOMIC_MAX INT_MAX |
| #define SIG_ATOMIC_MIN INT_MIN |
| #define SIZE_MAX _UI32_MAX |
| #define SWAP32 | ( | x | ) |
| #define SWAP32BE SWAP32 |
| #define swap32be swap32 |
| #define SWAP32LE IDENT32 |
| #define swap32le ident32 |
| #define SWAP64 | ( | x | ) |
| #define SWAP64BE SWAP64 |
| #define swap64be swap64 |
| #define SWAP64LE IDENT64 |
| #define swap64le ident64 |
| #define true 1 |
| #define UINT16_C | ( | val | ) |
| #define UINT16_MAX _UI16_MAX |
| #define UINT32_C | ( | val | ) |
| #define UINT32_MAX _UI32_MAX |
| #define UINT64_C | ( | val | ) |
| #define UINT64_MAX _UI64_MAX |
| #define UINT8_C | ( | val | ) |
| #define UINT8_MAX _UI8_MAX |
| #define UINT_FAST16_MAX UINT16_MAX |
| #define UINT_FAST32_MAX UINT32_MAX |
| #define UINT_FAST64_MAX UINT64_MAX |
| #define UINT_FAST8_MAX UINT8_MAX |
| #define UINT_LEAST16_MAX UINT16_MAX |
| #define UINT_LEAST32_MAX UINT32_MAX |
| #define UINT_LEAST64_MAX UINT64_MAX |
| #define UINT_LEAST8_MAX UINT8_MAX |
| #define UINTMAX_C UINT64_C |
| #define UINTMAX_MAX UINT64_MAX |
| #define UINTPTR_MAX UINT32_MAX |
| #define UNUSED |
| #define VALUE | ( | f | ) |
| #define VARIANT_TAG | ( | Archive, | |
| Type, | |||
| Tag ) |
| #define VARINT_FIELD | ( | f | ) |
| #define VARINT_FIELD_N | ( | t, | |
| f ) |
| #define WCHAR_MAX _UI16_MAX |
| #define WCHAR_MIN 0 |
| #define WINT_MAX _UI16_MAX |
| #define WINT_MIN 0 |