diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-08 08:10:50 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-08 08:10:50 +0800 |
commit | 1ada521ca01a12654337ce292b6c6e6f18a90580 (patch) | |
tree | 86ed07977b6d8fc8bf66b90cbedecc45fea5e2c0 /include/bls_if.h | |
parent | 75208d3bd90a9ce8852850f611b141848f4ef135 (diff) | |
download | dexon-bls-1ada521ca01a12654337ce292b6c6e6f18a90580.tar dexon-bls-1ada521ca01a12654337ce292b6c6e6f18a90580.tar.gz dexon-bls-1ada521ca01a12654337ce292b6c6e6f18a90580.tar.bz2 dexon-bls-1ada521ca01a12654337ce292b6c6e6f18a90580.tar.lz dexon-bls-1ada521ca01a12654337ce292b6c6e6f18a90580.tar.xz dexon-bls-1ada521ca01a12654337ce292b6c6e6f18a90580.tar.zst dexon-bls-1ada521ca01a12654337ce292b6c6e6f18a90580.zip |
avoid copy of instance at Go
Diffstat (limited to 'include/bls_if.h')
-rw-r--r-- | include/bls_if.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/bls_if.h b/include/bls_if.h index be4ba40..7872778 100644 --- a/include/bls_if.h +++ b/include/bls_if.h @@ -23,6 +23,7 @@ void blsInit(void); blsId *blsIdCreate(void); void blsIdDestroy(blsId *id); +void blsIdCopy(blsId *dst, const blsId *src); // return 0 if success int blsIdSetStr(blsId *id, const char *buf, size_t bufSize); @@ -40,6 +41,7 @@ void blsIdSet(blsId *id, const uint64_t *p); blsSecretKey* blsSecretKeyCreate(void); void blsSecretKeyDestroy(blsSecretKey *sec); void blsSecretKeyPut(const blsSecretKey *sec); +void blsSecretKeyCopy(blsSecretKey *dst, const blsSecretKey *src); void blsSecretKeySetArray(blsSecretKey *sec, const uint64_t *p); int blsSecretKeySetStr(blsSecretKey *sec, const char *buf, size_t bufSize); size_t blsSecretKeyGetStr(const blsSecretKey *sec, char *buf, size_t maxBufSize); @@ -55,6 +57,7 @@ void blsSecretKeyGetPop(const blsSecretKey *sec, blsSign *sign); blsPublicKey *blsPublicKeyCreate(void); void blsPublicKeyDestroy(blsPublicKey *pub); void blsPublicKeyPut(const blsPublicKey *pub); +void blsPublicKeyCopy(blsPublicKey *dst, const blsPublicKey *src); 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); @@ -64,6 +67,7 @@ void blsPublicKeyRecover(blsPublicKey *pub, const blsPublicKey *const *pubVec, c blsSign *blsSignCreate(void); void blsSignDestroy(blsSign *sign); void blsSignPut(const blsSign *sign); +void blsSignCopy(blsSign *dst, const blsSign *src); 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); |