]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/home/modhex.h
homed: make it easier to run multiple instances of homed
[thirdparty/systemd.git] / src / home / modhex.h
CommitLineData
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
10extern const char modhex_alphabet[16];
11
12int decode_modhex_char(char x);
13
14int normalize_recovery_key(const char *password, char **ret);