diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-17 18:52:05 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-03-17 18:52:13 +0800 |
commit | b0779efe006b54e91fb66b0e4cc4639718c6ea4f (patch) | |
tree | db598f2bda8a0898476d1a3cbc51e336edd78cd3 /include | |
parent | a3083341bd08426825bb9d7352b5235b9a974f00 (diff) | |
download | dexon-bls-b0779efe006b54e91fb66b0e4cc4639718c6ea4f.tar dexon-bls-b0779efe006b54e91fb66b0e4cc4639718c6ea4f.tar.gz dexon-bls-b0779efe006b54e91fb66b0e4cc4639718c6ea4f.tar.bz2 dexon-bls-b0779efe006b54e91fb66b0e4cc4639718c6ea4f.tar.lz dexon-bls-b0779efe006b54e91fb66b0e4cc4639718c6ea4f.tar.xz dexon-bls-b0779efe006b54e91fb66b0e4cc4639718c6ea4f.tar.zst dexon-bls-b0779efe006b54e91fb66b0e4cc4639718c6ea4f.zip |
add constant time sign SecretKey::signCT
Diffstat (limited to 'include')
-rw-r--r-- | include/bls.hpp | 2 | ||||
-rw-r--r-- | include/bls_if.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/bls.hpp b/include/bls.hpp index 28c6df6..2d6c313 100644 --- a/include/bls.hpp +++ b/include/bls.hpp @@ -119,6 +119,8 @@ public: void set(const uint64_t *p); void getPublicKey(PublicKey& pub) const; void sign(Sign& sign, const std::string& m) const; + // constant time sign + void signCT(Sign& sign, const std::string& m) const; /* make Pop(Proof of Possesion) pop = prv.sign(pub) diff --git a/include/bls_if.h b/include/bls_if.h index ce8463e..805ce10 100644 --- a/include/bls_if.h +++ b/include/bls_if.h @@ -77,6 +77,7 @@ void blsSecretKeyAdd(blsSecretKey *sec, const blsSecretKey *rhs); void blsSecretKeyInit(blsSecretKey *sec); void blsSecretKeyGetPublicKey(const blsSecretKey *sec, blsPublicKey *pub); void blsSecretKeySign(const blsSecretKey *sec, blsSign *sign, const char *m, size_t size); +void blsSecretKeySignCT(const blsSecretKey *sec, blsSign *sign, const char *m, size_t size); void blsSecretKeySet(blsSecretKey *sec, const blsSecretKey* msk, size_t k, const blsId *id); void blsSecretKeyRecover(blsSecretKey *sec, const blsSecretKey *secVec, const blsId *idVec, size_t n); void blsSecretKeyGetPop(const blsSecretKey *sec, blsSign *sign); |