aboutsummaryrefslogtreecommitdiffstats
path: root/ffi/go/bls/mcl.go
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-05-15 04:34:40 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-05-15 04:34:40 +0800
commitd7555b3366b3161aee219343d0f4fe94087f239b (patch)
treee2c9bf3a0b59a6c74e34591ae5d843cba02fc599 /ffi/go/bls/mcl.go
parentbe595c0f9471779a72ef964ce7a13dc66322020b (diff)
downloaddexon-bls-d7555b3366b3161aee219343d0f4fe94087f239b.tar
dexon-bls-d7555b3366b3161aee219343d0f4fe94087f239b.tar.gz
dexon-bls-d7555b3366b3161aee219343d0f4fe94087f239b.tar.bz2
dexon-bls-d7555b3366b3161aee219343d0f4fe94087f239b.tar.lz
dexon-bls-d7555b3366b3161aee219343d0f4fe94087f239b.tar.xz
dexon-bls-d7555b3366b3161aee219343d0f4fe94087f239b.tar.zst
dexon-bls-d7555b3366b3161aee219343d0f4fe94087f239b.zip
fix SetHashOf
Diffstat (limited to 'ffi/go/bls/mcl.go')
-rw-r--r--ffi/go/bls/mcl.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi/go/bls/mcl.go b/ffi/go/bls/mcl.go
index 00feebc..713a8cc 100644
--- a/ffi/go/bls/mcl.go
+++ b/ffi/go/bls/mcl.go
@@ -135,7 +135,7 @@ func (x *Fr) SetByCSPRNG() {
// SetHashOf --
func (x *Fr) SetHashOf(buf []byte) bool {
// #nosec
- return C.mclBnFr_setHashOf(x.getPointer(), unsafe.Pointer(&buf[0]), C.size_t(len(buf))) == 1
+ return C.mclBnFr_setHashOf(x.getPointer(), unsafe.Pointer(&buf[0]), C.size_t(len(buf))) == 0
}
// GetString --