diff options
Diffstat (limited to 'src/bls_if.cpp')
-rw-r--r-- | src/bls_if.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bls_if.cpp b/src/bls_if.cpp index 9054bb4..c8fb5d3 100644 --- a/src/bls_if.cpp +++ b/src/bls_if.cpp @@ -129,6 +129,11 @@ void blsSecretKeyRecover(blsSecretKey *sec, const blsSecretKey* const *secVec, c ((bls::SecretKey*)sec)->recover((const bls::SecretKey *const *)secVec, (const bls::Id *const *)idVec, n); } +void blsSecretKeyGetPop(const blsSecretKey *sec, blsSign *sign) +{ + ((const bls::SecretKey*)sec)->getPop(*(bls::Sign*)sign); +} + blsPublicKey *blsPublicKeyCreate() { return createT<bls::PublicKey, blsPublicKey>(); @@ -200,3 +205,8 @@ int blsSignVerify(const blsSign *sign, const blsPublicKey *pub, const char *m, s return ((const bls::Sign*)sign)->verify(*(const bls::PublicKey*)pub, std::string(m, size)); } +int blsSignVerifyPop(const blsSign *sign, const blsPublicKey *pub) +{ + return ((const bls::Sign*)sign)->verify(*(const bls::PublicKey*)pub); +} + |