SimpleAES 0.1 → 0.2
raw patch · 2 files changed
+6/−5 lines, 2 files
Files
- SimpleAES.cabal +1/−1
- src/Codec/Crypto/AES/IO.hsc +5/−4
SimpleAES.cabal view
@@ -1,7 +1,7 @@ Name: SimpleAES Synopsis: Fast AES encryption/decryption for bytestrings Description: A simplified binding to Brian Gladman's AES implementation, including a copy of that implementation-Version: 0.1+Version: 0.2 License: BSD3 License-file: COPYING Copyright: Copyright (c) 2009 University of Tromsø, 2009 David Himmelstrup
src/Codec/Crypto/AES/IO.hsc view
@@ -35,6 +35,8 @@ -- of 16; when using lazy bytestrings, its /component/ strict -- bytestrings must all satisfy this. --+data Mode = ECB | CBC -- CFB | OFB | CTR+ -- Other modes can handle bytestrings of any length. However, -- encrypting a bytestring of length 5 and then one of length 4 is not -- the same operation as encrypting a single bytestring of length 9;@@ -42,13 +44,12 @@ -- -- For OFB and CTR, Encrypt and Decrypt are the same operation. For -- CTR, the IV is the initial value of the counter.-data Mode = ECB | CBC -- | CFB | OFB | CTR data AESCtx = ECBCtx DirectionalCtx | CBCCtx IV DirectionalCtx--- | CFBCtx IV Direction EncryptCtxP--- | OFBCtx IV EncryptCtxP--- | CTRCtx IV EncryptCtxP+-- CFBCtx IV Direction EncryptCtxP+-- OFBCtx IV EncryptCtxP+-- CTRCtx IV EncryptCtxP data DirectionalCtx = EncryptCtx EncryptCtxP | DecryptCtx DecryptCtxP