package core:crypto/chacha20

Index

Types (1)
Variables (0)

This section is empty.

Procedure Groups (0)

This section is empty.

Types

Context ¶

Context :: struct {
	_s:              [16]u32,
	_buffer:         [64]u8,
	_off:            int,
	_is_ietf_flavor: bool,
	_is_initialized: bool,
}

Constants

KEY_SIZE ¶

KEY_SIZE :: 32

NONCE_SIZE ¶

NONCE_SIZE :: 12

XNONCE_SIZE ¶

XNONCE_SIZE :: 24

Variables

This section is empty.

Procedures

init ¶

init :: proc "odin" (ctx: ^Context, key, nonce: []u8) {…}

keystream_bytes ¶

keystream_bytes :: proc "odin" (ctx: ^Context, dst: []u8) {…}

reset ¶

reset :: proc "odin" (ctx: ^Context) {…}

seek ¶

seek :: proc "odin" (ctx: ^Context, block_nr: u64) {…}

xor_bytes ¶

xor_bytes :: proc "odin" (ctx: ^Context, dst, src: []u8) {…}

Procedure Groups

This section is empty.

Source Files

Generation Information

Generated with odin version dev-2023-03 (vendor "odin") Windows_amd64 @ 2023-03-29 21:09:05.342345600 +0000 UTC