src/Robin/Ntlm/Crypt/Hasher/AbstractHasher.php
public function digest(): string
    {
        // Copy the context so we can keep using the hasher
        $context_copy = hash_copy($this->context);

        // Calculate the digest
        $digest = hash_final($this->context, true);

        // Set our context to the copied one, since the old one is now finalized
        $this->context = $context_copy;

        return $digest;
    }
public function digest(): string
    {
        // Copy the context so we can keep using the hasher
        $context_copy = hash_copy($this->context);

        // Calculate the digest
        $digest = hash_final($this->context, true);

        // Set our context to the copied one, since the old one is now finalized
        $this->context = $context_copy;

        return $digest;
    }
{@inheritDoc}