package crypto import ( gcrypto "gitlab.com/mleku-dev-group/gnarl-hamadryad/crypto" ) // Re-export Hamadryad hash types and functions from gnarl-hamadryad. // The lattice-as-crypto uses Hamadryad (SWIFFT over Z_257[x]/(x^64+1)) // as its collision-resistant hash — faster than SHA-2, natively 448-bit, // and not yet fully optimized. const HamBytes = gcrypto.HamBytes type Hamadryad = gcrypto.Hamadryad func Hash(data []byte) Hamadryad { return gcrypto.Hash(data) } func hashValue(v any) Hamadryad { return gcrypto.HashValue(v) } func hashFingerprint(h string) Hamadryad { return hashValue(h) }