Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CryptoHandler ¶
type CryptoHandler interface { // Encrypts the plain data and returns a cipher data Encrypt(ctx context.Context, plain []byte) ([]byte, error) // Decrypts the cipher data and returns plain data Decrypt(ctx context.Context, cipher []byte) ([]byte, error) }
Crypto provides methods for encrypting and decrypting data
type CryptoProvider ¶
type CryptoProvider interface {
CryptoHandler(ctx context.Context) CryptoHandler
}
type TinkConfiguration ¶
type TinkCryptoHandler ¶
type TinkCryptoHandler struct {
// contains filtered or unexported fields
}
func NewTinkCryptoHandler ¶
func NewTinkCryptoHandler(c *TinkConfiguration) *TinkCryptoHandler
Click to show internal directories.
Click to hide internal directories.