11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

privKey A string storing the generated private key or name of the file storing the<br />

generated private key.<br />

pubKey A string storing the generated public key or name of the file storing the<br />

generated public key.<br />

format 1 - PEM<br />

2 - DER<br />

keyLoc 1 - Put the key into string privKey/pubKey.<br />

2 - Put the key into a file.<br />

algorithm 1 - RSA<br />

2 - DSA<br />

keyLength Number of bits for the generated key. Between 512 and 2048.<br />

passPhrase A string storing the pass phrase to protect the private key.<br />

paramFile A parameter file needed by DSA key generation.<br />

generateKey Parameters<br />

The following table describes the status of each return code.<br />

Return<br />

Code Status<br />

0 Success.<br />

1 Key pair cannot be generated.<br />

2 Unrecognized key file format.<br />

3 Unrecognized encryption algorithm.<br />

4 Unrecognized key type or invalid key length (must be between 512 and<br />

2048).<br />

5 Empty pass phrase.<br />

generateKey Return Codes<br />

1-285

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

Saved successfully!

Ooh no, something went wrong!