Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas M. DuBuisson
committed
Dec 18, 2014
1 parent
33cb104
commit 6c0d7ee
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{-# LANGUAGE CPP #-} | ||
{-| | ||
Maintainer: Thomas.DuBuisson@gmail.com | ||
Stability: beta | ||
Portability: portable | ||
Authors: Thomas DuBuisson | ||
Generic mode implementations useable by any correct BlockCipher | ||
instance Be aware there are no tests for CFB mode yet. See | ||
'Test.Crypto'. | ||
-} | ||
module Crypto.Modes where | ||
import {-# SOURCE #-} Crypto.Classes | ||
import Crypto.Types | ||
import Data.ByteString as B | ||
import Data.ByteString.Lazy as L | ||
dblIV :: BlockCipher k => IV k -> IV k | ||
cbcMac' :: BlockCipher k => k -> B.ByteString -> B.ByteString | ||
cbcMac :: BlockCipher k => k -> L.ByteString -> L.ByteString | ||
cMac :: BlockCipher k => k -> L.ByteString -> L.ByteString | ||
cMac' :: BlockCipher k => k -> B.ByteString -> B.ByteString | ||
cMacStar :: BlockCipher k => k -> [L.ByteString] -> L.ByteString | ||
cMacStar' :: BlockCipher k => k -> [B.ByteString] -> B.ByteString |