refactor; add bin.

This commit is contained in:
2025-12-29 11:17:06 -07:00
parent 2ebd1c9965
commit 014f6ea2d6
8 changed files with 93 additions and 14 deletions

View File

@@ -1,5 +1,4 @@
mod common;
use common::hexstr;
use emsha::hexstr::to_hex;
use emsha::sha256;
use emsha::{Hash, Result};
@@ -65,7 +64,7 @@ fn test_golden_tests() -> Result<()> {
while i < golden_tests.len() {
h.update(golden_tests[i].input)?;
h.finalize(&mut d)?;
hexstr(&d, &mut s);
to_hex(&d, &mut s);
assert_eq!(s, golden_tests[i].output);
h.reset()?;