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 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.