From e48973af5019ed698df6a28458688a26ec9ca34a Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 23 Jun 2020 11:05:11 +0900 Subject: [PATCH] add mclBnFr_setBigEndianMod --- include/mcl/impl/bn_c_impl.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/mcl/impl/bn_c_impl.hpp b/include/mcl/impl/bn_c_impl.hpp index d601861..52eaa50 100644 --- a/include/mcl/impl/bn_c_impl.hpp +++ b/include/mcl/impl/bn_c_impl.hpp @@ -181,6 +181,13 @@ int mclBnFr_setLittleEndian(mclBnFr *x, const void *buf, mclSize bufSize) cast(x)->setArrayMask((const char *)buf, bufSize); return 0; } +int mclBnFr_setBigEndianMod(mclBnFr *x, const void *buf, mclSize bufSize) +{ + bool b; + cast(x)->setBigEndianMod(&b, buf, bufSize); + return b ? 0 : -1; +} + mclSize mclBnFr_getLittleEndian(void *buf, mclSize maxBufSize, const mclBnFr *x) { return cast(x)->getLittleEndian(buf, maxBufSize);