aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bls.cpp4
-rw-r--r--src/bls_if.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/bls.cpp b/src/bls.cpp
index a159373..97ca2a1 100644
--- a/src/bls.cpp
+++ b/src/bls.cpp
@@ -206,6 +206,10 @@ void init(int curve, int maxUnitSize)
g_pQ = &Q;
g_pQcoeff = &Qcoeff;
}
+size_t getOpUnitSize()
+{
+ return sizeof(Fp) / sizeof(uint64_t);
+}
Id::Id(unsigned int id)
{
diff --git a/src/bls_if.cpp b/src/bls_if.cpp
index 05ba0e8..8fd1a55 100644
--- a/src/bls_if.cpp
+++ b/src/bls_if.cpp
@@ -47,6 +47,10 @@ void blsInit(int curve, int maxUnitSize)
{
bls::init(curve, maxUnitSize);
}
+size_t blsGetOpUnitSize()
+{
+ return bls::getOpUnitSize();
+}
blsId *blsIdCreate()
{