ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.Hash

Description

Crypto-related helper functions.

Synopsis

Documentation

computeMac :: HashKey -> Maybe String -> String -> String #

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

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

Verifies the HMAC for a given message.

type HashKey = [Word8] #

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