Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShakeHashEx ¶
ShakeHashEx extends the sha3.ShakeHash, able to taking in uint32, uint16, uint8
Example ¶
I, _ := hex.DecodeString("8484aac063f6a062e5e7ccc0e6a377a0ef4a800a130c") var q uint32 = 2596996162 var j uint16 = 222 seed, _ := hex.DecodeString("7ec294f2d38a758be4b4c6353ebf7fc84abedf53f0f8ea3d89089e27c58e6a7c") x := make([]byte, 32) she := NewShakeHashEx() she.Write(I) she.WriteUint32(q) she.WriteUint16(j) she.Write(seed) she.Read(x) fmt.Printf("%x\n", x)
Output: 0049c991ae106898d43a057971bbc7aed5fddfe881b798a2969e92aee7cc2b43
func (*ShakeHashEx) Clone ¶
func (sh *ShakeHashEx) Clone() *ShakeHashEx
Clone makes a copy of ShakeHashEx
func (*ShakeHashEx) WriteUint16 ¶
func (sh *ShakeHashEx) WriteUint16(x uint16)
WriteUint16 takes in an uint16 to update its internal state
func (*ShakeHashEx) WriteUint32 ¶
func (sh *ShakeHashEx) WriteUint32(x uint32)
WriteUint32 takes in an uint32 to update its internal state
func (*ShakeHashEx) WriteUint8 ¶
func (sh *ShakeHashEx) WriteUint8(x uint8)
WriteUint8 takes in an uint8 to update its internal state
Click to show internal directories.
Click to hide internal directories.