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

Function sha256_long

rust/stringzilla.rs:3885–3893  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3883
3884 #[test]
3885 fn sha256_long() {
3886 let msg = b"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq";
3887 let hash = sz::Sha256::hash(msg);
3888 let expected = [
3889 0x24, 0x8d, 0x6a, 0x61, 0xd2, 0x06, 0x38, 0xb8, 0xe5, 0xc0, 0x26, 0x93, 0x0c, 0x3e, 0x60, 0x39, 0xa3, 0x3c,
3890 0xe4, 0x59, 0x64, 0xff, 0x21, 0x67, 0xf6, 0xec, 0xed, 0xd4, 0x19, 0xdb, 0x06, 0xc1,
3891 ];
3892 assert_eq!(hash, expected);
3893 }
3894
3895 #[test]
3896 fn hmac_sha256_basic() {

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…