Skip to content

Commit

Permalink
Boot file for modes
Browse files Browse the repository at this point in the history
  • 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.
24 changes: 24 additions & 0 deletions Crypto/Modes.hs-boot
@@ -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

0 comments on commit 6c0d7ee

Please sign in to comment.