From ba006adcda945c7d8bf930d682914b9755b06eb3 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 28 Sep 2017 17:32:49 +0900 Subject: [PATCH] [doc] fix comment of bn.h --- include/mcl/bn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mcl/bn.h b/include/mcl/bn.h index 592868e..3b357c2 100644 --- a/include/mcl/bn.h +++ b/include/mcl/bn.h @@ -7,7 +7,7 @@ http://opensource.org/licenses/BSD-3-Clause */ #ifndef MCLBN_FP_UNIT_SIZE - #error "define MCLBN_FP_UNIT_SIZE 4(or 6)" + #error "define MCLBN_FP_UNIT_SIZE 4(, 6 or 8)" #endif #include // for uint64_t, uint8_t @@ -80,7 +80,7 @@ enum { /* init library @param curve [in] type of bn curve - @param maxUnitSize [in] 4 or 6 + @param maxUnitSize [in] MCLBN_FP_UNIT_SIZE curve = MCLBN_CurveFp254BNb is allowed if maxUnitSize = 4 curve = MCLBN_CurveFp254BNb/MCLBN_CurveFp382_1/MCLBN_CurveFp382_2 are allowed if maxUnitSize = 6 This parameter is used to detect a library compiled with different MCLBN_FP_UNIT_SIZE for safety.