summaryrefslogtreecommitdiffstats
path: root/crypto/include/internal/chacha.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/include/internal/chacha.h')
-rw-r--r--crypto/include/internal/chacha.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/include/internal/chacha.h b/crypto/include/internal/chacha.h
index dacbdf59dc..98787d35b8 100644
--- a/crypto/include/internal/chacha.h
+++ b/crypto/include/internal/chacha.h
@@ -57,6 +57,10 @@
extern "C" {
#endif
+# ifdef OPENSSL_NO_CHACHA
+# error CHACHA is disabled.
+# endif
+
/*
* ChaCha20_ctr32 encrypts |len| bytes from |inp| with the given key and
* nonce and writes the result to |out|, which may be equal to |inp|.