pub fn hash_bytes_to_buf(
algo: HashAlgorithm,
data: &[u8],
out: &mut [u8],
) -> usizeExpand description
Hash data and write hex result directly into an output buffer.
Returns the number of hex bytes written. Avoids String allocation
on the critical single-file fast path.
out must be at least 128 bytes for BLAKE2b (64 * 2), 64 for SHA256, 32 for MD5.