]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/chacha/chacha_enc.c
riscv: Provide a vector implementation of CHACHA20 cipher.
[thirdparty/openssl.git] / crypto / chacha / chacha_enc.c
index f8f1835906d6c1881fdf8fd493552acb5afc5379..f6fbc119885a8ba3d4024df568ea595fa5c6b41d 100644 (file)
@@ -90,9 +90,13 @@ static void chacha20_core(chacha_buf *output, const u32 input[16])
     }
 }
 
-void ChaCha20_ctr32(unsigned char *out, const unsigned char *inp,
-                    size_t len, const unsigned int key[8],
-                    const unsigned int counter[4])
+#ifdef INCLUDE_C_CHACHA20
+void ChaCha20_ctr32_c(unsigned char *out, const unsigned char *inp, size_t len,
+                      const unsigned int key[8], const unsigned int counter[4])
+#else
+void ChaCha20_ctr32(unsigned char *out, const unsigned char *inp, size_t len,
+                    const unsigned int key[8], const unsigned int counter[4])
+#endif
 {
     u32 input[16];
     chacha_buf buf;