1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

Merge pull request #22 from jhoenicke/master

Make word list const
This commit is contained in:
Pavol Rusnak 2015-02-14 12:38:36 +01:00
commit d814f58a3b
3 changed files with 3 additions and 3 deletions

View File

@ -155,7 +155,7 @@ void mnemonic_to_seed(const char *mnemonic, const char *passphrase, uint8_t seed
pbkdf2_hmac_sha512((const uint8_t *)mnemonic, strlen(mnemonic), salt, saltlen, BIP39_PBKDF2_ROUNDS, seed, 512 / 8, progress_callback);
}
const char **mnemonic_wordlist(void)
const char * const *mnemonic_wordlist(void)
{
return wordlist;
}

View File

@ -36,6 +36,6 @@ int mnemonic_check(const char *mnemonic);
void mnemonic_to_seed(const char *mnemonic, const char *passphrase, uint8_t seed[512 / 8], void (*progress_callback)(uint32_t current, uint32_t total));
const char **mnemonic_wordlist(void);
const char * const *mnemonic_wordlist(void);
#endif

View File

@ -21,7 +21,7 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
const char *wordlist[] = {
const char * const wordlist[] = {
"abandon",
"ability",
"able",