OpenPGP PHP
 All Classes Namespaces Functions Variables
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OpenPGP_Message Class Reference
Inheritance diagram for OpenPGP_Message:

Public Member Functions

 __construct (array $packets=array())
 
 to_bytes ()
 
 signatures ()
 Extract signed objects from a well-formatted message. More...
 
 verified_signatures ($verifiers)
 Function to extract verified signatures $verifiers is an array of callbacks formatted like array('RSA' => array('SHA256' => CALLBACK)) that take two parameters: raw message and signature packet. More...
 
 verify_one ($verifier, $sign, $sig)
 
 getIterator ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Static Public Member Functions

static parse_file ($path)
 
static parse ($input)
 
static parse_stream ($input)
 
static parse_string ($input)
 

Public Attributes

 $uri = NULL
 
 $packets = array()
 

Detailed Description

See Also
http://tools.ietf.org/html/rfc4880#section-4.1
http://tools.ietf.org/html/rfc4880#section-11
http://tools.ietf.org/html/rfc4880#section-11.3

Definition at line 205 of file openpgp.php.

Constructor & Destructor Documentation

OpenPGP_Message::__construct ( array  $packets = array())

Definition at line 246 of file openpgp.php.

Member Function Documentation

OpenPGP_Message::getIterator ( )

Definition at line 372 of file openpgp.php.

OpenPGP_Message::offsetExists (   $offset)

Definition at line 378 of file openpgp.php.

OpenPGP_Message::offsetGet (   $offset)

Definition at line 382 of file openpgp.php.

OpenPGP_Message::offsetSet (   $offset,
  $value 
)

Definition at line 386 of file openpgp.php.

OpenPGP_Message::offsetUnset (   $offset)

Definition at line 390 of file openpgp.php.

static OpenPGP_Message::parse (   $input)
static
static OpenPGP_Message::parse_file (   $path)
static

Definition at line 209 of file openpgp.php.

static OpenPGP_Message::parse_stream (   $input)
static

Definition at line 229 of file openpgp.php.

static OpenPGP_Message::parse_string (   $input)
static

Definition at line 233 of file openpgp.php.

OpenPGP_Message::signatures ( )

Extract signed objects from a well-formatted message.

Recurses into CompressedDataPacket

See Also
http://tools.ietf.org/html/rfc4880#section-11

Definition at line 265 of file openpgp.php.

OpenPGP_Message::to_bytes ( )

Definition at line 250 of file openpgp.php.

OpenPGP_Message::verified_signatures (   $verifiers)

Function to extract verified signatures $verifiers is an array of callbacks formatted like array('RSA' => array('SHA256' => CALLBACK)) that take two parameters: raw message and signature packet.

Definition at line 332 of file openpgp.php.

OpenPGP_Message::verify_one (   $verifier,
  $sign,
  $sig 
)

Definition at line 353 of file openpgp.php.

Member Data Documentation

OpenPGP_Message::$packets = array()

Definition at line 207 of file openpgp.php.

OpenPGP_Message::$uri = NULL

Definition at line 206 of file openpgp.php.