chacha20

package module
v0.0.0-...-0285c48 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 3 Imported by: 0

README

ChaCha20

ChaCha20 implementation for learning purposes. Do not use in production.

Implemented following Bernstein, D., "ChaCha, a variant of Salsa20", January 2008 and passed through the RFC8439 Appendix A.1 test suite.

blog (ja-JP)

https://convto.hatenablog.com/entry/2024/02/26/121013

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	// contains filtered or unexported fields
}

func NewCipher

func NewCipher(key [32]byte, count uint32, nonce [12]byte) *Cipher

func (*Cipher) XORKeyStream

func (c *Cipher) XORKeyStream(dst, src []byte)

Jump to

Keyboard shortcuts

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