Offline Transaction Signing (OTS) 0.1.0
Loading...
Searching...
No Matches
seed-polyseed-internal.hpp File Reference

Internal polyseed functions, to not expose polyseed internals to the library user. More...

#include <polyseed.h>
#include "../../external/polyseed/src/features.h"
#include "../../external/polyseed/src/birthday.h"
#include "../../external/polyseed/src/storage.h"
#include "../../external/polyseed/src/gf.h"
Include dependency graph for seed-polyseed-internal.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ots
 The library exists complete only in this namespace.
 

Functions

void ots::onPolyseedStatusNotOkThrowException (const polyseed_status &status)
 Translates status to ots::exception's.
 
void ots::injectPolyseedDependency ()
 makes sure dependencies are injected before first use, injection happens only once - first time.
 
void ots::polyseed_random_wrapper (void *result, size_t n)
 provides random bytes to polyseed library
 
void ots::polyseed_pbkdf2_wrapper (const uint8_t *pw, size_t pwlen, const uint8_t *salt, size_t saltlen, uint64_t iterations, uint8_t *key, size_t keylen)
 provides pbkdf2-sha256 to polyseed library
 
void ots::polyseed_memwipe_wrapper (void *const ptr, const size_t len)
 provides memory wipe to polyseed library
 
size_t ots::utf8_nfc (const char *str, polyseed_str norm)
 provides utf8 normalization to polyseed library at the moment utf8proc is used, because it seems that boost::locale will drag more dependencies with in.
 
size_t ots::utf8_nfkd (const char *str, polyseed_str norm)
 provides utf8 normalization to polyseed library, uses also utf8proc
 

Detailed Description

Internal polyseed functions, to not expose polyseed internals to the library user.