Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NonceBytes is the length of GCM nonce. NonceBytes = 12 // KeyBytes is the length of GCM key. KeyBytes = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key is a wrapper for a symmetric key.
func FromString ¶
FromString returns a key by decoding a base32-encoded string.
func (*Key) MarshalBinary ¶
MarshalBinary implements BinaryMarshaler.
Click to show internal directories.
Click to hide internal directories.