github.com/number571/tendermint@v0.34.11-gost/crypto/gost256/gost256_nocgo.go (about)

     1  // +build !libgost256
     2  
     3  package gost256
     4  
     5  import (
     6  	gkeys "github.com/number571/go-cryptopro/gost_r_34_10_2012"
     7  )
     8  
     9  func (privKey PrivKey) Sign(msg []byte) ([]byte, error) {
    10  	return gkeys.PrivKey256(privKey).Sign(msg)
    11  }
    12  
    13  func (pubKey PubKey) VerifySignature(msg []byte, sig []byte) bool {
    14  	return gkeys.PubKey256(pubKey).VerifySignature(msg, sig)
    15  }