Source/Packages

Data.SHA256Digest

packages/foundation/standard/src/Data/SHA256Digest.alpha

1,631 lines150 declarations64.2 KiBSHA-256 c46a79f2ab9a

def · lines 1376–1382

sha256DigestHexByteInRange

Full file
Canonical SHA-256 identity text is exactly 64 lowercase ASCII hex bytes. Uppercase is deliberately rejected so one digest has one display spelling.
1376def sha256DigestHexByteInRange =
1377  (lambda unrestricted value : Byte .
1378    (lambda unrestricted lower : Byte .
1379      (lambda unrestricted upper : Byte .
1380        (naturalAnd
1381          (naturalLessOrEqual (byte-to-nat lower) (byte-to-nat value))
1382          (nat-less-than (byte-to-nat value) (byte-to-nat upper))))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.