Milan Broz
5b5f76002e
Fix various tests to run again in FIPS OpenSSL mode.
2019-07-31 10:27:58 +02:00
Milan Broz
1d59ae9aa9
Remove FIPS mode restriction for crypt_volume_key_get.
...
It is an application responsibility to use this API in the proper
context.
2019-07-30 14:12:50 +02:00
Milan Broz
8fde1b9f2c
Mark API tests as skipped if setup phase fails.
2019-07-30 13:18:34 +02:00
Milan Broz
5e03f8c725
Always close context before failing API test.
...
Some devices could be still open delaying removal in cleanup.
2019-07-30 13:14:12 +02:00
Milan Broz
d6d4a50f7c
Rename cd1-> cd in api test2.
2019-07-30 10:48:08 +02:00
Ondrej Kozina
e0d34b8f47
Add basic LUKS2 reencryption api test.
2019-07-26 16:20:36 +02:00
Ondrej Kozina
4a24311161
Extend offline reencryption test for other keyslot numbers.
2019-07-15 14:36:36 +02:00
Ondrej Kozina
66bedfd8e4
Fix LUKS2 reencryption recovery test.
...
Detect properly the case when recovery actually completed
encryption action for detached header case.
2019-07-12 15:37:18 +02:00
Ondrej Kozina
c18f968d84
Extend LUKS2 metadata size api tests.
2019-07-12 15:37:18 +02:00
Ondrej Kozina
5dfbc57117
Move LUKS2 metadata size api tests in separate routine.
2019-07-12 15:37:18 +02:00
Ondrej Kozina
e3fb6771d6
Re-enable mode test for LUKS2.
...
Since release 2.1.0 mode test for LUKS2 is skipped due to small test image.
Enforce smaller LUKS2 metadata via --offset to reenable the test.
Also detect failure for open action if format pass earlier.
2019-07-12 15:37:18 +02:00
Ondrej Kozina
ed856f2ab8
Add tests for reencryption status reporting.
2019-07-01 10:18:52 +02:00
Ondrej Kozina
c842087cc1
Drop identical tests (already in compat-test).
2019-07-01 10:18:45 +02:00
Yuri Chornoivan
4143d9871e
Fix minor typos
2019-06-28 12:02:39 +00:00
Ondrej Kozina
fb9e467147
Add resize tests with --device-size parameter.
2019-06-27 14:40:06 +02:00
Milan Broz
ff364347cf
Add FAIL backtrace to all bash tests.
2019-06-20 15:11:56 +02:00
Milan Broz
4c74ff5e5a
Add ESSIV test in combination with AEAD data integrity protection.
2019-06-20 14:48:59 +02:00
Milan Broz
2ebd19c9bc
Fix another EOL in api-test debug log.
2019-06-20 14:28:32 +02:00
Ondrej Kozina
ff0030d74f
Add missing --retry parameter in tests cleanup.
2019-06-18 13:26:20 +02:00
Ondrej Kozina
7a71feed8c
Remove overlooked config scratching from reencryption tests.
2019-06-18 13:26:20 +02:00
Ondrej Kozina
69fdb41934
Add tests for LUKS2 reencryption with multiple active keyslots.
2019-06-14 09:10:28 +02:00
Milan Broz
df0faef9ca
Add integritysetup bitmap mode test.
2019-06-04 20:05:13 +02:00
Ondrej Kozina
eadef08fd5
Extend LUKS2 reencryption recovery tests.
...
- test repair commad for reencryption recovery.
- test close command is able to teardown leftover device stack after
crash.
- test open performs recovery by default (to be able to open root
volume).
2019-05-24 17:29:56 +02:00
Ondrej Kozina
60d26be325
Load volume key in keyring when activated by token.
...
LUKS2 should use keyring for dm-crypt volume keys by default
when possible. crypt_activate_by_token didn't load keys in
keyring by default. It was a bug.
2019-05-21 18:08:00 +02:00
Ondrej Kozina
97da67c6a8
Add tests for reencryption with fixed device size.
2019-05-21 18:08:00 +02:00
Ondrej Kozina
4f5c25d0dd
Add HAVE_DECL_DM_TASK_RETRY_REMOVE define in local tests.
2019-05-06 15:42:11 +02:00
Ondrej Kozina
4c33ab1997
Remove internal config file scratching (breaks local tests.)
2019-05-06 15:41:37 +02:00
Ondrej Kozina
5bb65aca8f
Remove all test dm devices with retry option if available.
2019-05-06 15:37:35 +02:00
Ondrej Kozina
d310e896cb
Add basic offline tests for LUKS2 reencryption.
2019-05-02 17:23:59 +02:00
Ondrej Kozina
ea4b586c77
Add tests for CRYPT_VOLUME_KEY_DIGEST_REUSE flag.
...
Tests commit 7569519530
2019-03-22 08:01:21 +01:00
Milan Broz
1317af028e
Use compatible switch for free command.
2019-03-21 15:32:22 +01:00
Milan Broz
cdcd4ddd35
Print free memory in tests.
2019-03-21 15:16:33 +01:00
Milan Broz
2960164cf8
Fix localtest if the last test is skipped.
2019-03-21 15:12:39 +01:00
Milan Broz
b6d406fbc8
Add fixed Makefile that can run tests outside of compiled tree.
2019-03-20 21:58:07 +01:00
Milan Broz
456ab38caa
Allow to set CRYPTSETUP_PATH in tests for system installed cryptsetup tools.
...
Run: make check CRYPTSETUP_PATH=/sbin
2019-03-08 08:16:45 +01:00
Ondrej Kozina
868cc52415
Abort conversion to LUKS1 with incompatible sector size.
2019-03-05 17:08:05 +01:00
Ondrej Kozina
d85c7d06af
Do not fail tests if benchmarked >= 1000 iterations with -i1.
2019-03-01 21:43:35 +01:00
Ondrej Kozina
c03e3fe88a
Fix getting default LUKS2 keyslot encryption parameters.
...
When information about original keyslot size is missing (no active
keyslot assigned to default segment) we have to fallback to
default luks2 encryption parameters even though we know default
segment cipher and mode.
Fixes : #442 .
2019-03-01 20:39:06 +01:00
Ondrej Kozina
a90a5c9244
Avoid double free corruption after failed crypt_init_data_device.
2019-03-01 20:31:00 +01:00
Milan Broz
dce7a1e2aa
Fix gcc warning in tests.
2019-02-24 12:35:54 +01:00
Milan Broz
a354b72546
Add some symmetric block ciphers vector tests for crypto backend.
2019-02-24 12:35:50 +01:00
Milan Broz
ac8f41404b
Simplify and reformat hash/HMAC test vectors test.
2019-02-24 12:35:45 +01:00
Milan Broz
fc7b257bab
Silence dmsetup removal messages.
2019-02-13 13:34:39 +01:00
Milan Broz
787066c292
Report error if no LUKS keyslots are available.
...
Also fix LUKS1 keyslot function to proper return -ENOENT errno in this case.
This change means, that user can distinguish between bad passphrase and
no keyslot available. (But this information was avalilable with luksDump
even before the change.)
2019-02-13 13:19:48 +01:00
Milan Broz
71ab6cb818
Fix other tests to not fail if keyring support is missing in kernel.
2019-02-12 16:16:56 +01:00
Milan Broz
1158ba453e
Use better test for a bad loop descriptor.
2019-02-12 14:54:56 +01:00
Milan Broz
2e3f764272
Fix api-test-2 to properly detect missing keyring in kernel.
...
Also properly cleanup after some failures.
2019-02-12 14:49:21 +01:00
Ondrej Kozina
d754598143
Preserve LUKS2 mdata & keyslots sizes after reencryption.
2019-02-08 12:00:24 +01:00
Ondrej Kozina
47f632263e
Add missing crypt_free() in api test.
2019-02-08 11:56:52 +01:00
Ondrej Kozina
57670eeeb7
Detect LUKS2 default alignmnet in align tests.
2019-02-07 18:40:48 +01:00