Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignHashSM3 ¶
SignHashSM3 To verify SM2 signatures, digest should be padded by the follow method X, Y: the byte form of points X, Y in an SM2 public key BenchmarkVerify2-4 3000 405031 ns/op
Types ¶
type SM3 ¶
type SM3 struct {
// contains filtered or unexported fields
}
SM3 to hash msg
func (*SM3) BlockSize ¶
BlockSize required by the hash.Hash interface.BlockSize returns the hash's underlying 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.
func (*SM3) Size ¶
Size required by the hash.Hash interface. Size returns the number of bytes Sum will return.
Click to show internal directories.
Click to hide internal directories.