diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-05-15 14:05:47 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-05-15 14:16:45 +0100 |
commit | 2fa65aa7d86e14b594467ff4c286afc52842b2ca (patch) | |
tree | ac9454e31263f78675c6ded09961e25d89b5d368 /apps/enc.c | |
parent | 4907cf0845e4d18aae3de39ab2dc64cfa20ddd1e (diff) |
Enc doesn't support AEAD ciphers.
(cherry picked from commit 09184dddead165901700b31eb39d540ba30f93c5)
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 719acc3250..19ea3df940 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); |