Documentation ¶
Index ¶
- Constants
- func Decrypt(ciphertextPEM []byte, getKeys func(reference string) (Keys, error)) ([]byte, error)
- func Encrypt(pub [KeySize]byte, reference string, plaintext io.Reader) ([]byte, error)
- func ParsePrivKey(keyB64 string) ([KeySize]byte, error)
- func ParsePubKey(keyB64 string) ([KeySize]byte, string, error)
- type Keys
Constants ¶
View Source
const ( PEMType = "HANDOFF MESSAGE" HeaderReference = "Reference" KeySize = 32 MaxPlaintext = 4096 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.