aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2019-04-30 15:21:05 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2019-04-30 15:21:05 +0800
commit32fbeb0d02e2e7100d3ded989b19a60862576f7a (patch)
tree9301ba8cc8dd8b69eb2484a23b9816f6bab8a4d3
parent48a5e19b1a65e5142cb4d92885737dc3a5d0b09c (diff)
downloadtangerine-mcl-32fbeb0d02e2e7100d3ded989b19a60862576f7a.tar.gz
tangerine-mcl-32fbeb0d02e2e7100d3ded989b19a60862576f7a.tar.zst
tangerine-mcl-32fbeb0d02e2e7100d3ded989b19a60862576f7a.zip
add C api header for each 256/384/384_256
-rw-r--r--include/mcl/bn_c256.h11
-rw-r--r--include/mcl/bn_c384.h12
-rw-r--r--include/mcl/bn_c384_256.h12
3 files changed, 35 insertions, 0 deletions
diff --git a/include/mcl/bn_c256.h b/include/mcl/bn_c256.h
new file mode 100644
index 0000000..5135e78
--- /dev/null
+++ b/include/mcl/bn_c256.h
@@ -0,0 +1,11 @@
+#pragma once
+/**
+ @file
+ @brief C API of 256-bit optimal ate pairing over BN curves
+ @author MITSUNARI Shigeo(@herumi)
+ @license modified new BSD license
+ http://opensource.org/licenses/BSD-3-Clause
+*/
+#define MCLBN_FP_UNIT_SIZE 4
+#include <mcl/bn.h>
+
diff --git a/include/mcl/bn_c384.h b/include/mcl/bn_c384.h
new file mode 100644
index 0000000..23459e0
--- /dev/null
+++ b/include/mcl/bn_c384.h
@@ -0,0 +1,12 @@
+#pragma once
+/**
+ @file
+ @brief C API of 384-bit optimal ate pairing over BN curves
+ @author MITSUNARI Shigeo(@herumi)
+ @license modified new BSD license
+ http://opensource.org/licenses/BSD-3-Clause
+*/
+#define MCLBN_FP_UNIT_SIZE 6
+#define MCLBN_FR_UNIT_SIZE 6
+#include <mcl/bn.h>
+
diff --git a/include/mcl/bn_c384_256.h b/include/mcl/bn_c384_256.h
new file mode 100644
index 0000000..bb7045a
--- /dev/null
+++ b/include/mcl/bn_c384_256.h
@@ -0,0 +1,12 @@
+#pragma once
+/**
+ @file
+ @brief C API of 384/256-bit optimal ate pairing over BN curves
+ @author MITSUNARI Shigeo(@herumi)
+ @license modified new BSD license
+ http://opensource.org/licenses/BSD-3-Clause
+*/
+#define MCLBN_FP_UNIT_SIZE 6
+#define MCLBN_FR_UNIT_SIZE 4
+#include <mcl/bn.h>
+