File: Modes.hs-boot

package info (click to toggle)
haskell-crypto-api 0.13.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 248 kB
  • sloc: haskell: 2,142; ansic: 10; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 866 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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