Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChachaEncoder ¶
type ChachaEncoder struct {
// contains filtered or unexported fields
}
func NewChachaEncoderParams ¶
func NewChachaEncoderParams(key []byte) *ChachaEncoder
func (*ChachaEncoder) Decrypt ¶
func (enc *ChachaEncoder) Decrypt(ciphertext []byte, nonce []byte) ([]byte, error)
func (*ChachaEncoder) Encrypt ¶
func (enc *ChachaEncoder) Encrypt(message []byte) ([]byte, []byte, error)
func (*ChachaEncoder) EncryptWithKey ¶
Click to show internal directories.
Click to hide internal directories.