Documentation ¶
Index ¶
- Constants
- type Sha256Tweak
- func (h *Sha256Tweak) F(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte
- func (h *Sha256Tweak) H(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte
- func (h *Sha256Tweak) Hmsg(R []byte, PKseed []byte, PKroot []byte, M []byte) []byte
- func (h *Sha256Tweak) PRF(SEED []byte, adrs *address.ADRS) []byte
- func (h *Sha256Tweak) PRFmsg(SKprf []byte, OptRand []byte, M []byte) []byte
- func (h *Sha256Tweak) T_l(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte
- type Shake256Tweak
- func (h *Shake256Tweak) F(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte
- func (h *Shake256Tweak) H(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte
- func (h *Shake256Tweak) Hmsg(R []byte, PKseed []byte, PKroot []byte, M []byte) []byte
- func (h *Shake256Tweak) PRF(SEED []byte, adrs *address.ADRS) []byte
- func (h *Shake256Tweak) PRFmsg(SKprf []byte, OptRand []byte, M []byte) []byte
- func (h *Shake256Tweak) T_l(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte
- type TweakableHashFunction
Constants ¶
View Source
const ( Simple = "simple" Robust = "robust" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sha256Tweak ¶
func (*Sha256Tweak) PRF ¶
func (h *Sha256Tweak) PRF(SEED []byte, adrs *address.ADRS) []byte
Pseudorandom function PRF
type Shake256Tweak ¶
func (*Shake256Tweak) PRF ¶
func (h *Shake256Tweak) PRF(SEED []byte, adrs *address.ADRS) []byte
Pseudorandom function PRF
type TweakableHashFunction ¶
type TweakableHashFunction interface { Hmsg(R []byte, PKseed []byte, PKroot, M []byte) []byte PRF(SEED []byte, adrs *address.ADRS) []byte PRFmsg(SKprf []byte, OptRand []byte, M []byte) []byte F(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte H(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte T_l(PKseed []byte, adrs *address.ADRS, tmp []byte) []byte }
Click to show internal directories.
Click to hide internal directories.