p The hash functions supported are: md2, md4, md5, rmd160, sha1, sha224, sha256, sha384, sha512. .Sh RETURN VALUES The .Fn hmac returns .Dv -1 if the .Fa hname is not found. Otherwise the actual length of the digest string is returned (which could be bigger or smaller than .Fa dlen ) . This length depends on the hashing function selected. .Sh SEE ALSO .Xr md2 3 , .Xr md4 3 , .Xr md5 3 , .Xr rmd160 3 , .Xr sha1 3 , .Xr sha2 3 .Sh STANDARDS .%R RFC 2104 .Sh NOTES The maximum digest length has been extended from .Dv 64 to .Dv 128 bytes to handle SHA2. .Sh HISTORY The .Fn hmac function appeared in .Nx 8