diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-07 07:22:46 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-07 07:22:46 +0800 |
commit | 5fa9d588563a14a18636bb228dc41f4ba5f6d457 (patch) | |
tree | 1ed5ee03b009c0829d864fe13a9242dfc65df989 /src/bls_if.cpp | |
parent | 9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c (diff) | |
download | dexon-bls-5fa9d588563a14a18636bb228dc41f4ba5f6d457.tar dexon-bls-5fa9d588563a14a18636bb228dc41f4ba5f6d457.tar.gz dexon-bls-5fa9d588563a14a18636bb228dc41f4ba5f6d457.tar.bz2 dexon-bls-5fa9d588563a14a18636bb228dc41f4ba5f6d457.tar.lz dexon-bls-5fa9d588563a14a18636bb228dc41f4ba5f6d457.tar.xz dexon-bls-5fa9d588563a14a18636bb228dc41f4ba5f6d457.tar.zst dexon-bls-5fa9d588563a14a18636bb228dc41f4ba5f6d457.zip |
add verifyPop
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); +} + |