diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-11-29 13:50:27 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-12-05 11:34:52 +0100 |
commit | 36b4d7a69836fdf0ede1ea00879b26047bf93056 (patch) | |
tree | 66dd8c446954cbd7603c67ca68e1e79f354b131f /crypto/hpke | |
parent | d9ed3068df038811211b1f9c9f2f4ee2a6840aa3 (diff) |
hpke: fix tests with disabled chacha20 or poly1305
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/19784)
Diffstat (limited to 'crypto/hpke')
-rw-r--r-- | crypto/hpke/hpke_util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/hpke/hpke_util.c b/crypto/hpke/hpke_util.c index 0db5f9ce2f..2591ff6c75 100644 --- a/crypto/hpke/hpke_util.c +++ b/crypto/hpke/hpke_util.c @@ -86,13 +86,11 @@ static const OSSL_HPKE_AEAD_INFO hpke_aead_tab[] = { OSSL_HPKE_MAX_NONCELEN }, { OSSL_HPKE_AEAD_ID_AES_GCM_256, LN_aes_256_gcm, 16, 32, OSSL_HPKE_MAX_NONCELEN }, -#ifndef OPENSSL_NO_CHACHA20 -# ifndef OPENSSL_NO_POLY1305 +#if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) { OSSL_HPKE_AEAD_ID_CHACHA_POLY1305, LN_chacha20_poly1305, 16, 32, OSSL_HPKE_MAX_NONCELEN }, -# endif - { OSSL_HPKE_AEAD_ID_EXPORTONLY, NULL, 0, 0, 0 } #endif + { OSSL_HPKE_AEAD_ID_EXPORTONLY, NULL, 0, 0, 0 } }; /* |