Versions in this module Expand all Collapse all v0 v0.0.2 Nov 30, 2021 v0.0.1 Nov 30, 2021 Changes in this version + var ErrEncodingIsNotSet = errors.New("payload encoding metadata is not set") + var ErrEncodingIsNotSupported = errors.New("payload encoding is not supported") + var ErrIVFailure = errors.New("failed random IV generation") + var ErrMetadataIsNotSet = errors.New("metadata is not set") + var ErrPadFailure = errors.New("unpad error. This could happen when incorrect encryption key is used") + var ErrUnableToFindConverter = errors.New("payload converter is not found") + func NewEncryptDataConverterV1(opts Options) (converter.DataConverter, error) + type AESEncryptionServiceV1 struct + Cipher cipher.AEAD + func (a AESEncryptionServiceV1) Decrypt(encryptedBytes []byte) ([]byte, error) + func (a AESEncryptionServiceV1) Encrypt(unencryptedBytes []byte) ([]byte, error) + type Options struct + EncryptionKey []byte