logos.std.crypto
Module std · package logos-std
Functions
fnmd5
fn md5(src: *const u8, len: i64, out: &mut String) -> void
Computes MD5 of [src, src+len), appending the 16-byte digest (RFC 1321 order) to out.
src must be valid for len reads. MD5 is cryptographically broken; legacy formats only.
fnmd5_hex
fn md5_hex(src: *const u8, len: i64, out: &mut String) -> void
Computes MD5 of [src, src+len), appending the 32-char lowercase hex digest to out.
src must be valid for len reads.
fnmd5_hex_str
fn md5_hex_str(s: &[u8], out: &mut String) -> void
Computes MD5 of s, appending the 32-char lowercase hex digest to out.
fnmd5_str
fn md5_str(s: &[u8], out: &mut String) -> void
Computes MD5 of s, appending the 16-byte digest to out.
fnsha256
fn sha256(src: *const u8, len: i64, out: &mut String) -> void
Computes SHA-256 of [src, src+len), appending the 32-byte digest (big-endian) to out.
src must be valid for len reads.
fnsha256_hex
fn sha256_hex(src: *const u8, len: i64, out: &mut String) -> void
Computes SHA-256 of [src, src+len), appending the 64-char lowercase hex digest to out.
src must be valid for len reads.
fnsha256_hex_str
fn sha256_hex_str(s: &[u8], out: &mut String) -> void
Computes SHA-256 of s, appending the 64-char lowercase hex digest to out.
fnsha256_str
fn sha256_str(s: &[u8], out: &mut String) -> void
Computes SHA-256 of s, appending the 32-byte digest (big-endian) to out.