Libraries
Hmac Source Code
 previous   up   next 

Function Summary
string
hmac (in digestAlgorithm: digestAlg, in var string: cryptoKey, in string: message)
Compute a message authentication code with the given digestAlgorithm.
string
p_hash (in digestAlgorithm: digestAlg, in string: secret, in string: seed, in integer: length)
Data expansion function based on the message authentication (hmac) of digestAlg.

Function Detail

hmac

const func string: hmac (in digestAlgorithm: digestAlg, in var string: cryptoKey, in string: message)

Compute a message authentication code with the given digestAlgorithm.

Parameters:
digestAlg - The digestAlgorithm to be used.
Returns:
the message authentication code produced with digestAlg.
Raises:
RANGE_ERROR - If message contains a character beyond '\255;'.

p_hash

const func string: p_hash (in digestAlgorithm: digestAlg, in string: secret, in string: seed, in integer: length)

Data expansion function based on the message authentication (hmac) of digestAlg.

Parameters:
digestAlg - The digestAlgorithm to be used.
Returns:
a pseudo random string of the given length.


 previous   up   next