From 32fbeb0d02e2e7100d3ded989b19a60862576f7a Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 30 Apr 2019 16:21:05 +0900 Subject: [PATCH] add C api header for each 256/384/384_256 --- include/mcl/bn_c256.h | 11 +++++++++++ include/mcl/bn_c384.h | 12 ++++++++++++ include/mcl/bn_c384_256.h | 12 ++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 include/mcl/bn_c256.h create mode 100644 include/mcl/bn_c384.h create mode 100644 include/mcl/bn_c384_256.h 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 + 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 + 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 +