Documentation ¶
Index ¶
Constants ¶
View Source
const BlockSize = 64
SM3散列时一个Block的字节长度,对应bit长度为512位
View Source
const Size = 32
SM3散列结果的字节长度,对应bit长度为256位
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SM3 ¶
type SM3 struct {
// contains filtered or unexported fields
}
func (*SM3) BlockSize ¶
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) Reset ¶
func (sm3 *SM3) Reset()
Reset clears the internal state by zeroing bytes in the state buffer. This can be skipped for a newly-created hash state; the default zero-allocated state is correct.
Click to show internal directories.
Click to hide internal directories.