package core:crypto/md5

Index

Types (1)
Constants (2)
Variables (0)

This section is empty.

Procedure Groups (1)

Types

Md5_Context ¶

Md5_Context :: struct {
	data:    [64]u8,
	state:   [4]u32,
	bitlen:  u64,
	datalen: u32,
}

Constants

BLOCK_SIZE ¶

BLOCK_SIZE :: 64

DIGEST_SIZE ¶

DIGEST_SIZE :: 16

Variables

This section is empty.

Procedures

FF ¶

FF :: proc "contextless" (
	a, b, c, d, m: u32, 
	s:             int, 
	t:             u32, 
) -> u32 {…}

GG ¶

GG :: proc "contextless" (
	a, b, c, d, m: u32, 
	s:             int, 
	t:             u32, 
) -> u32 {…}

HH ¶

HH :: proc "contextless" (
	a, b, c, d, m: u32, 
	s:             int, 
	t:             u32, 
) -> u32 {…}

II ¶

II :: proc "contextless" (
	a, b, c, d, m: u32, 
	s:             int, 
	t:             u32, 
) -> u32 {…}

final ¶

final :: proc "odin" (ctx: ^Md5_Context, hash: []u8) {…}

hash_bytes ¶

hash_bytes :: proc "odin" (data: []u8) -> [16]u8 {…}
 

hash_bytes will hash the given input and return the computed hash

hash_bytes_to_buffer ¶

hash_bytes_to_buffer :: proc "odin" (data, hash: []u8) {…}
 

hash_bytes_to_buffer will hash the given input and write the computed hash into the second parameter. It requires that the destination buffer is at least as big as the digest size

hash_file ¶

hash_file :: proc "odin" (hd: os.Handle, load_at_once: bool = false) -> ([16]u8, bool) {…}
 

hash_file will read the file provided by the given handle and compute a hash

hash_stream ¶

hash_stream :: proc "odin" (s: io.Stream) -> ([16]u8, bool) {…}
 

hash_stream will read the stream in chunks and compute a hash from its contents

hash_string ¶

hash_string :: proc "odin" (data: string) -> [16]u8 {…}
 

hash_string will hash the given input and return the computed hash

hash_string_to_buffer ¶

hash_string_to_buffer :: proc "odin" (data: string, hash: []u8) {…}
 

hash_string_to_buffer will hash the given input and assign the computed hash to the second parameter. It requires that the destination buffer is at least as big as the digest size

init ¶

init :: proc "odin" (ctx: ^Md5_Context) {…}

transform ¶

transform :: proc "odin" (ctx: ^Md5_Context, data: []u8) {…}

update ¶

update :: proc "odin" (ctx: ^Md5_Context, data: []u8) {…}

Procedure Groups

Source Files

Generation Information

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