core/crypto/chacha20

chacha20

Types

2

Implementation

Implementation :: enum int { Portable = 0, Simd128 = 1, Simd256 = 2, }Source

Implementation is a ChaCha20 implementation. Most callers will not need to use this as the package will automatically select the most performant implementation available.

Constants

4

Procedures

5

reset

reset :: proc(ctx: ^Context)Source

reset sanitizes the Context. The Context must be re-initialized to be used again.

xor_bytes

xor_bytes :: proc(ctx: ^Context, dst: []u8, src: []u8)Source

xor_bytes XORs each byte in src with bytes taken from the (X)ChaCha20 keystream, and writes the resulting output to dst. Dst and src MUST alias exactly or not at all.

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.