11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SIGNATURE<br />

Syntax<br />

SIGNATURE(algorithm, action, data, dataLoc, key, keyLoc, keyFmt, pass, sigIn,<br />

result)<br />

Description<br />

The SIGNATURE() function generates a digital signature or verifies a signature<br />

using the supplied key.<br />

The algorithm parameter specifies the digest algorithm used to construct the<br />

signature. UniData supports the MD5 and SHA1 algorithms. There are four actions<br />

you can be specify: RSA-Sign, RSA-Verify, DSA-Sign, and DSA-Verify. If you<br />

choose DSA, you can only specify SHA1 in algorithm.<br />

The data to be signed or verified against a signature can be supplied either directly in<br />

data, or read from a file whose names is in data.<br />

For signing action, you should specify a private key. For verification, a public key is<br />

usually expected. However, UniData also accepts a private key for verification<br />

purposes. Key can be either in PEM or DER format. If a private key is password<br />

protected, the password must be supplied with pass.<br />

For verification, key can also contain a certificate or name of a certificate file. A<br />

signature is expected in sigIn.<br />

For signing action, the generated signature is put into result.<br />

1-740 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!