Function silc_hmac_alloc
SYNOPSIS
SilcBool silc_hmac_alloc(const char *name, SilcHash hash,
SilcHmac *new_hmac);
DESCRIPTION
Allocates a new SilcHmac object of name of `name'. The `hash' may
be provided as argument. If provided it is used as the hash function
of the HMAC. If it is NULL then the hash function is allocated and
the name of the hash algorithm is derived from the `name'. Returns
FALSE if such HMAC does not exist.
|