Flowdock
method

verify_pss

Importance_2
v2_5_5 - Show latest stable - 0 notes - Class: RSA
verify_pss(p1, p2, p3, p4 = {}) public

Verifies data using the Probabilistic Signature Scheme (RSA-PSS).

The return value is true if the signature is valid, false otherwise. RSAError will be raised if an error occurs.

See #sign_pss for the signing operation and an example code.

Parameters

digest

A String containing the message digest algorithm name.

data

A String. The data to be signed.

salt_length

The length in octets of the salt. Two special values are reserved: :digest means the digest length, and :auto means automatically determining the length based on the signature.

mgf1_hash

The hash algorithm used in MGF1.

Show source
Register or log in to add new notes.