package xchacha20sha256
import "git.sr.ht/~pingoo/stdx/crypto/xchacha20sha256"
Index ¶
- Constants
- Variables
- type XChaCha20Sha256
- func New(key []byte) (*XChaCha20Sha256, error)
- func (*XChaCha20Sha256) NonceSize() int
- func (x *XChaCha20Sha256) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error)
- func (*XChaCha20Sha256) Overhead() int
- func (x *XChaCha20Sha256) Seal(dst, nonce, plaintext, additionalData []byte) []byte
Constants ¶
const ( KeySize = 32 NonceSize = 24 TagSize = 32 )
Variables ¶
Types ¶
type XChaCha20Sha256 ¶
type XChaCha20Sha256 struct {
// contains filtered or unexported fields
}
func New ¶
func New(key []byte) (*XChaCha20Sha256, error)
func (*XChaCha20Sha256) NonceSize ¶
func (*XChaCha20Sha256) NonceSize() int
func (*XChaCha20Sha256) Open ¶
func (x *XChaCha20Sha256) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error)
func (*XChaCha20Sha256) Overhead ¶
func (*XChaCha20Sha256) Overhead() int
func (*XChaCha20Sha256) Seal ¶
func (x *XChaCha20Sha256) Seal(dst, nonce, plaintext, additionalData []byte) []byte
Source Files ¶
xchacha20_sha256.go
- Version
- v0.0.0-20240218134121-094174641f6e (latest)
- Published
- Feb 18, 2024
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 4 months ago –
Tools for package owners.