ganeti

Safe HaskellSafe-Infered

Ganeti.Hash

Description

Crypto-related helper functions.

Synopsis

Documentation

type HashKey = [Word8]Source

Type alias for the hash key. This depends on the library being used.

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.