hash = $hash; $this->length = $length; } public function getLength(): int { return $this->length; } /** * Compute the HMAC. */ public function hash(string $text): string { return \hash($this->hash, $text, true); } public function name(): string { return $this->hash; } }