]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/crypt-util.h
util: split out memcmp()/memset() related calls into memory-util.[ch]
[thirdparty/systemd.git] / src / shared / crypt-util.h
CommitLineData
294bd454 1/* SPDX-License-Identifier: LGPL-2.1+ */
f18edd8a 2#pragma once
294bd454
ZJS
3
4#if HAVE_LIBCRYPTSETUP
5#include <libcryptsetup.h>
6
7#include "macro.h"
8
c116b035
ZJS
9/* libcryptsetup define for any LUKS version, compatible with libcryptsetup 1.x */
10#ifndef CRYPT_LUKS
11#define CRYPT_LUKS NULL
12#endif
13
2c65512e
YW
14#ifndef CRYPT_ACTIVATE_SAME_CPU_CRYPT
15#define CRYPT_ACTIVATE_SAME_CPU_CRYPT (1 << 6)
16#endif
17
18#ifndef CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS
19#define CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS (1 << 7)
20#endif
21
294bd454 22DEFINE_TRIVIAL_CLEANUP_FUNC(struct crypt_device *, crypt_free);
691c2e2e
ZJS
23
24void cryptsetup_log_glue(int level, const char *msg, void *usrptr);
294bd454 25#endif