Documentation
¶
Index ¶
- Constants
- type Instance
- func (x *Instance) Absorb(data []byte)
- func (x *Instance) Advance()
- func (x *Instance) Clear()
- func (x *Instance) Crypt(in, out []byte, decrypt bool)
- func (x *Instance) Initialize(key, id, counter []byte) error
- func (x *Instance) Squeeze(dst []byte)
- func (x *Instance) SqueezeAny(dst []byte, cu byte)
Constants ¶
View Source
const ( KeySize = 16 NonceSize = 16 TagSize = 16 FBPrime = 48 HashRate = 16 KeyRate = 44 KeyedSqueezeRate = 24 LRatchet = 16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) Advance ¶
func (x *Instance) Advance()
Advance executes a zero-length Down step, preparing for additional squeezing.
func (*Instance) Clear ¶
func (x *Instance) Clear()
Clear zeroes the internal state and resets control flags.
func (*Instance) Initialize ¶
initialize initializes the Xoodyak instance with the given key, id, and counter.
func (*Instance) Squeeze ¶
squeeze is a wrapper around squeezeAny that uses the Cyclist domain separator for keyed squeezing (tags).
func (*Instance) SqueezeAny ¶
squeezeAny is a wrapper around the Xoodyak-Squeezing mode that allows the caller to specify the control byte.
Click to show internal directories.
Click to hide internal directories.