20 #ifndef RIPPLE_CRYPTO_RFC1751_H_INCLUDED
21 #define RIPPLE_CRYPTO_RFC1751_H_INCLUDED
49 extract(
char const* s,
int start,
int length);
53 insert(
char* s,
int x,
int start,
int length);
static void standard(std::string &strWord)
static void btoe(std::string &strHuman, std::string const &strData)
static int etob(std::string &strData, std::vector< std::string > vsHuman)
static int getKeyFromEnglish(std::string &strKey, std::string const &strHuman)
Convert words separated by spaces into a 128 bit key in big-endian format.
static void insert(char *s, int x, int start, int length)
static unsigned long extract(char const *s, int start, int length)
static void getEnglishFromKey(std::string &strHuman, std::string const &strKey)
Convert to human from a 128 bit key in big-endian format.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
static int wsrch(std::string const &strWord, int iMin, int iMax)
static char const * s_dictionary[]
static std::string getWordFromBlob(void const *blob, size_t bytes)
Chooses a single dictionary word from the data.