aboutsummaryrefslogtreecommitdiffstats
path: root/src/bls_c_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bls_c_impl.hpp')
-rw-r--r--src/bls_c_impl.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bls_c_impl.hpp b/src/bls_c_impl.hpp
index 197c146..b38c1ad 100644
--- a/src/bls_c_impl.hpp
+++ b/src/bls_c_impl.hpp
@@ -163,6 +163,12 @@ int blsSecretKeySetLittleEndian(blsSecretKey *sec, const void *buf, mclSize bufS
cast(&sec->v)->setArrayMask((const char *)buf, bufSize);
return 0;
}
+int blsSecretKeySetLittleEndianMod(blsSecretKey *sec, const void *buf, mclSize bufSize)
+{
+ bool b;
+ cast(&sec->v)->setArray(&b, (const char *)buf, bufSize, mcl::fp::Mod);
+ return b ? 0 : -1;
+}
void blsGetPublicKey(blsPublicKey *pub, const blsSecretKey *sec)
{