Files
xgcl/sm/sm3/sm2_procompute.go
T
2026-05-27 23:03:00 +08:00

28 lines
506 B
Go

package sm3
import "hash"
// NewSm2Precomputed return a Hash which is the internal states after
// d.Write(entl[:])
// d.Write(id)
// d.Write(abg)
func NewSm2Precomputed() hash.Hash {
return &digest{
h: [8]uint32{
0xadadedb5, 0x0446043f,
0x08a87ace, 0xe86d2243,
0x8e232383, 0xbfc81fe2,
0xcf9117c8, 0x4707011d,
},
x: [64]byte{
0x21, 0x53, 0xd0, 0xa9,
0x87, 0x7c, 0xc6, 0x2a,
0x47, 0x40, 0x02, 0xdf,
0x32, 0xe5, 0x21, 0x39,
0xf0, 0xa0,
},
nx: 18,
len: 146,
}
}