diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-04-02 12:23:19 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-04-02 12:23:19 +0800 |
commit | e93fda860bf3b798f6a02ee806da6693a725dd2f (patch) | |
tree | 751a06a920d216ffa9530c3c569c223ac96e2e5d /go/blscgo/bls.go | |
parent | 6e2296d78de9f3d29d4370b887e9fa92c251817f (diff) | |
download | dexon-bls-e93fda860bf3b798f6a02ee806da6693a725dd2f.tar dexon-bls-e93fda860bf3b798f6a02ee806da6693a725dd2f.tar.gz dexon-bls-e93fda860bf3b798f6a02ee806da6693a725dd2f.tar.bz2 dexon-bls-e93fda860bf3b798f6a02ee806da6693a725dd2f.tar.lz dexon-bls-e93fda860bf3b798f6a02ee806da6693a725dd2f.tar.xz dexon-bls-e93fda860bf3b798f6a02ee806da6693a725dd2f.tar.zst dexon-bls-e93fda860bf3b798f6a02ee806da6693a725dd2f.zip |
sign is constant time ; signCT is removedrelease20170402
Diffstat (limited to 'go/blscgo/bls.go')
-rw-r--r-- | go/blscgo/bls.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/go/blscgo/bls.go b/go/blscgo/bls.go index 170146c..5873f38 100644 --- a/go/blscgo/bls.go +++ b/go/blscgo/bls.go @@ -251,7 +251,7 @@ func (sec *SecretKey) GetPublicKey() (pub *PublicKey) { return pub } -// Sign -- +// Constant Time Sign -- func (sec *SecretKey) Sign(m string) (sign *Sign) { sign = new(Sign) buf := []byte(m) @@ -259,14 +259,6 @@ func (sec *SecretKey) Sign(m string) (sign *Sign) { C.blsSecretKeySign(sec.getPointer(), sign.getPointer(), (*C.char)(unsafe.Pointer(&buf[0])), C.size_t(len(buf))) return sign } -// Constant Time Sign -- -func (sec *SecretKey) SignCT(m string) (sign *Sign) { - sign = new(Sign) - buf := []byte(m) - // #nosec - C.blsSecretKeySignCT(sec.getPointer(), sign.getPointer(), (*C.char)(unsafe.Pointer(&buf[0])), C.size_t(len(buf))) - return sign -} // Add -- func (sign *Sign) Add(rhs *Sign) { |