public function sign(JWKInterface $key, $input) { $this->checkKey($key); return hash_hmac($this->getHashAlgorithm(), $input, Base64Url::decode($key->get('k')), true); }