Create a hmac_sha256 method.
This is so that there is an HMAC method for each of the provided hash functions.
Also reduced redundant code by creating a method that accepts the hmac algorithm and returns the generated CString.