diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-08-13 14:11:14 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-08-13 14:11:14 +0800 |
commit | f25b779d48f3682a03a001f8ce0386eebd43de68 (patch) | |
tree | a95fec80bd35fcbd927ccd14659b40b3a5db7b98 /src/bls_c.cpp | |
parent | 56dd66510ebc611f8befbd5b22cb061616756491 (diff) | |
download | dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.gz dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.bz2 dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.lz dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.xz dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.zst dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.zip |
add getG1/FrByteSize
Diffstat (limited to 'src/bls_c.cpp')
-rw-r--r-- | src/bls_c.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bls_c.cpp b/src/bls_c.cpp index d983ff2..5ea665c 100644 --- a/src/bls_c.cpp +++ b/src/bls_c.cpp @@ -240,6 +240,16 @@ int blsGetFieldOrder(char *buf, mclSize maxBufSize) return (int)Fp::getModulo(buf, maxBufSize); } +int blsGetG1ByteSize() +{ + return mclBn_getG1ByteSize(); +} + +int blsGetFrByteSize() +{ + return mclBn_getFrByteSize(); +} + void blsGetGeneratorOfG2(blsPublicKey *pub) { *(G2*)pub = getQ(); |