DiceKeys Seeded Cryptography Library
|
4 #pragma warning( disable : 26812 )
6 #include "github-com-nlohmann-json/json.hpp"
8 #include "./externally-generated/derivation-parameters.hpp"
11 const size_t BytesPerWordOfPassword = 8;
30 nlohmann::json recipeExplicit;
65 RecipeJson::WordList
wordList = RecipeJson::WordList::_INVALID_WORD_LIST_;
96 const RecipeJson::type typeRequired =
97 RecipeJson::type::_INVALID_TYPE_
108 const char indent_char =
' '
152 const std::string& seedString,
153 const std::string&
recipe,
154 const RecipeJson::type typeRequired = RecipeJson::type::_INVALID_TYPE_,
155 const size_t lengthInBytesRequired = 0
196 const std::string& seedString,
197 const RecipeJson::type defaultType =
198 RecipeJson::type::_INVALID_TYPE_
A byte array containing a length and a pointer to memory (the data field), which ensures data is eras...
Definition: sodium-buffer.hpp:27
unsigned int lengthInBits
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:53
unsigned int lengthInBytes
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:49
const std::string recipeWithAllOptionalParametersSpecified(int indent=-1, const char indent_char=' ') const
Return JSON with default parameters filled in.
Definition: recipe.cpp:226
Recipe(const std::string &recipe, const RecipeJson::type typeRequired=RecipeJson::type::_INVALID_TYPE_)
Definition: recipe.cpp:34
size_t hashFunctionMemoryPasses
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:73
RecipeJson::Algorithm algorithm
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:35
size_t lengthInChars
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:57
RecipeJson::type type
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:44
const std::string recipe
The original JSON string used to construct this object.
Definition: recipe.hpp:39
size_t hashFunctionMemoryLimitInBytes
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:69
static const SodiumBuffer derivePrimarySecret(const std::string &seedString, const std::string &recipe, const RecipeJson::type typeRequired=RecipeJson::type::_INVALID_TYPE_, const size_t lengthInBytesRequired=0)
This function derives the master secrets for SymmetricKey, for the SealingKey and UnsealingKey pair,...
Definition: recipe.cpp:312
This class parses a recipe string on construction and then exposes the Recipe JSON Universal Fields a...
Definition: recipe.hpp:23
unsigned int lengthInWords
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:61
RecipeJson::WordList wordList
Mirroring the JSON field in Recipe JSON Universal Fields.
Definition: recipe.hpp:65
RecipeJson::HashFunction hashFunction
The name of the hash function specified in the Recipe JSON Universal Fields.
Definition: recipe.hpp:78