Allow ECB mode in cryptsetup benchmark.

This commit is contained in:
Milan Broz
2014-06-17 23:09:13 +02:00
parent 1a6e1ae918
commit 91c739958c
2 changed files with 3 additions and 1 deletions

View File

@@ -540,6 +540,9 @@ static int action_benchmark(void)
strstr(cipher, "cast5"))
iv_size = 8;
if (!strcmp(cipher_mode, "ecb"))
iv_size = 0;
r = benchmark_cipher_loop(cipher, cipher_mode,
key_size / 8, iv_size,
&enc_mbr, &dec_mbr);