Commit graph

34 commits

Author SHA1 Message Date
Daniel Golle
5c21b26a93 cryptsetup: update to version 2.6.1
Cryptsetup 2.6.1 Release Notes
==============================
Stable bug-fix release with minor extensions.

All users of cryptsetup 2.6.0 should upgrade to this version.

Changes since version 2.6.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~

* bitlk: Fixes for BitLocker-compatible on-disk metadata parser
  (found by new cryptsetup OSS-Fuzz fuzzers).
  - Fix a possible memory leak if the metadata contains more than
    one description field.
  - Harden parsing of metadata entries for key and description entries.
  - Fix broken metadata parsing that can cause a crash or out of memory.

* Fix possible iteration overflow in OpenSSL2 PBKDF2 crypto backend.
  OpenSSL2 uses a signed integer for PBKDF2 iteration count.
  As cryptsetup uses an unsigned value, this can lead to overflow and
  a decrease in the actual iteration count.
  This situation can happen only if the user specifies
  --pbkdf-force-iterations option.
  OpenSSL3 (and other supported crypto backends) are not affected.

* Fix compilation for new ISO C standards (gcc with -std=c11 and higher).

* fvault2: Fix compilation with very old uuid.h.

* verity: Fix possible hash offset setting overflow.

* bitlk: Fix use of startup BEK key on big-endian platforms.

* Fix compilation with latest musl library.
  Recent musl no longer implements lseek64() in some configurations.
  Use lseek() as 64-bit offset is mandatory for cryptsetup.

* Do not initiate encryption (reencryption command) when the header and
  data devices are the same.
  If data device reduction is not requsted, this leads to data corruption
  since LUKS metadata was written over the data device.

* Fix possible memory leak if crypt_load() fails.

* Always use passphrases with a minimal 8 chars length for benchmarking.
  Some enterprise distributions decided to set an unconditional check
  for PBKDF2 password length when running in FIPS mode.
  This questionable change led to unexpected failures during LUKS format
  and keyslot operations, where short passwords were used for
  benchmarking PBKDF2 speed.
  PBKDF2 benchmark calculations should not be affected by this change.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-08-05 12:16:08 +01:00
Daniel Golle
d4d58fca4b
cryptsetup: fix compilation with musl 1.2.4
Similar to mdadm also cryptsetup now requires _LARGEFILE64_SOURCE.
Add -D_LARGEFILE64_SOURCE to TARGET_CFLAGS to fix compilation.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-18 03:18:27 +01:00
Daniel Golle
cf26d633c7 cryptsetup: update to version 2.6.0
Update to new major release of cryptsetup. For details, please see
the release notes[1].

[1]: https://cdn.kernel.org/pub/linux/utils/cryptsetup/v2.6/v2.6.0-ReleaseNotes

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-12-20 01:41:42 +00:00
Daniel Golle
80439f802c
cryptsetup: update to version 2.5.0
Update to new major release of cryptsetup. For details, please see
the release notes[1].

[1]: https://cdn.kernel.org/pub/linux/utils/cryptsetup/v2.5/v2.5.0-ReleaseNotes
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-07 22:56:15 +01:00
Daniel Golle
ad0ac5198d cryptsetup: fix library paths by calling autoreconf
Use PKG_FIXUP:=autoreconf when building cryptsetup to prevent
accidental linkage against host libraries.

Fixes: #19011
Reported-by: @dreirund
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-07-23 09:40:04 +01:00
Josef Schlehofer
a2427edf76 cryptsetup: update to version 2.4.3
Fixes: CVE-2021-4122

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-01-18 18:43:56 +00:00
Daniel Golle
97dd009f58
cryptsetup: update to version 2.4.1
Package new experimental SSH token authenticator plugin as new package
'cryptsetup-ssh'.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-10-09 17:03:15 +01:00
Javier Marcet
2bff0b47aa cryptsetup: update to version 2.3.6
Signed-off-by: Javier Marcet <javier@marcet.info>
2021-07-24 00:04:40 +01:00
Daniel Golle
c644917ca7
cryptsetup: update to version 2.3.5
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-03-25 23:31:00 +00:00
Rosen Penev
87a4eeb8de
cryptsetup: fix compilation with full NLS
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-09-28 23:11:57 -07:00
Daniel Golle
5de2a92542
cryptsetup: update to version 2.3.4
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-09-27 22:26:04 +01:00
Rosen Penev
a989f2a2e1
cryptsetup: update to 2.3.3
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-06 21:09:27 -07:00
Rosen Penev
e4d1fb27c6
cryptsetup: add NLS support
Needed for uClibc-ng.

