Adding function to generate HMAC keys.