diff options
author | Matt Caswell <matt@openssl.org> | 2014-07-13 23:28:13 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-07-16 21:01:38 +0100 |
commit | ca818b322d549f44f7f344d4a94d8a754f85598f (patch) | |
tree | 9a1df8a7cba5012a3ed2da62f5159932436d565a /apps/enc.c | |
parent | b11c24110cbc78b3b54c115dd87f9d99ef7c9ce7 (diff) |
Disabled XTS mode in enc utility as it is not supported
PR#3442
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 2097a17c576f2395a10b05f14490688bc5f45a07)
Diffstat (limited to 'apps/enc.c')
-rw-r--r-- | apps/enc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/enc.c b/apps/enc.c index c6a211ba87..c8cb021224 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -339,6 +339,12 @@ bad: goto end; } + if (cipher && (EVP_CIPHER_mode(cipher) == EVP_CIPH_XTS_MODE)) + { + BIO_printf(bio_err, "Ciphers in XTS mode are not supported by the enc utility\n"); + goto end; + } + if (md && (dgst=EVP_get_digestbyname(md)) == NULL) { BIO_printf(bio_err,"%s is an unsupported message digest type\n",md); |