Create_RSA_SHA1 (open)

Create a RSA signature on SHA1 hashed data. Throws when an invalid hash or key is supplied, or when the key is encrypted and the wrong passphrase is supplied.

Syntax

LOADLIB "wh::crypto.whlib";

STRING FUNCTION Create_RSA_SHA1(STRING hash, STRING keyfile, STRING passphrase)

Parameters

STRING hash

Hash to sign

STRING keyfile

PEM encoded private keyfile with which the data will be signed

STRING passphrase

Passphrase for the key (may be left empty)

Return value

STRING

Signature