diff options
author | Damien Miller <djm@mindrot.org> | 2020-04-03 17:25:46 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-04-03 17:26:29 +1100 |
commit | abe2b245b3ac6c4801e99bc0f13289cd28211e22 (patch) | |
tree | a7ab8d83b19e7d2d7d4348391a0700b34e8fc2ce /cipher-chachapoly.c | |
parent | bc5c5d01ad668981f9e554e62195383bc12e8528 (diff) |
prefer libcrypto chacha20-poly1305 where possible
Diffstat (limited to 'cipher-chachapoly.c')
-rw-r--r-- | cipher-chachapoly.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cipher-chachapoly.c b/cipher-chachapoly.c index 42e8d40b7..132cdeec9 100644 --- a/cipher-chachapoly.c +++ b/cipher-chachapoly.c | |||
@@ -18,6 +18,8 @@ | |||
18 | 18 | ||
19 | #include "includes.h" | 19 | #include "includes.h" |
20 | 20 | ||
21 | #if !defined(HAVE_EVP_CHACHA20) || defined(HAVE_BROKEN_CHACHA20) | ||
22 | |||
21 | #include <sys/types.h> | 23 | #include <sys/types.h> |
22 | #include <stdarg.h> /* needed for log.h */ | 24 | #include <stdarg.h> /* needed for log.h */ |
23 | #include <string.h> | 25 | #include <string.h> |
@@ -130,3 +132,5 @@ chachapoly_get_length(struct chachapoly_ctx *ctx, | |||
130 | *plenp = PEEK_U32(buf); | 132 | *plenp = PEEK_U32(buf); |
131 | return 0; | 133 | return 0; |
132 | } | 134 | } |
135 | |||
136 | #endif /* !defined(HAVE_EVP_CHACHA20) || defined(HAVE_BROKEN_CHACHA20) */ | ||