From: Matt Caswell Date: Sun, 13 Jul 2014 22:28:13 +0000 (+0100) Subject: Disabled XTS mode in enc utility as it is not supported X-Git-Tag: master-post-reformat~578 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=2097a17c576f2395a10b05f14490688bc5f45a07 Disabled XTS mode in enc utility as it is not supported PR#3442 Reviewed-by: Tim Hudson Reviewed-by: Rich Salz --- diff --git a/apps/enc.c b/apps/enc.c index 928d16bccc..75d97bbc27 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);