Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KeySize is the size of an encryption key in bytes KeySize = 32 // NonceSize is the size of a nonce in bytes NonceSize = 24 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
Key is a public or private encryption key
func (Key) MarshalJSON ¶
func (Key) MarshalYAML ¶
func (*Key) UnmarshalJSON ¶
func (*Key) UnmarshalYAML ¶
type KeyPair ¶
type KeyPair struct {
Public, Private Key
}
A KeyPair is a public, private key pair
func GenerateKeyPair ¶
func GenerateKeyPair() KeyPair
GenerateKeyPair generates a (public, private) encryption key
Click to show internal directories.
Click to hide internal directories.