1 Star 0 Fork 49

XTStarry / third_party_cryptsetup

forked from OpenHarmony / third_party_cryptsetup
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.h 14.02 KB
一键复制 编辑 原始数据 按行查看 历史
mamingshuai 提交于 2021-03-11 18:37 . update openharmony 1.0.1
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* maximum keyfile size (in KiB) */
#define DEFAULT_KEYFILE_SIZE_MAXKB 8192
/* cipher for loop-AES mode */
#define DEFAULT_LOOPAES_CIPHER "aes"
/* key length in bits for loop-AES mode */
#define DEFAULT_LOOPAES_KEYBITS 256
/* cipher for LUKS1 */
#define DEFAULT_LUKS1_CIPHER "aes"
/* hash function for LUKS1 header */
#define DEFAULT_LUKS1_HASH "sha256"
/* PBKDF2 iteration time for LUKS1 (in ms) */
#define DEFAULT_LUKS1_ITER_TIME 2000
/* key length in bits for LUKS1 */
#define DEFAULT_LUKS1_KEYBITS 256
/* cipher mode for LUKS1 */
#define DEFAULT_LUKS1_MODE "xts-plain64"
/* Argon2 PBKDF iteration time for LUKS2 (in ms) */
#define DEFAULT_LUKS2_ITER_TIME 2000
/* fallback cipher for LUKS2 keyslot (if data encryption is incompatible) */
#define DEFAULT_LUKS2_KEYSLOT_CIPHER "aes-xts-plain64"
/* fallback key size for LUKS2 keyslot (if data encryption is incompatible) */
#define DEFAULT_LUKS2_KEYSLOT_KEYBITS 512
/* default luks2 locking directory permissions */
#define DEFAULT_LUKS2_LOCK_DIR_PERMS 0700
/* path to directory for LUKSv2 locks */
#define DEFAULT_LUKS2_LOCK_PATH "/run/cryptsetup"
/* Argon2 PBKDF memory cost for LUKS2 (in kB) */
#define DEFAULT_LUKS2_MEMORY_KB 1048576
/* Argon2 PBKDF max parallel cost for LUKS2 (if CPUs available) */
#define DEFAULT_LUKS2_PARALLEL_THREADS 4
/* Default PBKDF algorithm (pbkdf2 or argon2i/argon2id) for LUKS2 */
#define DEFAULT_LUKS2_PBKDF "argon2i"
/* default LUKS format version */
#define DEFAULT_LUKS_FORMAT CRYPT_LUKS2
/* maximum keyfile size (in characters) */
#define DEFAULT_PASSPHRASE_SIZE_MAX 512
/* cipher for plain mode */
#define DEFAULT_PLAIN_CIPHER "aes"
/* password hashing function for plain mode */
#define DEFAULT_PLAIN_HASH "ripemd160"
/* key length in bits for plain mode */
#define DEFAULT_PLAIN_KEYBITS 256
/* cipher mode for plain mode */
#define DEFAULT_PLAIN_MODE "cbc-essiv:sha256"
/* default RNG type for key generator */
#define DEFAULT_RNG "/dev/urandom"
/* override default path to directory with systemd temporary files */
#define DEFAULT_TMPFILESDIR ""
/* data block size for verity mode */
#define DEFAULT_VERITY_DATA_BLOCK 4096
/* parity bytes for verity FEC */
#define DEFAULT_VERITY_FEC_ROOTS 2
/* hash function for verity mode */
#define DEFAULT_VERITY_HASH "sha256"
/* hash block size for verity mode */
#define DEFAULT_VERITY_HASH_BLOCK 4096
/* salt size for verity mode */
#define DEFAULT_VERITY_SALT_SIZE 32
/* Enable using of kernel userspace crypto */
#define ENABLE_AF_ALG 1
/* Enable FIPS mode restrictions */
/* #undef ENABLE_FIPS */
/* XTS mode - double default LUKS keysize if needed */
#define ENABLE_LUKS_ADJUST_XTS_KEYSIZE 1
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#define ENABLE_NLS 1
/* Enable password quality checking using passwdqc library */
/* #undef ENABLE_PASSWDQC */
/* Enable password quality checking using pwquality library */
/* #undef ENABLE_PWQUALITY */
/* Requested gcrypt version */
/* #undef GCRYPT_REQ_VERSION */
/* Define to 1 if you have the <argon2.h> header file. */
/* #undef HAVE_ARGON2_H */
/* Define to 1 to use blkid for detection of disk signatures. */
/* #undef HAVE_BLKID */
/* Define to 1 if you have the <blkid/blkid.h> header file. */
#define HAVE_BLKID_BLKID_H 1
/* Define to 1 to use blkid_probe_step_back. */
#define HAVE_BLKID_STEP_BACK 1
/* Define to 1 to use blkid_do_wipe. */
#define HAVE_BLKID_WIPE 1
/* Define to 1 if you have the <byteswap.h> header file. */
#define HAVE_BYTESWAP_H 1
/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the
CoreFoundation framework. */
/* #undef HAVE_CFLOCALECOPYCURRENT */
/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in
the CoreFoundation framework. */
/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
/* Define to 1 if you have the `clock_gettime' function. */
#define HAVE_CLOCK_GETTIME 1
/* Define to 1 if you have the <ctype.h> header file. */
#define HAVE_CTYPE_H 1
/* Define if the GNU dcgettext() function is already present or preinstalled.
*/
#define HAVE_DCGETTEXT 1
/* Define to 1 if you have the declaration of `blkid_do_probe', and to 0 if
you don't. */
#define HAVE_DECL_BLKID_DO_PROBE 1
/* Define to 1 if you have the declaration of `blkid_do_safeprobe', and to 0
if you don't. */
#define HAVE_DECL_BLKID_DO_SAFEPROBE 1
/* Define to 1 if you have the declaration of
`blkid_probe_filter_superblocks_type', and to 0 if you don't. */
#define HAVE_DECL_BLKID_PROBE_FILTER_SUPERBLOCKS_TYPE 1
/* Define to 1 if you have the declaration of `blkid_probe_lookup_value ', and
to 0 if you don't. */
#define HAVE_DECL_BLKID_PROBE_LOOKUP_VALUE__________ 1
/* Define to 1 if you have the declaration of `blkid_probe_set_device', and to
0 if you don't. */
#define HAVE_DECL_BLKID_PROBE_SET_DEVICE 1
/* Define to 1 if you have the declaration of `blkid_reset_probe', and to 0 if
you don't. */
#define HAVE_DECL_BLKID_RESET_PROBE 1
/* Define to 1 if you have the declaration of `DM_DEVICE_GET_TARGET_VERSION',
and to 0 if you don't. */
#define HAVE_DECL_DM_DEVICE_GET_TARGET_VERSION 0
/* Define to 1 if you have the declaration of `dm_device_has_holders', and to
0 if you don't. */
#define HAVE_DECL_DM_DEVICE_HAS_HOLDERS 1
/* Define to 1 if you have the declaration of `dm_device_has_mounted_fs', and
to 0 if you don't. */
#define HAVE_DECL_DM_DEVICE_HAS_MOUNTED_FS 1
/* Define to 1 if you have the declaration of `dm_task_deferred_remove', and
to 0 if you don't. */
#define HAVE_DECL_DM_TASK_DEFERRED_REMOVE 1
/* Define to 1 if you have the declaration of `dm_task_retry_remove', and to 0
if you don't. */
#define HAVE_DECL_DM_TASK_RETRY_REMOVE 1
/* Define to 1 if you have the declaration of `dm_task_secure_data', and to 0
if you don't. */
#define HAVE_DECL_DM_TASK_SECURE_DATA 1
/* Define to 1 if you have the declaration of
`DM_UDEV_DISABLE_DISK_RULES_FLAG', and to 0 if you don't. */
#define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG 1
/* Define to 1 if you have the declaration of `GCRY_CIPHER_MODE_XTS', and to 0
if you don't. */
/* #undef HAVE_DECL_GCRY_CIPHER_MODE_XTS */
/* Define to 1 if you have the declaration of `json_object_deep_copy', and to
0 if you don't. */
#define HAVE_DECL_JSON_OBJECT_DEEP_COPY 1
/* Define to 1 if you have the declaration of `json_object_object_add_ex', and
to 0 if you don't. */
#define HAVE_DECL_JSON_OBJECT_OBJECT_ADD_EX 1
/* Define to 1 if you have the declaration of `NSS_GetVersion', and to 0 if
you don't. */
/* #undef HAVE_DECL_NSS_GETVERSION */
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
don't. */
#define HAVE_DECL_STRERROR_R 1
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
*/
#define HAVE_DIRENT_H 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <endian.h> header file. */
#define HAVE_ENDIAN_H 1
/* Define to 1 if you have the `explicit_bzero' function. */
#define HAVE_EXPLICIT_BZERO 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#define HAVE_FSEEKO 1
/* Define if the GNU gettext() function is already present or preinstalled. */
#define HAVE_GETTEXT 1
/* Define if you have the iconv() function and it works. */
/* #undef HAVE_ICONV */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if the system has the type `key_serial_t'. */
/* #undef HAVE_KEY_SERIAL_T */
/* Define to 1 if you have the `devmapper' library (-ldevmapper). */
#define HAVE_LIBDEVMAPPER 1
/* Define to 1 if you have the `gcrypt' library (-lgcrypt). */
/* #undef HAVE_LIBGCRYPT */
/* Define to 1 if you have the `nettle' library (-lnettle). */
/* #undef HAVE_LIBNETTLE */
/* Define to 1 if you have the `popt' library (-lpopt). */
#define HAVE_LIBPOPT 1
/* Define to 1 if you have the `selinux' library (-lselinux). */
/* #undef HAVE_LIBSELINUX */
/* Define to 1 if you have the `sepol' library (-lsepol). */
/* #undef HAVE_LIBSEPOL */
/* Define to 1 if you have the `uuid' library (-luuid). */
#define HAVE_LIBUUID 1
/* Define to 1 if you have the <linux/if_alg.h> header file. */
#define HAVE_LINUX_IF_ALG_H 1
/* Define to 1 if you have the <linux/keyctl.h> header file. */
#define HAVE_LINUX_KEYCTL_H 1
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
/* #undef HAVE_NDIR_H */
/* Define to 1 if you have the <nettle/sha.h> header file. */
/* #undef HAVE_NETTLE_SHA_H */
/* Define to 1 if you have the <nettle/version.h> header file. */
/* #undef HAVE_NETTLE_VERSION_H */
/* Define to 1 if you have the `posix_fallocate' function. */
#define HAVE_POSIX_FALLOCATE 1
/* Define to 1 if you have the `posix_memalign' function. */
#define HAVE_POSIX_MEMALIGN 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strerror_r' function. */
#define HAVE_STRERROR_R 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
*/
/* #undef HAVE_SYS_DIR_H */
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#define HAVE_SYS_IOCTL_H 1
/* Define to 1 if you have the <sys/mman.h> header file. */
#define HAVE_SYS_MMAN_H 1
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
*/
/* #undef HAVE_SYS_NDIR_H */
/* Define to 1 if you have the <sys/statvfs.h> header file. */
#define HAVE_SYS_STATVFS_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/sysmacros.h> header file. */
#define HAVE_SYS_SYSMACROS_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the <uuid/uuid.h> header file. */
#define HAVE_UUID_UUID_H 1
/* Enable kernel keyring service support */
#define KERNEL_KEYRING 1
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "cryptsetup"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME "cryptsetup"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "cryptsetup 2.2.2"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "cryptsetup"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "2.2.2"
/* passwdqc library config file */
#define PASSWDQC_CONFIG_FILE ""
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if strerror_r returns char *. */
#define STRERROR_R_CHAR_P 1
/* Use internal Argon2 */
#define USE_INTERNAL_ARGON2 1
/* Use internal PBKDF2 */
#define USE_INTERNAL_PBKDF2 1
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# define _ALL_SOURCE 1
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# define _POSIX_PTHREAD_SEMANTICS 1
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# define _TANDEM_SOURCE 1
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
/* Try to use udev synchronisation? */
#define USE_UDEV 1
/* Version number of package */
#define VERSION "2.2.2"
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
/* # undef WORDS_BIGENDIAN */
# endif
#endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
/* #undef _LARGEFILE_SOURCE */
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */
/* Define to 1 if on MINIX. */
/* #undef _MINIX */
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
/* #undef _POSIX_1_SOURCE */
/* Define to 1 if you need to in order for `stat' and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `long int' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define to the equivalent of the C99 'restrict' keyword, or to
nothing if this is not supported. Do not define if restrict is
supported directly. */
#define restrict __restrict
/* Work around a bug in Sun C++: it does not support _Restrict or
__restrict__, even though the corresponding Sun C compiler ends up with
"#define restrict _Restrict" or "#define restrict __restrict__" in the
previous line. Perhaps some future version of Sun C++ will work with
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
#if defined __SUNPRO_CC && !defined __RESTRICT
# define _Restrict
# define __restrict__
#endif
1
https://gitee.com/XTStarry/third_party_cryptsetup.git
git@gitee.com:XTStarry/third_party_cryptsetup.git
XTStarry
third_party_cryptsetup
third_party_cryptsetup
master

搜索帮助