Packages

builtin
cbindgen
core
core.alloc
core.alloc.arena
core.alloc.atomic
core.alloc.fixed
core.alloc.gc
core.alloc.heap
core.alloc.log
core.alloc.memdebug
core.alloc.pool
core.alloc.ring
core.arg_parse
core.array
core.avl_tree
core.bucket_array
core.conv
core.doc
core.encoding
core.encoding.base64
core.encoding.csv
core.encoding.hex
core.encoding.json
core.encoding.kdl
core.encoding.osad
core.encoding.utf8
core.hash
core.hash.md5
core.hash.sha1
core.hash.sha256
core.heap
core.intrinsics
core.intrinsics.atomics
core.intrinsics.onyx
core.intrinsics.types
core.intrinsics.wasm
core.io
core.io.binary
core.iter
core.js
core.list
core.map
core.math
core.memory
core.misc
core.net
core.os
core.random
core.set
core.slice
core.string
core.sync
core.test
core.thread
core.time
main
runtime
runtime.info
runtime.platform
runtime.vars
simd

package core.hash.md5

MD5_Digest
MD5_Digest :: struct {
    a: u32;
    b: u32;
    c: u32;
    d: u32;
    bytes_digested: u64;
}

Produces an MD5 digest of a string. This is guaranteed to succeed. Produces an MD5 digest of a stream. This is not guaranteed to succeed, as the stream may fail part way through.

Methods
MD5_Digest._finish
MD5_Digest._finish :: (self: &MD5_Digest, tail: [] u8) -> void
MD5_Digest.as_hex_str
MD5_Digest.as_hex_str :: (self: MD5_Digest) -> [] u8

Returns a temporary string of the hash.

MD5_Digest.as_str
MD5_Digest.as_str :: (self: MD5_Digest) -> [] u8

Returns a temporary byte array of the hash.

MD5_Digest.make
MD5_Digest.make :: () -> unknown
MD5_Digest.reset
MD5_Digest.reset :: (self: &MD5_Digest) -> void
digest
digest :: (x: [] u8) -> MD5_Digest
digest :: (s: &Stream) -> ? MD5_Digest

Produces an MD5 digest of a string or stream.

do_cycle
do_cycle :: (digest: &MD5_Digest, bytes: [64] u8, accumulate: bool) -> void
shift
shift :: macro (x: u32) -> unknown