Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chacha20Poly1305 ¶
type Chacha20Poly1305 struct {
// contains filtered or unexported fields
}
func (*Chacha20Poly1305) Decrypt ¶
func (s *Chacha20Poly1305) Decrypt(data []byte, pubKey string) ([]byte, error)
func (*Chacha20Poly1305) Encrypt ¶
func (s *Chacha20Poly1305) Encrypt(data []byte, pubKey string) ([]byte, error)
func (*Chacha20Poly1305) SecretKey ¶ added in v0.4.0
func (s *Chacha20Poly1305) SecretKey() secure.ProvideSecretKey
Click to show internal directories.
Click to hide internal directories.