Documentation ¶
Overview ¶
Package datakey provides a AES GCM service
Index ¶
Constants ¶
View Source
const KeySize = 32
KeySize defines the key length when creating new keys
View Source
const NonceSize = 32
NonceSize defines the nonce length when creating new keys
Variables ¶
This section is empty.
Functions ¶
func RandomBytes ¶
RandomBytes fills a slice with random bytes
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service operates on bytes with a data key
func NewService ¶
NewService returns an AES service for a given key
func (*Service) DecryptAsBytes ¶
DecryptAsBytes returns decrypted bytes
Click to show internal directories.
Click to hide internal directories.