myPKEModule.VerifySignature(signature, signedData);
myPKEModule | The name of the Public Key Encryption module structure |
signature | The Digital signature to verify |
signedData | Data used to create the signature in DATA format |
Return: | A BOOLEAN value to indicate verification |
The VerifySignature function verifies the given digital signature using the options specified in the Public Key Encryption module definition.
Example:
IMPORT STD; privKeyFile := '/var/lib/HPCCSystems/myesp/test.key'; pubKeyFile := '/var/lib/HPCCSystems/myesp/test.key.pub'; //PKE Encryption module definition myPKEModule := STD.Crypto.PublicKeyEncryption('RSA', pubKeyFile, privKeyFile,''); DATA signature := myPKEModule.Sign((DATA)'The quick brown fox jumps'); OUTPUT(TRUE = myPKEModule.VerifySignature(signature, (DATA)'The quick brown fox jumps'));