Documentation ¶
Index ¶
Constants ¶
View Source
const (
EncryptionExtensionName = "envelopeencryption"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionExtension ¶
type EncryptionExtension struct { KeyUri string `json:"key_uri,omitempty"` DEK string `json:"dek"` Type EncType `json:"type"` // contains filtered or unexported fields }
func NewEncryptionExtension ¶
func NewEncryptionExtension(conf *EncryptionExtension) (*EncryptionExtension, error)
func (*EncryptionExtension) Decrypt ¶
func (d *EncryptionExtension) Decrypt(raw []byte, aad []byte) (decrypted []byte, err error)
func (*EncryptionExtension) Encrypt ¶
func (d *EncryptionExtension) Encrypt(raw []byte, aad []byte) (encrypted []byte, err error)
func (*EncryptionExtension) GetType ¶
func (d *EncryptionExtension) GetType() *EncryptionExtension
Click to show internal directories.
Click to hide internal directories.