diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-06 16:40:22 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-06 16:40:22 +0800 |
commit | 00c3253835763f5f7da16981719c5e751bf7b3e7 (patch) | |
tree | 8899cf0b8c2c71d26fded6114aa56fd00e31ef46 /include/bls_if.h | |
parent | 1a4fb4458cbf69628a541c3957b53e01ea661cd4 (diff) | |
download | dexon-bls-00c3253835763f5f7da16981719c5e751bf7b3e7.tar dexon-bls-00c3253835763f5f7da16981719c5e751bf7b3e7.tar.gz dexon-bls-00c3253835763f5f7da16981719c5e751bf7b3e7.tar.bz2 dexon-bls-00c3253835763f5f7da16981719c5e751bf7b3e7.tar.lz dexon-bls-00c3253835763f5f7da16981719c5e751bf7b3e7.tar.xz dexon-bls-00c3253835763f5f7da16981719c5e751bf7b3e7.tar.zst dexon-bls-00c3253835763f5f7da16981719c5e751bf7b3e7.zip |
add Add(rhs) method
Diffstat (limited to 'include/bls_if.h')
-rw-r--r-- | include/bls_if.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bls_if.h b/include/bls_if.h index ac68495..943cb24 100644 --- a/include/bls_if.h +++ b/include/bls_if.h @@ -42,6 +42,7 @@ void blsSecretKeyDestroy(blsSecretKey *sec); void blsSecretKeyPut(const blsSecretKey *sec); int blsSecretKeySetStr(blsSecretKey *sec, const char *buf, size_t bufSize); size_t blsSecretKeyGetStr(const blsSecretKey *sec, char *buf, size_t maxBufSize); +void blsSecretKeyAdd(blsSecretKey *sec, const blsSecretKey *rhs); void blsSecretKeyInit(blsSecretKey *sec); void blsSecretKeyGetPublicKey(const blsSecretKey *sec, blsPublicKey *pub); @@ -52,12 +53,14 @@ void blsPublicKeyDestroy(blsPublicKey *pub); void blsPublicKeyPut(const blsPublicKey *pub); int blsPublicKeySetStr(blsPublicKey *pub, const char *buf, size_t bufSize); size_t blsPublicKeyGetStr(const blsPublicKey *pub, char *buf, size_t maxBufSize); +void blsPublicKeyAdd(blsPublicKey *pub, const blsPublicKey *rhs); blsSign *blsSignCreate(void); void blsSignDestroy(blsSign *sign); void blsSignPut(const blsSign *sign); int blsSignSetStr(blsSign *sign, const char *buf, size_t bufSize); size_t blsSignGetStr(const blsSign *sign, char *buf, size_t maxBufSize); +void blsSignAdd(blsSign *sign, const blsSign *rhs); int blsSignVerify(const blsSign *sign, const blsPublicKey *pub, const char *m, size_t size); |