KeyRecover

Key-pair recovery generator

Constructors

this
this(HashNet net)
this
this(HashNet net, Document doc)
this
this(HashNet net, RecoverGenerator generator)

Members

Functions

createKey
void createKey(const(string[]) questions, const(char[][]) answers, uint confidence)

Creates the key-pair

createKey
void createKey(const(ubyte[][]) A, uint confidence)

Ditto except is uses a list of hashes This can be used of something else than quiz is used

findSecret
bool findSecret(ubyte[] R, const(string[]) questions, const(char[][]) answers)

Generate the private-key from quiz (correct answers)

findSecret
bool findSecret(ubyte[] R, Buffer[] A)

Recover the private-key from the hash-list A The hash-list is usually the question+answers hash

quiz
immutable(ubyte)[][] quiz(const(string[]) questions, const(char[][]) answers)

Generates the quiz hash of the from a list of questions and answers

quizSeed
void quizSeed(const(ubyte[]) R, const(ubyte[][]) A, uint confidence)

Generates the quiz seed values from the privat key R and the quiz list

toDoc
const(Document) toDoc()

Manifest constants

MAX_QUESTION
enum MAX_QUESTION;
Undocumented in source.
MAX_SEEDS
enum MAX_SEEDS;
Undocumented in source.

Static functions

iterateSeeds
void iterateSeeds(uint M, uint N, void delegate(scope const(uint[]) indices) @(safe) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
numberOfSeeds
uint numberOfSeeds(uint M, uint N)

Total number of combination of possible seed value

Variables

generator
RecoverGenerator generator;
Undocumented in source.
net
HashNet net;
Undocumented in source.

Meta