github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/net/proxy/yuubinsya/crypto/hash.go (about)

     1  package crypto
     2  
     3  import (
     4  	"crypto/sha256"
     5  	"hash"
     6  )
     7  
     8  var Sha256 = sha256Hash{}
     9  
    10  type sha256Hash struct{}
    11  
    12  func (sha256Hash) New() hash.Hash { return sha256.New() }
    13  func (sha256Hash) Size() int      { return sha256.Size }