Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMAC ¶
type KeyMAC interface { // Creates a new, keyed Hash. New(key []byte) hash.Hash // MaxHashSize returns the maximum number of bytes of the hash // that will be used. If Hash.Sum() yields more bytes, they'll // be cut off. Ideal is Hash.Sum()==MaxHashSize(). MaxHashSize() int }
MAC Algorithm, that spawns a keyed hash.Hash instance.
func NewBlake2b ¶
func NewBlake2b() KeyMAC
Implements the keyed BLAKE2b-512 MAC. If the key is > 64, then the key is BLAKE2b-512-Hashed first.
func NewBlake2s ¶
func NewBlake2s() KeyMAC
Implements the keyed BLAKE2s-256 MAC. If the key is > 32, then the key is BLAKE2s-256-Hashed first.
func SimpleHash ¶
Implements HASH( key || message ) est should be h().Size()
type PrivateKey ¶
func GenerateKeyPair ¶
func GenerateKeyPair(group *Group, rand io.Reader) (pk *PrivateKey, e error)
Click to show internal directories.
Click to hide internal directories.