Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataEncryptor ¶
type DataEncryptor struct {
// contains filtered or unexported fields
}
DataEncryptor performs partial encryption of plaintext in the cell
func NewMaskingDataEncryptor ¶
func NewMaskingDataEncryptor(keystore keystore.DecryptionKeyStore, dataEncryptor encryptor.DataEncryptor) (*DataEncryptor, error)
NewMaskingDataEncryptor return new DataEncryptor
func (*DataEncryptor) EncryptWithClientID ¶
func (e *DataEncryptor) EncryptWithClientID(clientID, data []byte, setting config.ColumnEncryptionSetting) ([]byte, error)
EncryptWithClientID mask data according to setting
type DataManipulator ¶
type DataManipulator interface { ChangeData([]byte) ([]byte, error) UnchangeData([]byte) ([]byte, error) }
DataManipulator interface for component which do something with data and return changed
type KeyStore ¶
type KeyStore interface { keystore.PublicKeyStore GetServerDecryptionPrivateKeys(id []byte) ([]*keys.PrivateKey, error) }
KeyStore interface with required methods from keystore for masking
type Masker ¶
type Masker interface { Mask(data []byte, dataManipulator DataManipulator, plaintextLength int, side common.PlainTextSide) ([]byte, error) Unmask(data []byte, dataManipulator DataManipulator, plaintextLength int, maskingPattern []byte, side common.PlainTextSide) ([]byte, error) }
Masker interface for masking/unmasking data
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor implements DataProcessor interface and unmask matched data
func NewProcessor ¶
func NewProcessor(decryptor base.ExtendedDataProcessor) (*Processor, error)
NewProcessor return new Processor for decryption masked data
Click to show internal directories.
Click to hide internal directories.