chacha20

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: MIT Imports: 4 Imported by: 2

README

chacha20

We forked https://github.com/convto/ChaCha20 for the ChaCha64 for Firebird and made some modifications.

See https://firebirdsql.org/docs/drivers/java/6.0.x/release_notes.html#chacha64 .

  • ChaCha: 96 bit nonce and 32 bit counter
  • ChaCha64: 64 bit nonce and 64 bit counter

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 []byte, nonce []byte, count uint64) (*Cipher, error)

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