ganeti-htoolsSource codeContentsIndex
Ganeti.Hash
Description
Crypto-related helper functions.
Synopsis
type HashKey = [Word8]
stringToWord8 :: String -> HashKey
word8ToString :: HashKey -> String
computeMac :: HashKey -> Maybe String -> String -> String
verifyMac :: HashKey -> Maybe String -> String -> String -> Bool
Documentation
type HashKey = [Word8]Source
Type alias for the hash key. This depends on the library being used.
stringToWord8 :: String -> HashKeySource
Converts a string to a list of bytes.
word8ToString :: HashKey -> StringSource
Converts a list of bytes to a string.
computeMac :: HashKey -> Maybe String -> String -> StringSource
Computes the HMAC for a given key/test and salt.
verifyMac :: HashKey -> Maybe String -> String -> String -> BoolSource
Verifies the HMAC for a given message.
Produced by Haddock version 2.6.0