OpenPGP PHP
 All Classes Namespaces Functions Variables
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
OpenPGP_Crypt_RSA Class Reference

Public Member Functions

 __construct ($packet)
 
 key ($keyid=NULL)
 
 public_key ($keyid=NULL)
 
 private_key ($keyid=NULL)
 
 verify ($packet)
 
 sign ($packet, $hash='SHA256', $keyid=NULL)
 
 sign_key_userid ($packet, $hash='SHA256', $keyid=NULL)
 Pass a message with a key and userid packet to sign. More...
 
 decrypt ($packet)
 

Static Public Member Functions

static try_decrypt_session ($key, $edata)
 
static crypt_rsa_key ($mod, $exp, $hash='SHA256')
 
static convert_key ($packet, $private=false)
 
static convert_public_key ($packet)
 
static convert_private_key ($packet)
 

Public Attributes

 $message
 

Protected Attributes

 $key
 

Detailed Description

Definition at line 15 of file openpgp_crypt_rsa.php.

Constructor & Destructor Documentation

OpenPGP_Crypt_RSA::__construct (   $packet)

Definition at line 19 of file openpgp_crypt_rsa.php.

Member Function Documentation

static OpenPGP_Crypt_RSA::convert_key (   $packet,
  $private = false 
)
static

Definition at line 232 of file openpgp_crypt_rsa.php.

static OpenPGP_Crypt_RSA::convert_private_key (   $packet)
static

Definition at line 255 of file openpgp_crypt_rsa.php.

static OpenPGP_Crypt_RSA::convert_public_key (   $packet)
static

Definition at line 251 of file openpgp_crypt_rsa.php.

static OpenPGP_Crypt_RSA::crypt_rsa_key (   $mod,
  $exp,
  $hash = 'SHA256' 
)
static

Definition at line 221 of file openpgp_crypt_rsa.php.

OpenPGP_Crypt_RSA::decrypt (   $packet)

Definition at line 163 of file openpgp_crypt_rsa.php.

OpenPGP_Crypt_RSA::key (   $keyid = NULL)

Definition at line 28 of file openpgp_crypt_rsa.php.

OpenPGP_Crypt_RSA::private_key (   $keyid = NULL)

Definition at line 46 of file openpgp_crypt_rsa.php.

OpenPGP_Crypt_RSA::public_key (   $keyid = NULL)

Definition at line 41 of file openpgp_crypt_rsa.php.

OpenPGP_Crypt_RSA::sign (   $packet,
  $hash = 'SHA256',
  $keyid = NULL 
)

Definition at line 92 of file openpgp_crypt_rsa.php.

OpenPGP_Crypt_RSA::sign_key_userid (   $packet,
  $hash = 'SHA256',
  $keyid = NULL 
)

Pass a message with a key and userid packet to sign.

Definition at line 133 of file openpgp_crypt_rsa.php.

static OpenPGP_Crypt_RSA::try_decrypt_session (   $key,
  $edata 
)
static

Definition at line 205 of file openpgp_crypt_rsa.php.

OpenPGP_Crypt_RSA::verify (   $packet)

Definition at line 52 of file openpgp_crypt_rsa.php.

Member Data Documentation

OpenPGP_Crypt_RSA::$key
protected

Definition at line 16 of file openpgp_crypt_rsa.php.

OpenPGP_Crypt_RSA::$message

Definition at line 16 of file openpgp_crypt_rsa.php.