cipher-aes 0.2.5 → 0.2.6
raw patch · 2 files changed
+14/−7 lines, 2 filesdep ~crypto-cipher-benchmarksdep ~crypto-cipher-testsdep ~crypto-cipher-types
Dependency ranges changed: crypto-cipher-benchmarks, crypto-cipher-tests, crypto-cipher-types
Files
- Tests/Tests.hs +8/−1
- cipher-aes.cabal +6/−6
Tests/Tests.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE ViewPatterns #-}+{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Applicative@@ -13,7 +14,7 @@ import Data.Byteable import qualified Data.ByteString as B import qualified Crypto.Cipher.AES as AES-import Crypto.Cipher.Types -- (iv128, IV(..), AuthTag(..), key128, key192, key256)+import Crypto.Cipher.Types import Crypto.Cipher.Tests import qualified KATECB@@ -38,6 +39,12 @@ kats128 = defaultKATs { kat_ECB = map toKatECB KATECB.vectors_aes128_enc , kat_CBC = map toKatCBC KATCBC.vectors_aes128_enc+ , kat_CFB = [ KAT_CFB { cfbKey = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6\xab\xf7\x15\x88\x09\xcf\x4f\x3c"+ , cfbIV = "\xC8\xA6\x45\x37\xA0\xB3\xA9\x3F\xCD\xE3\xCD\xAD\x9F\x1C\xE5\x8B"+ , cfbPlaintext = "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"+ , cfbCiphertext = "\x26\x75\x1f\x67\xa3\xcb\xb1\x40\xb1\x80\x8c\xf1\x87\xa4\xf4\xdf"+ }+ ] , kat_XTS = map toKatXTS KATXTS.vectors_aes128_enc , kat_AEAD = map toKatGCM KATGCM.vectors_aes128_enc }
cipher-aes.cabal view
@@ -1,5 +1,5 @@ Name: cipher-aes-Version: 0.2.5+Version: 0.2.6 Description: Fast AES cipher implementation with advanced mode of operations. .@@ -34,8 +34,8 @@ Build-Depends: base >= 4 && < 5 , bytestring , byteable- , crypto-cipher-types >= 0.0.3 , securemem >= 0.1.2+ , crypto-cipher-types >= 0.0.6 && < 0.1 Exposed-modules: Crypto.Cipher.AES ghc-options: -Wall -optc-O3 -fno-cse -fwarn-tabs C-sources: cbits/aes_generic.c@@ -52,8 +52,8 @@ Main-Is: Tests.hs Build-depends: base >= 4 && < 5 , cipher-aes- , crypto-cipher-types >= 0.0.3- , crypto-cipher-tests+ , crypto-cipher-types >= 0.0.6+ , crypto-cipher-tests >= 0.0.8 , bytestring , byteable , QuickCheck >= 2@@ -67,8 +67,8 @@ Build-depends: base >= 4 && < 5 , bytestring , cipher-aes- , crypto-cipher-types >= 0.0.3- , crypto-cipher-benchmarks+ , crypto-cipher-types >= 0.0.6+ , crypto-cipher-benchmarks >= 0.0.4 , criterion , mtl