github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/crypto/hash.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package crypto
     4  
     5  // Hash32 represents an implementation for a 32 bit hash!
     6  type Hash32 interface {
     7  	Generate(buf []byte) (hash uint32)
     8  }
     9  
    10  // Hash64 represents an implementation for a 64 bit hash!
    11  type Hash64 interface {
    12  	Generate(buf []byte) (hash uint64)
    13  }
    14  
    15  // Hash128 represents an implementation for a 128 bit hash!
    16  type Hash128 interface {
    17  	Generate(buf []byte) (hash [16]byte)
    18  }
    19  
    20  // Hash256 represents an implementation for a 256 bit hash!
    21  type Hash256 interface {
    22  	Generate(buf []byte) (hash [32]byte)
    23  }