Documentation
¶
Index ¶
- type Handler
- func (h *Handler) ComputeHMAC(message []byte) ([]byte, error)
- func (h *Handler) Decrypt(cipherText []byte, associatedData []byte) ([]byte, error)
- func (h *Handler) Encrypt(plainText []byte, associatedData []byte) ([]byte, error)
- func (h *Handler) GenerateKeyTemplate() (*tinkpb.KeyTemplate, error)
- func (h *Handler) Sign(message []byte) ([]byte, error)
- func (h *Handler) Verify(message []byte, signatureValue []byte) error
- func (h *Handler) VerifyHMAC(message []byte, hmacValue []byte) error
- type Transit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
func NewHandler ¶
func (*Handler) GenerateKeyTemplate ¶
func (h *Handler) GenerateKeyTemplate() (*tinkpb.KeyTemplate, error)
type Transit ¶
type Transit interface {
GenerateKeyTemplate() (*tinkpb.KeyTemplate, error)
Encrypt(plainText []byte, associatedData []byte) ([]byte, error)
Decrypt(cipherText []byte, associatedData []byte) ([]byte, error)
ComputeHMAC(message []byte) ([]byte, error)
VerifyHMAC(message []byte, hmacValue []byte) error
Sign(message []byte) ([]byte, error)
Verify(message []byte, signatureValue []byte) error
}
Click to show internal directories.
Click to hide internal directories.