Jose\Algorithm\Signature\HMAC::sign PHP Method

sign() public method

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