aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/chacha20.h
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-01-02 15:21:32 +0100
committerGitHub <[email protected]>2019-01-02 15:21:32 +0100
commitd3f7bb27b1c495935c8c56aeba95cd83dce4298b (patch)
tree840ffb7d9129b40a762b1f541d9b74358db34ca1 /lib/crypto/c_src/chacha20.h
parentadf89a61d31938386e052027775a71e49fcd905d (diff)
parent69deab0db3d114928dde2fd9f86bcd3b507fe3ab (diff)
downloadotp-d3f7bb27b1c495935c8c56aeba95cd83dce4298b.tar.gz
otp-d3f7bb27b1c495935c8c56aeba95cd83dce4298b.tar.bz2
otp-d3f7bb27b1c495935c8c56aeba95cd83dce4298b.zip
Merge pull request #2068 from hogand/crypto/split-c-files
crypto: Split up crypto.c into multiple files OTP-14732
Diffstat (limited to 'lib/crypto/c_src/chacha20.h')
-rw-r--r--lib/crypto/c_src/chacha20.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/crypto/c_src/chacha20.h b/lib/crypto/c_src/chacha20.h
new file mode 100644
index 0000000000..7e2ccae2bb
--- /dev/null
+++ b/lib/crypto/c_src/chacha20.h
@@ -0,0 +1,29 @@
+/*
+ * %CopyrightBegin%
+ *
+ * Copyright Ericsson AB 2010-2018. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * %CopyrightEnd%
+ */
+
+#ifndef E_CHACHA20_H__
+#define E_CHACHA20_H__ 1
+
+#include "common.h"
+
+ERL_NIF_TERM chacha20_stream_init(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+ERL_NIF_TERM chacha20_stream_crypt(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+
+#endif /* E_CHACHA20_H__ */