temporal-codec-encryption
Safe HaskellNone
LanguageHaskell2010

Temporal.Codec.Encryption

Synopsis

Documentation

data Key Source #

Instances

Instances details
Show Key Source # 
Instance details

Defined in Temporal.Codec.Encryption

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #

Eq Key Source # 
Instance details

Defined in Temporal.Codec.Encryption

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

Ord Key Source # 
Instance details

Defined in Temporal.Codec.Encryption

Methods

compare :: Key -> Key -> Ordering #

(<) :: Key -> Key -> Bool #

(<=) :: Key -> Key -> Bool #

(>) :: Key -> Key -> Bool #

(>=) :: Key -> Key -> Bool #

max :: Key -> Key -> Key #

min :: Key -> Key -> Key #

genSecretKey :: MonadRandom m => m Key Source #

Generates a string of bytes (key) of a specific length for a given block cipher

initCipher :: Key -> Either String Cipher Source #

Initialize an AES256 cipher