summaryrefslogtreecommitdiffstats
path: root/apps/enc.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-07-13 23:28:13 +0100
committerMatt Caswell <matt@openssl.org>2014-07-16 20:59:35 +0100
commit2097a17c576f2395a10b05f14490688bc5f45a07 (patch)
treed4b6c75c9f26f50cbadc58013fd2bf8b41ec9257 /apps/enc.c
parente91718e80d1c8bdf6858bfae0bf6ebd97c65577b (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>
Diffstat (limited to 'apps/enc.c')
-rw-r--r--apps/enc.c6
1 files changed, 6 insertions, 0 deletions
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);