HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecrypto-api-tests-0.3Haskell98

Test.AES

  • 1 value
valuemakeAESTests :: BlockCipher k => k -> IO [Test]
#

Based on NIST KATs, build a list of Tests for the instantiated AES algorithm. e.g. runTests $ makeAESTests (undefined :: AES128)

This is just a hack-job, if the BlockCipher instance doesn't toss keys of incorrect length then you'll get this test running, say, AES128 being tested with the first 128 bits of AES192 and AES256 tests.