@scolastico-dev/walu
    Preparing search index...

    Function checkIfValidSignature

    • Verifies the cryptographic signature of a version file using RSA-PKCS1-v1.5 with SHA-256. This function ensures the integrity and authenticity of the version information by validating the digital signature against the provided public key.

      Parameters

      • cfg: WaluConfig

        The WALU configuration containing the RSA public key

      • version: IVersionFile

        The version file object containing hash, version, and signature

      Returns Promise<void>

      Promise that resolves if the signature is valid

      If signature verification fails or any cryptographic operation fails