Commit 2097a17c authored by Matt Caswell's avatar Matt Caswell
Browse files

Disabled XTS mode in enc utility as it is not supported



PR#3442

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent e91718e8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);