summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-05-15 14:05:47 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-05-15 14:16:46 +0100
commitc3586512184b4ca6c682c479323ac282ab30298e (patch)
treec929163555bf353a60bb5a89979c11d1a4419077 /apps
parent2af071c0bc3f5573574ccf8927dbf60f47c81df5 (diff)
Enc doesn't support AEAD ciphers.
(cherry picked from commit 09184dddead165901700b31eb39d540ba30f93c5)
Diffstat (limited to 'apps')
-rw-r--r--apps/enc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/enc.c b/apps/enc.c
index aef8978a9a..d84c51dbcc 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -331,6 +331,12 @@ bad:
setup_engine(bio_err, engine, 0);
#endif
+ if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER)
+ {
+ BIO_printf(bio_err, "AEAD ciphers 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);