Verifying APIs

interface Verify {
    verify(publicKey, signed, src): boolean;
    verifyByPSS(publicKey, signed, src): boolean;
}

Methods

  • Verifying

    Parameters

    • publicKey: Buffer

      RSA public key

    • signed: Buffer

      Signature to be verified

    • src: Buffer

      Raw data

    Returns boolean

  • Verifying PSS

    Parameters

    • publicKey: Buffer

      RSA public key

    • signed: Buffer

      Signature to be verified

    • src: Buffer

      Raw data

    Returns boolean