add C api header for each 256/384/384_256

pull/2/head
MITSUNARI Shigeo 6 years ago
parent 48a5e19b1a
commit 32fbeb0d02
  1. 11
      include/mcl/bn_c256.h
  2. 12
      include/mcl/bn_c384.h
  3. 12
      include/mcl/bn_c384_256.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>

@ -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>

@ -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>
Loading…
Cancel
Save