ganeti
Safe HaskellNone

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 -> String Source #

Computes the HMAC for a given key/test and salt.

verifyMac :: HashKey -> Maybe String -> String -> String -> Bool Source #

Verifies the HMAC for a given message.