Commit 5e525993 authored by Milan Broz's avatar Milan Broz

Do not use IV for null cipher.

parent d0c98af4
......@@ -4,3 +4,4 @@ Version 1.5.0:
- FIPS patches (RNG, volume key restrictions, move changekey to library)
- online reencryption api?
- integrate more metadata formats
- TRIM for keyslots
\ No newline at end of file
......@@ -61,7 +61,7 @@ int crypt_parse_name_and_mode(const char *s, char *cipher, int *key_nums,
/* Short version for "empty" cipher */
if (!strcmp(s, "null")) {
strncpy(cipher, "cipher_null", MAX_CIPHER_LEN);
strncpy(cipher_mode, "ecb-null", 9);
strncpy(cipher_mode, "ecb", 9);
if (key_nums)
*key_nums = 0;
return 0;
......
......@@ -134,9 +134,9 @@ dmcrypt aes aes-cbc-plain
dmcrypt aes-plain aes-cbc-plain
# empty cipher
dmcrypt null cipher_null-ecb-null
dmcrypt null cipher_null-ecb
dmcrypt cipher_null cipher_null-cbc-plain
dmcrypt cipher_null-ecb-null
dmcrypt cipher_null-ecb
# codebook doesn't support IV at all
for cipher in $CIPHERS ; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment