Sign Method
Creates a hash signature.
Object Oriented Interface
public function doSign();
Procedural Interface
ipworksencrypt_rsa_do_sign($res);
Remarks
This method will create a hash signature.
Before calling this method specify the input file by setting InputFile or InputMessage.
A key is required to create the hash signature. You may create a new key by calling CreateKey, or specify an existing key pair in Key. Alternatively, a certificate may be specified by setting Certificate. When this method is called the class will compute the hash for the specified file and populate HashValue. It will then create the hash signature using the specified Key and populate HashSignature.
To create the hash signature without first computing the hash simply specify HashValue before calling this method.
The Progress event will fire with updates for the hash computation progress only. The hash signature creation process is quick and does not require progress updates.