]>
Commit | Line | Data |
---|---|---|
aecbc87d LP |
1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
2 | #pragma once | |
3 | ||
4 | /* 256 bit keys = 32 bytes */ | |
5 | #define MODHEX_RAW_LENGTH 32 | |
6 | ||
7 | /* Formatted as sequences of 64 modhex characters, with dashes inserted after multiples of 8 chars (incl. trailing NUL) */ | |
8 | #define MODHEX_FORMATTED_LENGTH (MODHEX_RAW_LENGTH*2/8*9) | |
9 | ||
10 | extern const char modhex_alphabet[16]; | |
11 | ||
12 | int decode_modhex_char(char x); | |
13 | ||
14 | int normalize_recovery_key(const char *password, char **ret); |