MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / sha256_empty

Function sha256_empty

rust/stringzilla.rs:3852–3859  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3850
3851 #[test]
3852 fn sha256_empty() {
3853 let hash = sz::Sha256::hash(b"");
3854 let expected = [
3855 0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae,
3856 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55,
3857 ];
3858 assert_eq!(hash, expected);
3859 }
3860
3861 #[test]
3862 fn sha256_abc() {

Callers

nothing calls this directly

Calls 1

hashFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…