Refactor hmac functions to reduce duplication of the code
While looking at a way how to use either OpenSSL or PKCS#11 hashing functions, I found a lot of duplicated code in the HMAC functions.
While looking at a way how to use either OpenSSL or PKCS#11 hashing functions, I found a lot of duplicated code in the HMAC functions.