diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-06 14:15:11 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-06 14:15:11 +0800 |
commit | 329b7e21ea915f4579581570ee6ae821eaeaef69 (patch) | |
tree | cccbba673d9529599754a544f78fa869edab01db /include/bls_if.h | |
parent | 5d6ecea7ad17251f90fe4fc0a1f1937d0eac47b5 (diff) | |
download | dexon-bls-329b7e21ea915f4579581570ee6ae821eaeaef69.tar dexon-bls-329b7e21ea915f4579581570ee6ae821eaeaef69.tar.gz dexon-bls-329b7e21ea915f4579581570ee6ae821eaeaef69.tar.bz2 dexon-bls-329b7e21ea915f4579581570ee6ae821eaeaef69.tar.lz dexon-bls-329b7e21ea915f4579581570ee6ae821eaeaef69.tar.xz dexon-bls-329b7e21ea915f4579581570ee6ae821eaeaef69.tar.zst dexon-bls-329b7e21ea915f4579581570ee6ae821eaeaef69.zip |
use defer
Diffstat (limited to 'include/bls_if.h')
-rw-r--r-- | include/bls_if.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/bls_if.h b/include/bls_if.h index 479e535..ed05106 100644 --- a/include/bls_if.h +++ b/include/bls_if.h @@ -7,7 +7,7 @@ http://opensource.org/licenses/BSD-3-Clause */ -#include <stdint.h> // for uint64_t +#include <stdint.h> // for uint64_t, uint8_t #include <stdlib.h> // for size_t #ifdef __cplusplus @@ -25,6 +25,15 @@ blsId *blsIdCreate(void); void blsIdDestroy(blsId *id); void blsIdPut(const blsId *id); +// return 0 if success +int blsIdSetStr(blsId *id, const char *buf, size_t bufSize); + +/* + return written size + otherwise 0 +*/ +size_t blsIdGetStr(const blsId *id, char *buf, size_t maxBufSize); + void blsIdSet(blsId *id, const uint64_t *p); blsSecretKey* blsSecretKeyCreate(void); |