Documentation ¶ Index ¶ func New() hash.Hash func Sm3Sum(data []byte) []byte type SM3 func (sm3 *SM3) BlockSize() int func (sm3 *SM3) Close() func (sm3 *SM3) Reset() func (sm3 *SM3) Size() int func (sm3 *SM3) Sum(in []byte) []byte func (sm3 *SM3) Write(p []byte) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New() hash.Hash 创建哈希计算实例 func Sm3Sum ¶ func Sm3Sum(data []byte) []byte Types ¶ type SM3 ¶ type SM3 struct { // contains filtered or unexported fields } func (*SM3) BlockSize ¶ func (sm3 *SM3) BlockSize() int BlockSize returns the hash's underlying block size. The Write method must be able to accept any amount of data, but it may operate more efficiently if all writes are a multiple of the block size. func (*SM3) Close ¶ func (sm3 *SM3) Close() 关闭session func (*SM3) Reset ¶ func (sm3 *SM3) Reset() func (*SM3) Size ¶ func (sm3 *SM3) Size() int Size returns the number of bytes Sum will return. func (*SM3) Sum ¶ func (sm3 *SM3) Sum(in []byte) []byte func (*SM3) Write ¶ func (sm3 *SM3) Write(p []byte) (int, error) Source Files ¶ View all Source files sm3.go Click to show internal directories. Click to hide internal directories.