Offline Transaction Signing (OTS) 0.1.0
Loading...
Searching...
No Matches
seed-polyseed-internal.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <polyseed.h>
4
10#ifdef __cplusplus
11extern "C" {
12#endif
13
23#include "../../external/polyseed/src/features.h" // TODO: do better, it's ugly
24#include "../../external/polyseed/src/birthday.h" // TODO: do better, it's ugly
25#include "../../external/polyseed/src/storage.h" // TODO: do better, it's ugly
26#include "../../external/polyseed/src/gf.h" // TODO: do better, it's ugly
27
28#ifdef __cplusplus
29}
30#endif
31
32namespace ots {
36 void onPolyseedStatusNotOkThrowException(const polyseed_status& status);
37
43
47 void polyseed_random_wrapper(void* result, size_t n);
48
60 const uint8_t* pw, size_t pwlen,
61 const uint8_t* salt, size_t saltlen,
62 uint64_t iterations,
63 uint8_t* key, size_t keylen
64 );
65
75 void polyseed_memwipe_wrapper(void* const ptr, const size_t len);
76
86 size_t utf8_nfc(const char* str, polyseed_str norm);
87
95 size_t utf8_nfkd(const char* str, polyseed_str norm);
96}
The library exists complete only in this namespace.
Definition account.hpp:39
void onPolyseedStatusNotOkThrowException(const polyseed_status &status)
Translates status to ots::exception's.
Definition seed-polyseed.cpp:273
void polyseed_memwipe_wrapper(void *const ptr, const size_t len)
provides memory wipe to polyseed library
Definition seed-polyseed.cpp:336
void 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
Definition seed-polyseed.cpp:319
void injectPolyseedDependency()
makes sure dependencies are injected before first use, injection happens only once - first time.
Definition seed-polyseed.cpp:297
void polyseed_random_wrapper(void *result, size_t n)
provides random bytes to polyseed library
Definition seed-polyseed.cpp:314
size_t utf8_nfc(const char *str, polyseed_str norm)
provides utf8 normalization to polyseed library at the moment utf8proc is used, because it seems that...
Definition seed-polyseed.cpp:340
size_t utf8_nfkd(const char *str, polyseed_str norm)
provides utf8 normalization to polyseed library, uses also utf8proc
Definition seed-polyseed.cpp:352