Documentation ¶
Overview ¶
Package crypto implements basic crypto primitives used in the project
Index ¶
Constants ¶
View Source
const (
KeyLength = 32
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
func GenerateKey ¶
func GenerateKeyFromPassword ¶
func GeneratePrivateKey ¶
func ParseKeyBytes ¶
func (Key) MarshalText ¶
func (*Key) UnmarshalText ¶
type KeyPassphrase ¶
type KeyPassphrase Key
A key which uses GenerateKeyFromPassword() for UnmarshalText()
func (*KeyPassphrase) UnmarshalText ¶
func (k *KeyPassphrase) UnmarshalText(text []byte) error
type PublicKeyPair ¶
type PublicKeyPair KeyPair
Click to show internal directories.
Click to hide internal directories.