First, i want to thanks you for this great hash lib. It contain almost all hash function i can think of.
It's seems that there is defect when calculating string with HMAC, the return value is incorrect.
for example i used this code to get hash from string with HMAC:
IHMAC hmac = HashFactory.HMAC.CreateHMAC(HashFunction);
hmac.Key = Converters.ConvertStringToBytes(a_key,Encoding.ASCII);
Hash = hmac.ComputeBytes(Converters.ConvertStringToBytes(a_text)).ToString();
also i tried hmac.computeString(...)
Than the return result is:
File with HMAC:
Text with HMAC
The result of both text and file should be the same (text = file content).
The workaround is to create file that contain the string and then compute the hash but....
Thanks for any help.