Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

AsymmetricVerifySign – PB Docs 2021 – PowerBuilder Library

AsymmetricVerifySign – PB Docs 2021

AsymmetricVerifySign

PowerScript function

Description

Verifies the signature of the data with asymmetric algorithm.

Applies to

CrypterObject objects

Syntax

Argument

Description

crypter

The name of the CrypterObject object

algorithm

A value of the AsymmetricAlgorithm enumerated type that
specifies the type of asymmetric algorithm.

Values are:

  • RSA! – The Rivest-Shamir-Adleman cryptopsystem

  • DSA! – The Digital Signature Algorithm. It is designed
    to be used in signature, not in encryption and
    decryption.

  • Rabin! – The Rabin Algorithm

variable

A blob whose value is the data you want to verify with
Public-Key cipher.

When using the system blob function to convert a string to
a blob, it is recommended to specify its encoding argument to be
EncodingANSI! (for English characters only) or EncodingUTF8!,
otherwise, the default EncodingUTF16LE! will be used.

pubKey

A blob specifying the public key.

sign

A blob specifying the signature.

Return value

Integer. Returns 1 if it succeeds and -1 if it failed. If any
argument’s value is null, the method returns null. If an error occurs,
throw the exception.

Examples

This statement signs the data with RAS and validates the
signature.

See also

SymmetricEncrypt

SymmetricDecrypt

SymmetricGenerateKey

AsymmetricEncrypt

AsymmetricDecrypt

AsymmetricSign

AsymmetricGenerateKey

MD5

SHA

HMAC


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x