A RSA Private key
Reads/generates/exports rsa private keys. Also allows signing arbitary data and opening sealed data.
Please note that PHPs implemetation is kind of strange, getting the public key is only possible on certificates although they are also part of the public key.
Located in /phpsatk/local/org.eenterphace.sat.crypto.openssl/rsa.private.key.php (line 40)
Intializes the private key object
Checks whether the openssl extension is available.
Destructor
Will free the private key on object desctruction
Exports the private key
A passphrase can be used to protect the private key.
Exports the private key to a file
A passphrase can be used to protect the private key.
Generates a new private key
Gets the private key resource
Be warned: the resource will be freed (become invalid) on object destruction
Opens sealed (encrypted) data.
Sealed data is data encrypted using a symmetric cipher which is encrypted using a public key. You will have to recieve the encrypted data (PHP uses OpenSSL's RC4 cipher) and the RSA encrypted envelope key (which is used to decrypt the sealed data).
Signs some data
The signed data can be verified using the corresponding public key. SHA1 will be used for hash generation. Will return a signature that has to be passed with the data.
Documentation generated on Mon, 21 May 2007 10:35:18 +0200 by phpDocumentor 1.3.0RC5