salsa20

package
v1.0.3027 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Salsa20 = crypto.TypeMultiple.Generate()

Salsa20 key is 32 bytes, iv is 16 bytes.

Functions

This section is empty.

Types

type EncryptSalsa20

type EncryptSalsa20 struct{}

Salsa20 key is 32 bytes. iv is 16 bytes.

func (EncryptSalsa20) Decrypt

func (this EncryptSalsa20) Decrypt(data []byte, opt crypto.IOption) ([]byte, error)

解密 / Decrypt

func (EncryptSalsa20) Encrypt

func (this EncryptSalsa20) Encrypt(data []byte, opt crypto.IOption) ([]byte, error)

加密 / Encrypt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL