aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-09-28 16:32:49 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-09-28 16:32:49 +0800
commitba006adcda945c7d8bf930d682914b9755b06eb3 (patch)
tree3ca6d357908fc910da806ef55286914a9bf1a3b7 /include
parent6b6b7fd8b138a76bd3e58ea845f503b957ba4379 (diff)
downloaddexon-mcl-ba006adcda945c7d8bf930d682914b9755b06eb3.tar.gz
dexon-mcl-ba006adcda945c7d8bf930d682914b9755b06eb3.tar.zst
dexon-mcl-ba006adcda945c7d8bf930d682914b9755b06eb3.zip
[doc] fix comment of bn.h
Diffstat (limited to 'include')
-rw-r--r--include/mcl/bn.h4
1 files 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 <stdint.h> // 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.