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, key, nonce: []u8) {…}

Procedure Groups

This section is empty.

Source Files

Generation Information

Generated with odin version dev-2022-10 (vendor "odin") Windows_amd64 @ 2022-10-06 21:11:36.706585700 +0000 UTC