Added InstallDev section. Because why not.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-14 16:18:41 -07:00
Rosen Penev
9758497e74
cryptsetup: update to 2.3.0
Use PKG_INSTALL for consistency between packages.

Add PKG_BUILD_PARALLEL for faster compilation.

Fix wrong locking path. First discovered here:
https://forum.openwrt.org/t/cannot-setup-dm-crypt/56836

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-04 19:30:52 -08:00
Daniel Golle
ea0b3370e5 cryptsetup: update to version 2.2.2
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-01-07 01:27:16 +02:00
Jeffery To
53e1692ae9 treewide: Use default PKG_BUILD_DIR when possible
This removes lines that set PKG_BUILD_DIR when the set value is no
different from the default value.

Specifically, the line is removed if the assigned value is:

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

  The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT
  if it is set, so now this is identical to the default value.

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)

  if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it
  the same as the previous case

* $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

  This is the same as the default PKG_BUILD_DIR when there is no
  BUILD_VARIANT.

* $(BUILD_DIR)/[name]-$(PKG_VERSION)

  where [name] is a string that is identical to PKG_NAME

[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-13 02:01:34 +08:00
Sven Eckelmann
bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Daniel Golle
4f9d340677 cryptsetup: update to version 2.1.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-03-02 20:54:36 +01:00
Rosen Penev
4815585a3b cryptsetup: Remove OpenSSL variant
OpenSSL is only used for hashing while being a huge dependency (689.4KB
for mips_24kc.

Cryptsetup also supports and recommends argon2 for hashing, which is not
provided by OpenSSL.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-31 20:10:08 -08:00
Rosen Penev
685ca41089 cryptsetup: Replace libgcrypt with AFALG
Add several configure arguments to speed up build time.

Switch from using libgcrypt to using the kernel directly.

This has a number of benefits including smaller size and faster speed. It
also allows selection of desired crypto primatives instead of having all
of them.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-31 20:10:08 -08:00
Daniel Golle
1db9c7abb9 cryptsetup: update to version 2.0.6
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-01-29 09:48:55 +01:00
Rosen Penev
dca56574e1
cryptsetup: Update to 2.0.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-10-30 17:44:47 -07:00
Rosen Penev
dac07561bf
cryptsetup: Update to 2.0.4
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-08-07 15:31:30 -07:00
Rosen Penev
bb351c9398 cryptsetup: Update to 2.0.3
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-06-14 20:54:40 -07:00
Daniel Golle
794e917b1a cryptsetup: update to version 1.7.5
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-05 18:22:04 +02:00
Alberto Bursi
bb103260af cryptsetup: move to Encryption submenu
Part of a wider housekeeping effort on the packages repository.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
2016-10-23 23:29:33 +02:00
Daniel Golle
a91da16c2d cryptsetup: update to version 1.7.2
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-06-14 01:22:49 +02:00
Daniel Golle
6c7c823243 cryptsetup: fix MD5SUM forgotten during update
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-03-09 02:46:12 +01:00
Daniel Golle
0588c6745c cryptsetup: update to version 1.7.1
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-03-09 02:44:54 +01:00
Daniel Golle
3aeb3d4960 cryptsetup: update to 1.7.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-12-03 01:25:11 +01:00
Daniel Golle
ee912a3869 cryptsetup: bump version
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-04-02 04:16:54 +02:00
Daniel Golle
52b5924f18 cryptsetup: bump copyright header
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2014-12-05 16:47:49 +01:00
Daniel Golle
a7e91318ce cryptsetup: add PKG_LICENSE information
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2014-12-05 16:46:30 +01:00
Daniel Golle
fc004f77e4 import cryptsetup from oldpackages
and bump version to 1.6.6 and switch to kernel.org mirror

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2014-12-05 15:44:02 +01:00