botan-0.0.1.0: High-level Botan bindings
Safe HaskellNone
LanguageHaskell2010

Botan.MAC.CMAC

Documentation

data CMAC bc Source #

Instances

Instances details
Show (MACAuth (CMAC bc)) Source # 
Instance details

Defined in Botan.MAC.CMAC

Methods

showsPrec :: Int -> MACAuth (CMAC bc) -> ShowS #

show :: MACAuth (CMAC bc) -> String #

showList :: [MACAuth (CMAC bc)] -> ShowS #

Show (MACKey (CMAC bc)) Source # 
Instance details

Defined in Botan.MAC.CMAC

Methods

showsPrec :: Int -> MACKey (CMAC bc) -> ShowS #

show :: MACKey (CMAC bc) -> String #

showList :: [MACKey (CMAC bc)] -> ShowS #

BotanBlockCipher bc => MAC (CMAC bc) Source # 
Instance details

Defined in Botan.MAC.CMAC

Methods

mac :: MACKey (CMAC bc) -> ByteString -> MACAuth (CMAC bc) Source #

Eq (MACAuth (CMAC bc)) Source # 
Instance details

Defined in Botan.MAC.CMAC

Methods

(==) :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> Bool #

(/=) :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> Bool #

Eq (MACKey (CMAC bc)) Source # 
Instance details

Defined in Botan.MAC.CMAC

Methods

(==) :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> Bool #

(/=) :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> Bool #

Ord (MACAuth (CMAC bc)) Source # 
Instance details

Defined in Botan.MAC.CMAC

Methods

compare :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> Ordering #

(<) :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> Bool #

(<=) :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> Bool #

(>) :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> Bool #

(>=) :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> Bool #

max :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> MACAuth (CMAC bc) #

min :: MACAuth (CMAC bc) -> MACAuth (CMAC bc) -> MACAuth (CMAC bc) #

Ord (MACKey (CMAC bc)) Source # 
Instance details

Defined in Botan.MAC.CMAC

Methods

compare :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> Ordering #

(<) :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> Bool #

(<=) :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> Bool #

(>) :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> Bool #

(>=) :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> Bool #

max :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> MACKey (CMAC bc) #

min :: MACKey (CMAC bc) -> MACKey (CMAC bc) -> MACKey (CMAC bc) #

newtype MACAuth (CMAC bc) Source # 
Instance details

Defined in Botan.MAC.CMAC

newtype MACKey (CMAC bc) Source # 
Instance details

Defined in Botan.MAC.CMAC

type CMACKey bc = MACKey (CMAC bc) Source #

type CMACAuth bc = MACAuth (CMAC bc) Source #

cmac :: MAC (CMAC bc) => MACKey (CMAC bc) -> ByteString -> CMACAuth bc Source #

newCMACKey :: forall bc m. MonadRandomIO m => m (CMACKey bc) Source #