Method |
Description |
|
__construct ( $packet ) |
Construct a wrapper object from a key or a message packet |
|
convert_key ( $packet, $private = false ) |
|
|
convert_private_key ( $packet ) |
|
|
convert_public_key ( $packet ) |
|
|
crypt_rsa_key ( $mod, $exp, $hash = 'SHA256' ) |
|
|
decrypt ( $packet ) |
|
|
key ( $keyid = NULL ) |
|
|
private_key ( $keyid = NULL ) |
Get Crypt_RSA for the private key |
|
public_key ( $keyid = NULL ) |
Get Crypt_RSA for the public key |
|
sign ( $packet, $hash = 'SHA256', $keyid = NULL ) |
Third parameter is the 16-digit key ID to use. |
|
sign_key_userid ( $packet, $hash = 'SHA256', $keyid = NULL ) |
TODO: merge this with the normal sign function |
|
try_decrypt_session ( $key, $edata ) |
|
|
verify ( $packet ) |
Second optional parameter to specify which signature to verify (if there is more than one) |
|