1e2f32305c
"crypt-util.c" is such a generic name, let's avoid that, in particular as libc's/libcrypt's crypt() function is so generically named too that one might thing this is about that. Let's hence be more precise, and make clear that this is about cryptsetup, and nothing else. We already had cryptsetup-util.[ch] in src/cryptsetup/ doing keyfile management. To avoid the needless confusion, let's rename that file to cryptsetup-keyfile.[ch].
14 lines
345 B
C
14 lines
345 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
#include <inttypes.h>
|
|
#include <sys/types.h>
|
|
|
|
int load_key_file(
|
|
const char *key_file,
|
|
char **search_path,
|
|
size_t key_file_size,
|
|
uint64_t key_file_offset,
|
|
void **ret_key,
|
|
size_t *ret_key_size);
|