MCPcopy Create free account

hub / github.com/Yawning/chacha20 / functions

Functions37 in github.com/Yawning/chacha20

↓ 6 callersMethodKeyStream
KeyStream sets dst to the raw keystream.
chacha20.go:240
↓ 6 callersFunctionNew
New returns a new ChaCha20/XChaCha20 instance.
chacha20.go:162
↓ 5 callersMethodSeek
Seek sets the block counter to a given offset.
chacha20.go:84
↓ 4 callersMethodXORKeyStream
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 callersMethoddoBlocks
(dst, src []byte, nrBlocks int)
chacha20.go:275
↓ 2 callersMethodHChaCha
HChaCha calculates the HChaCha20 hash. Note: `dst` is guaranteed to be HashSize bytes.
internal/api/api.go:58
↓ 2 callersMethodName
Name returns the name of the implementation.
internal/api/api.go:48
↓ 2 callersFunctionblockWrapper
(fn func(*[api.StateSize]uint32, []byte, []byte))
internal/hardware/impl_amd64.go:57
↓ 2 callersMethoddoReKey
(key, nonce []byte)
chacha20.go:105
↓ 1 callersMethodBlocks
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 callersFunctionRegister
Register appends the implementation(s) to the provided slice, and returns the new slice.
internal/hardware/impl.go:25
↓ 1 callersFunctionRegister
Register appends the implementation to the provided slice, and returns the new slice.
internal/ref/impl.go:372
↓ 1 callersMethodReset
Reset zeros the key data so that it will no longer appear in the process's memory.
chacha20.go:74
↓ 1 callersFunctiondoBenchN
(b *testing.B, n int)
chacha20_test.go:508
↓ 1 callersMethodxorBufBytes
(dst, src []byte, n int)
chacha20.go:226
FunctionBenchmarkChaCha20
(b *testing.B)
chacha20_test.go:484
MethodBlocks
(x *[api.StateSize]uint32, dst, src []byte, nrBlocks int)
internal/hardware/impl_amd64.go:49
MethodBlocks
(x *[api.StateSize]uint32, dst, src []byte, nrBlocks int)
internal/ref/impl.go:37
FunctionHChaCha
HChaCha is the HChaCha20 hash function used to make XChaCha.
chacha20.go:172
MethodHChaCha
(key, nonce []byte, dst []byte)
internal/hardware/impl_amd64.go:53
MethodHChaCha
(key, nonce []byte, dst []byte)
internal/ref/impl.go:222
MethodName
()
internal/hardware/impl_amd64.go:45
MethodName
()
internal/ref/impl.go:33
MethodReKey
ReKey reinitializes the ChaCha20/XChaCha20 instance with the provided key and nonce.
chacha20.go:100
FunctionTestChaCha20
(t *testing.T)
chacha20_test.go:330
FunctionblocksAVX2
go:noescape
internal/hardware/impl_amd64.go:27
FunctionblocksSSSE3
go:noescape
internal/hardware/impl_amd64.go:33
FunctiondoTestBasic
(t *testing.T)
chacha20_test.go:350
FunctiondoTestBasicCounter
(t *testing.T)
chacha20_test.go:381
FunctiondoTestBasicIETFCounter
(t *testing.T)
chacha20_test.go:403
FunctiondoTestBasicIncremental
(t *testing.T)
chacha20_test.go:425
FunctiondoTestBasicRoundTrip
(t *testing.T)
chacha20_test.go:357
FunctiondoTestVectors
(t *testing.T)
chacha20_test.go:456
FunctionhChaChaAVX2
go:noescape
internal/hardware/impl_amd64.go:30
FunctionhChaChaSSSE3
go:noescape
internal/hardware/impl_amd64.go:36
Functioninit
()
chacha20.go:286
Functioninit
()
internal/hardware/impl_amd64.go:73