Ondrej Kozina
5a7535c513
Add LUKS2 metadata test images.
...
Test archive contains images with all supported
LUKS2 metadata size configurations. There's
one active keyslot 0 in every image that can be
unlocked with following passphrase (ignore
quotation marks): "Qx3qn46vq0v"
2018-11-27 16:54:51 +01:00
Milan Broz
202aeece3c
Fix test module inclusion in tarball.
2018-10-14 20:54:06 +02:00
Milan Broz
952716afe1
Report versions in test run.
2018-10-02 13:46:03 +02:00
Ondrej Kozina
5a3e4abf71
Add basic LUKS2 align test.
2018-08-10 08:19:38 +02:00
Milan Broz
e53fe70668
Use only xz archives in tests.
...
Bzip2 is sometimesmissing and we use xz already.
Seems xz produces slightly larger archives (despite the best mode)
but it is not worth to keep bz2 here.
2018-08-06 13:48:54 +02:00
Ondrej Kozina
71a8fd3106
Test basic LUKS2 repair capabilities.
...
a) checks crypt_load() fails when single LUKS2 header is corrupted and
blkid detect other device signature from LUKS or none.
b) check explicit crypt_repair is able to override blkid restriction
and fix corrupted primary header
c) check a) and b) with disabled locks
2018-07-11 22:23:10 +02:00
Ondrej Kozina
406ec14585
Add unit tests for low level io helpers.
2018-06-20 16:57:40 +02:00
Milan Broz
4e19bc01d5
Fix test vectors test link.
2018-03-19 19:21:35 +01:00
Milan Broz
2d2acda404
Add crypto backend vectors test.
...
Still need to add
- hash, HMAC,
- symmetric ciphers,
- storage encryption wrapper.
2018-03-19 13:02:12 +01:00
Ondrej Kozina
865b1dc66e
Add kernel key compat tests.
...
This test can detect ugly dm-crypt kernel key bug
present in kernels 4.10.0 through 4.15.0-rc8.
2018-01-18 14:05:13 +01:00
Ondrej Kozina
e678d5ae8e
test: drop useless luks2 test image
2017-10-30 16:09:40 +01:00
Ondrej Kozina
759577ad9b
tests: LUKS2 reencrypt tests
2017-10-28 23:26:11 +02:00
Milan Broz
b78bd4ccce
Add new valgrind tests.
2017-10-27 22:39:50 +02:00
Milan Broz
d77bbe93c1
Use non-recursive automake.
...
This change also causes that now binaries and libraries are placed in
build root directory.
Now we can use subdir-objects for automake.
2017-10-12 11:48:17 +02:00
Milan Broz
892b80ffa4
Do not depend in test on loop code from library sources.
...
This patch duplicates part of the code because following
switch to non-recursive automake is not easily fixable without this change.
(Automake cannot use top_srcdir anymore in this context.)
2017-10-12 11:46:26 +02:00
Milan Broz
c6d4ebd80c
Add libLUKS2 tests.
2017-09-24 19:50:17 +02:00
Milan Broz
e7de19fe1d
Split utils from API test.
2017-09-24 19:49:51 +02:00
Milan Broz
d891e00f63
Add kernel keyring functions for volume key.
...
Code is written by Ondrej Kozina.
This patch adds ability to store volume key in kernel keyring
(feature available in recent kernels) and avoid setting
key through dm-ioctl and avoiding key in table mapping.
Will be used in LUKS2.
Signed-off-by: Milan Broz <gmazyland@gmail.com >
2017-08-06 21:30:51 +02:00
Ondrej Kozina
6682e6b663
tests: add test for overlaping keyslots in luks1 image
2017-06-15 11:17:36 +02:00
Milan Broz
0bb7098fd8
Add integritysetup command line tool for the dm-integrity standalone setting.
...
The dm-integrity target is intended to be used for authenticated
encryption through LUKS and dm-crypt.
It can be used in standalone as well; for this use case there
is a simple configuration utility called integritysetup
(similar to veritysetup to dm-verity).
2017-05-28 09:22:17 +02:00
Ondrej Kozina
ce30d5f1fd
add vfat test image
2014-09-23 21:31:18 +02:00
Milan Broz
c36a7968f4
Add test for tmpfs / O_DIRECT etc.
2014-08-08 14:09:37 +02:00
Milan Broz
1fc441f091
Include images in tarball ans use xz format.
2014-04-13 16:29:21 +02:00
Milan Broz
22849ccd11
Add luks1 compat image testing.
...
This test use long keyfile to test proper KDF functionality.
2014-04-13 16:21:11 +02:00
Milan Broz
2d755335de
Fix previous commit.
2013-12-08 18:15:00 +01:00
Milan Broz
d7762c09dd
Add new test images to automake file list.
2013-12-08 18:02:58 +01:00
Cristian Rodríguez
1349efa34d
Fix buildsytem to always include config.h.
...
- config.h must always be the first file to be included
- Use AM_CFLAGS and AM_LDFLAGS consistently and properly.
(Modified to disable build without largefile support etc
by Milan Broz <gmazyland@gmail.com >)
2013-06-23 17:14:33 +02:00
Milan Broz
f35f34b909
Fix po files.
2012-11-27 19:18:05 +01:00
Milan Broz
34a2176689
TCRYPT: add simple test and image archive.
2012-11-27 19:08:10 +01:00
Milan Broz
1b191e14d0
Remove test dir during cleanup.
2012-11-25 23:43:14 +01:00
Milan Broz
29e4414c35
Fix luksHeaderBackup for v1.0 (very old) headers and add some basic test.
2012-08-30 15:39:30 +02:00
Milan Broz
a9d9a2ad44
Fix hex_to_bytes and add it to common utils.
2012-06-18 17:09:48 +02:00
Milan Broz
0894814148
Add some simple reenc test.
2012-06-17 21:59:29 +02:00
Milan Broz
92d1bebdac
Fix missing lines.
2012-06-08 22:47:45 +02:00
Milan Broz
850799802b
Add simple veritysetup test.
2012-06-03 11:14:15 +02:00
Milan Broz
963ee0e6ee
Add some valgrind checks (thanks to okozina).
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@609 36d66b0a-2a48-0410-832c-cd162a569da5
2011-09-21 22:42:03 +00:00
Milan Broz
95009fff4b
Add some API test and rewrite some parts.
...
(Thanks to okozina@redhat.com )
[not yet finished]
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@603 36d66b0a-2a48-0410-832c-cd162a569da5
2011-08-22 21:54:11 +00:00
Milan Broz
7fe10e3d7b
Add API tests for plain device.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@591 36d66b0a-2a48-0410-832c-cd162a569da5
2011-08-02 12:16:00 +00:00
Milan Broz
9c71c74d59
Add --enable-discards option to allow discards/TRIM requests.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@572 36d66b0a-2a48-0410-832c-cd162a569da5
2011-07-17 22:35:40 +00:00
Milan Broz
01e03f7002
Use loop functions even in api test.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@448 36d66b0a-2a48-0410-832c-cd162a569da5
2011-03-12 22:29:14 +00:00
Milan Broz
4f3a65a629
Add simple Loop-AES compatibility check.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@437 36d66b0a-2a48-0410-832c-cd162a569da5
2011-03-10 17:16:03 +00:00
Milan Broz
058976ff08
Add password hash test for create command.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@401 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-10 15:36:41 +00:00
Milan Broz
6fde2f640b
Fix po files include and tests.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@350 36d66b0a-2a48-0410-832c-cd162a569da5
2010-10-26 14:35:16 +00:00
Milan Broz
bb8e085378
Add utils_crypt file and test for supported modes presentation.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@348 36d66b0a-2a48-0410-832c-cd162a569da5
2010-10-26 14:34:47 +00:00
Milan Broz
cf4fec3865
Rewrite filediffer to C and make it work properly.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@322 36d66b0a-2a48-0410-832c-cd162a569da5
2010-08-05 16:41:28 +00:00
Milan Broz
5107296213
Rename apitest -> api-test.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@211 36d66b0a-2a48-0410-832c-cd162a569da5
2010-05-01 09:59:04 +00:00
Milan Broz
19dc09131d
Rename align test (Anyone mentioned autoconfigure?). Add some minor changes, run it in make check.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@210 36d66b0a-2a48-0410-832c-cd162a569da5
2010-05-01 09:58:55 +00:00
Milan Broz
78d014e27d
Move compat test to separate script and run it in make check.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@209 36d66b0a-2a48-0410-832c-cd162a569da5
2010-05-01 09:58:47 +00:00
Milan Broz
0516a1a676
Do not use kernel dm-ioctl header directly and remove warnings.
...
Add alignment test to distributed files.
Fix write() return compiler warning.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@202 36d66b0a-2a48-0410-832c-cd162a569da5
2010-04-16 15:48:09 +00:00
Milan Broz
311727a571
Add nonFIPS alg format test, clean up some warnings in apicheck.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@172 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-10 20:40:50 +00:00