Conformance tests generated from
plutus-conformance/test-cases/uplc/evaluation/builtin/semantics/sha3_256.
See Conformance.Eval for how they are run.
module Conformance.Builtin.Semantics.Sha3256 where open import Conformance.Eval
-- builtin/semantics/sha3_256/sha3_256-empty -- Test vector (0-bit input) from SHA3_256ShortMessage.rsp in -- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/sha3/sha-3bytetestvectors.zip test-sha3-256-empty : Untyped test-sha3-256-empty = (UApp (UApp (UBuiltin equalsByteString) (UApp (UBuiltin sha3-256) (UCon (tagCon bytestring (mkByteString ""))))) (UCon (tagCon bytestring (mkByteString "\167\255\198\248\191\RS\215fQ\193GV\160a\214b\245\128\255M\228;I\250\130\216\nK\128\248CJ")))) expected-sha3-256-empty : Result expected-sha3-256-empty = success (UCon (tagCon bool true)) -- Pending: bytestring constant; postulated builtin `equalsByteString`; postulated builtin `sha3-256`. pending-sha3-256-empty : Set pending-sha3-256-empty = Pending (evalRaw test-sha3-256-empty ≡ expected-sha3-256-empty)
-- builtin/semantics/sha3_256/sha3_256-length-200 -- Test vector (200-bit input) from SHA3_256ShortMessage.rsp in -- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/sha3/sha-3bytetestvectors.zip test-sha3-256-length-200 : Untyped test-sha3-256-length-200 = (UApp (UApp (UBuiltin equalsByteString) (UApp (UBuiltin sha3-256) (UCon (tagCon bytestring (mkByteString "\155?\223\141D\134\128\132\rb\132\242\153}:\245_\253\133\246\244\179=\DEL\141"))))) (UCon (tagCon bytestring (mkByteString "%\NUL]\DLE\232O\249|t\165\137\SOH;\228/\179\DELh\219d\189\252v&\239\192\221b\128wI:")))) expected-sha3-256-length-200 : Result expected-sha3-256-length-200 = success (UCon (tagCon bool true)) -- Pending: bytestring constant; postulated builtin `equalsByteString`; postulated builtin `sha3-256`. pending-sha3-256-length-200 : Set pending-sha3-256-length-200 = Pending (evalRaw test-sha3-256-length-200 ≡ expected-sha3-256-length-200)