Commit c6a8b647 authored by Milan Broz's avatar Milan Broz

Allow ECB in cipher spec (fixes previous patch).

parent 83589b7c
......@@ -45,6 +45,9 @@ int crypt_parse_name_and_mode(const char *s, char *cipher, int *key_nums,
return -EINVAL;
}
if (!strcmp(cipher_mode, "ecb"))
return 0;
/* Enforce IV */
if (require_iv) {
char *tmp = strchr(cipher_mode, '-');
......
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