cryptsetup/cryptsetup-2.5.0-Do-not-use-too-small-key-in-tests.patch
Ondrej Kozina 865e8ecce0 Various FIPS related fixes.
- Resolves: #2051630
2022-02-17 17:01:01 +01:00

46 lines
1.4 KiB
Diff

From 34f033b2549d95833270d657cf099ee4f6faff37 Mon Sep 17 00:00:00 2001
From: Milan Broz <gmazyland@gmail.com>
Date: Fri, 21 Jan 2022 09:55:34 +0100
Subject: [PATCH 3/3] Do not use too small key in tests.
Apparently FIPS mode enforces somewhere minimal key size.
As 64bit key is no longer useful anyway, just remove it.
Apparently cipher_null is now more safer with the longer key,
isn't? :-)
---
tests/align-test | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/tests/align-test b/tests/align-test
index 9ae606ca..a00103c2 100755
--- a/tests/align-test
+++ b/tests/align-test
@@ -262,11 +262,6 @@ cleanup
echo "# Offset check: 512B sector drive"
add_device dev_size_mb=16 sector_size=512 num_tgts=1
# |k| expO reqO expected slot offsets
-format_null 64 2048 0 8:72:136:200:264:328:392:456
-format_null 64 520 1
-format_null 64 520 8
-format_null 64 640 128
-format_null 64 2048 2048
format_null 128 2048 0 8:136:264:392:520:648:776:904
format_null 128 1032 1
format_null 128 1032 8
@@ -286,11 +281,6 @@ cleanup
echo "# Offset check: 4096B sector drive"
add_device dev_size_mb=16 sector_size=4096 num_tgts=1 opt_blks=64
-format_null 64 2048 0 8:72:136:200:264:328:392:456
-format_null 64 520 1
-format_null 64 520 8
-format_null 64 640 128
-format_null 64 2048 2048
format_null 128 2048 0 8:136:264:392:520:648:776:904
format_null 128 1032 1
format_null 128 1032 8
--
2.27.0