added missing key object handling in hmac_init;