Documentation ¶
Index ¶
Constants ¶
View Source
const NaclBoxKeyLength = 32
Variables ¶
This section is empty.
Functions ¶
func MarshalKeypair ¶
func MarshalKeypair(key NaclBoxKeypair) ([]byte, error)
func MarshalPublicKey ¶
func MarshalPublicKey(key [NaclBoxKeyLength]byte) ([]byte, error)
func ReadPublicKeyFile ¶
func ReadPublicKeyFile(name string) ([NaclBoxKeyLength]byte, error)
func UnmarshalPublicKey ¶
func UnmarshalPublicKey(blob []byte) ([NaclBoxKeyLength]byte, error)
Types ¶
type NaclBoxKeypair ¶
type NaclBoxKeypair struct { Private [NaclBoxKeyLength]byte Public [NaclBoxKeyLength]byte }
func ReadKeypairFile ¶
func ReadKeypairFile(name string) (NaclBoxKeypair, error)
func UnmarshalKeypair ¶
func UnmarshalKeypair(blob []byte) (NaclBoxKeypair, error)
Click to show internal directories.
Click to hide internal directories.