mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add second german mnemonic set with fixed casing
This commit is contained in:
parent
f01cf73302
commit
8502de4b1a
11
src/cpp/Crypto/mnemonic_german2.h
Normal file
11
src/cpp/Crypto/mnemonic_german2.h
Normal file
File diff suppressed because one or more lines are too long
@ -1,5 +1,6 @@
|
||||
#include "ServerConfig.h"
|
||||
#include "Crypto/mnemonic_german.h"
|
||||
#include "Crypto/mnemonic_german2.h"
|
||||
#include "Crypto/mnemonic_bip0039.h"
|
||||
#include "Crypto/DRRandom.h"
|
||||
#include "sodium.h"
|
||||
@ -159,6 +160,17 @@ namespace ServerConfig {
|
||||
printf("%d: %s\n", iWord, g_Mnemonic_WordLists[i].getWord(iWord));
|
||||
}
|
||||
break;
|
||||
case MNEMONIC_GRADIDO_BOOK_GERMAN_RANDOM_ORDER_FIXED_CASES:
|
||||
iResult = g_Mnemonic_WordLists[i].init(populate_mnemonic_german, g_mnemonic_german2_original_size, g_mnemonic_german2_compressed_size);
|
||||
if (iResult) {
|
||||
printf("[%s] error init german mnemonic set 2, error nr: %d\n", __FUNCTION__, iResult);
|
||||
return false;
|
||||
}
|
||||
g_Mnemonic_WordLists[i].printToFile("de_words2.txt");
|
||||
for (int iWord = 750; iWord < 755; iWord++) {
|
||||
printf("%d: %s\n", iWord, g_Mnemonic_WordLists[i].getWord(iWord));
|
||||
}
|
||||
break;
|
||||
case MNEMONIC_BIP0039_SORTED_ORDER:
|
||||
iResult = g_Mnemonic_WordLists[i].init(populate_mnemonic_bip0039, g_mnemonic_bip0039_original_size, g_mnemonic_bip0039_compressed_size);
|
||||
if (iResult) {
|
||||
|
||||
@ -18,6 +18,7 @@ namespace ServerConfig {
|
||||
|
||||
enum Mnemonic_Types {
|
||||
MNEMONIC_GRADIDO_BOOK_GERMAN_RANDOM_ORDER,
|
||||
MNEMONIC_GRADIDO_BOOK_GERMAN_RANDOM_ORDER_FIXED_CASES,
|
||||
MNEMONIC_BIP0039_SORTED_ORDER,
|
||||
MNEMONIC_MAX
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user