|
MCEL: Merkle-Chaining Event Ledger 1.0.0.0a (A1)
A post-quantum secure block-chain ledger system
|
MCEL domain support header. More...
#include "mcelcommon.h"Go to the source code of this file.
Typedefs | |
| typedef MCEL_EXPORT_API enum mcel_domain_types | mcel_domain_types |
Enumerations | |
| enum | mcel_domain_types { mcel_domain_none = 0U , mcel_domain_block = 1U , mcel_domain_checkpoint = 2U , mcel_domain_ciphertext = 3U , mcel_domain_node = 4U , mcel_domain_plaintext = 5U , mcel_domain_record = 6U , mcel_domain_anchor = 7U } |
| The MCEL hash domain identifiers used to separate commitment types. More... | |
Functions | |
| MCEL_EXPORT_API const char * | mcel_domain_to_name (mcel_domain_types domain) |
| Returns the string representation of the domain types enumeration. | |
| MCEL_EXPORT_API bool | mcel_domain_hash_message (uint8_t *output, mcel_domain_types domain, const uint8_t *msg, size_t msglen) |
| Compute a 32-byte MCEL domain-separated digest using cSHAKE-256. | |
MCEL domain support header.
| enum mcel_domain_types |
The MCEL hash domain identifiers used to separate commitment types.
| MCEL_EXPORT_API bool mcel_domain_hash_message | ( | uint8_t * | output, |
| mcel_domain_types | domain, | ||
| const uint8_t * | msg, | ||
| size_t | msglen ) |
Compute a 32-byte MCEL domain-separated digest using cSHAKE-256.
| output | A pointer to the output hash array of size MCEL_BLOCK_HASH_SIZE. |
| domain | The MCEL domain identifier. |
| msg | [const] A pointer to the message bytes. |
| msglen | The length of the message in bytes. |
| MCEL_EXPORT_API const char * mcel_domain_to_name | ( | mcel_domain_types | domain | ) |
Returns the string representation of the domain types enumeration.
| domain | The domain enumeration member. |