def finalize(self) -> bytes:
        """
        Finalizes the hash context and returns the hash digest as bytes.
        """

        Finalizes the hash context and returns the hash digest as bytes.
        
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/cryptography/hazmat/primitives/hashes.py