Web3S_Demo > Web 3S Crypto Function Library > VerifyCryptographicSignature

VerifyCryptographicSignature

Verifies the validity of a cryptographic signature against the signed data.

Inputs

In
Exec

Signature
Array of Bytes

the signature that will be verified

Data
Array of Bytes

data that has been signed

Key (P EM)
Array of Bytes

raw, PEM-encoded key data

Is Private
Boolean

if true, key is treated as a private key

Password
String

if using private key, password for decrypting a pass-phrase encrypted PEM key. For unencrypted keys leave empty.

Message Digest
EWeb3S_MessageDigestAlgorithm Enum

Message Digest algorithm used for hashing the data before signing

Outputs

Out
Exec

Valid
Boolean

in case of success, true if signature is valid, false otherwise

Error Message
String

error message in case of failure

Success
Boolean

True if verification was successful, false otherwise