aboutsummaryrefslogtreecommitdiffstats
path: root/src/bls_if.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-03-17 18:52:05 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-03-17 18:52:13 +0800
commitb0779efe006b54e91fb66b0e4cc4639718c6ea4f (patch)
treedb598f2bda8a0898476d1a3cbc51e336edd78cd3 /src/bls_if.cpp
parenta3083341bd08426825bb9d7352b5235b9a974f00 (diff)
downloaddexon-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 'src/bls_if.cpp')
-rw-r--r--src/bls_if.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bls_if.cpp b/src/bls_if.cpp
index 8fd1a55..4080d70 100644
--- a/src/bls_if.cpp
+++ b/src/bls_if.cpp
@@ -134,6 +134,10 @@ void blsSecretKeySign(const blsSecretKey *sec, blsSign *sign, const char *m, siz
{
((const bls::SecretKey*)sec)->sign(*(bls::Sign*)sign, std::string(m, size));
}
+void blsSecretKeySignCT(const blsSecretKey *sec, blsSign *sign, const char *m, size_t size)
+{
+ ((const bls::SecretKey*)sec)->signCT(*(bls::Sign*)sign, std::string(m, size));
+}
void blsSecretKeySet(blsSecretKey *sec, const blsSecretKey* msk, size_t k, const blsId *id)
{