Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yawning/chacha20
/ functions
Functions
37 in github.com/Yawning/chacha20
⨍
Functions
37
◇
Types & classes
4
↓ 6 callers
Method
KeyStream
KeyStream sets dst to the raw keystream.
chacha20.go:240
↓ 6 callers
Function
New
New returns a new ChaCha20/XChaCha20 instance.
chacha20.go:162
↓ 5 callers
Method
Seek
Seek sets the block counter to a given offset.
chacha20.go:84
↓ 4 callers
Method
XORKeyStream
XORKeyStream sets dst to the result of XORing src with the key stream. Dst and src may be the same slice but otherwise should not overlap.
chacha20.go:178
↓ 4 callers
Method
doBlocks
(dst, src []byte, nrBlocks int)
chacha20.go:275
↓ 2 callers
Method
HChaCha
HChaCha calculates the HChaCha20 hash. Note: `dst` is guaranteed to be HashSize bytes.
internal/api/api.go:58
↓ 2 callers
Method
Name
Name returns the name of the implementation.
internal/api/api.go:48
↓ 2 callers
Function
blockWrapper
(fn func(*[api.StateSize]uint32, []byte, []byte))
internal/hardware/impl_amd64.go:57
↓ 2 callers
Method
doReKey
(key, nonce []byte)
chacha20.go:105
↓ 1 callers
Method
Blocks
Blocks calculates the ChaCha20 blocks. If src is not nil, dst will be set to the XOR of src with the key stream, otherwise dst will be set to the key
internal/api/api.go:53
↓ 1 callers
Function
Register
Register appends the implementation(s) to the provided slice, and returns the new slice.
internal/hardware/impl.go:25
↓ 1 callers
Function
Register
Register appends the implementation to the provided slice, and returns the new slice.
internal/ref/impl.go:372
↓ 1 callers
Method
Reset
Reset zeros the key data so that it will no longer appear in the process's memory.
chacha20.go:74
↓ 1 callers
Function
doBenchN
(b *testing.B, n int)
chacha20_test.go:508
↓ 1 callers
Method
xorBufBytes
(dst, src []byte, n int)
chacha20.go:226
Function
BenchmarkChaCha20
(b *testing.B)
chacha20_test.go:484
Method
Blocks
(x *[api.StateSize]uint32, dst, src []byte, nrBlocks int)
internal/hardware/impl_amd64.go:49
Method
Blocks
(x *[api.StateSize]uint32, dst, src []byte, nrBlocks int)
internal/ref/impl.go:37
Function
HChaCha
HChaCha is the HChaCha20 hash function used to make XChaCha.
chacha20.go:172
Method
HChaCha
(key, nonce []byte, dst []byte)
internal/hardware/impl_amd64.go:53
Method
HChaCha
(key, nonce []byte, dst []byte)
internal/ref/impl.go:222
Method
Name
()
internal/hardware/impl_amd64.go:45
Method
Name
()
internal/ref/impl.go:33
Method
ReKey
ReKey reinitializes the ChaCha20/XChaCha20 instance with the provided key and nonce.
chacha20.go:100
Function
TestChaCha20
(t *testing.T)
chacha20_test.go:330
Function
blocksAVX2
go:noescape
internal/hardware/impl_amd64.go:27
Function
blocksSSSE3
go:noescape
internal/hardware/impl_amd64.go:33
Function
doTestBasic
(t *testing.T)
chacha20_test.go:350
Function
doTestBasicCounter
(t *testing.T)
chacha20_test.go:381
Function
doTestBasicIETFCounter
(t *testing.T)
chacha20_test.go:403
Function
doTestBasicIncremental
(t *testing.T)
chacha20_test.go:425
Function
doTestBasicRoundTrip
(t *testing.T)
chacha20_test.go:357
Function
doTestVectors
(t *testing.T)
chacha20_test.go:456
Function
hChaChaAVX2
go:noescape
internal/hardware/impl_amd64.go:30
Function
hChaChaSSSE3
go:noescape
internal/hardware/impl_amd64.go:36
Function
init
()
chacha20.go:286
Function
init
()
internal/hardware/impl_amd64.go:73