aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffi/go/bls/bls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi/go/bls/bls.go b/ffi/go/bls/bls.go
index a49b7ef..b86078d 100644
--- a/ffi/go/bls/bls.go
+++ b/ffi/go/bls/bls.go
@@ -371,10 +371,10 @@ func (sec *SecretKey) SignHash(hash []byte) (sign *Sign) {
// VerifyHash --
func (sign *Sign) VerifyHash(pub *PublicKey, hash []byte) bool {
- // #nosec
if pub.getPointer() == nil {
return false
}
+ // #nosec
return C.blsVerifyHash(sign.getPointer(), pub.getPointer(), unsafe.Pointer(&hash[0]), C.size_t(len(hash))) == 1
}