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

OpenPGP Public-Key packet (tag 6). More...

Inheritance diagram for OpenPGP_PublicKeyPacket:
OpenPGP_Packet OpenPGP_PublicSubkeyPacket OpenPGP_SecretKeyPacket OpenPGP_SecretSubkeyPacket

Public Member Functions

 __construct ($key=array(), $algorithm='RSA', $timestamp=NULL, $version=4)
 
 self_signatures ($message)
 
 expires ($message)
 
 read ()
 
 read_key_material ()
 
 fingerprint_material ()
 
 fingerprint ()
 
 body ()
 
- Public Member Functions inherited from OpenPGP_Packet
 __construct ($data=NULL)
 
 read ()
 
 body ()
 
 header_and_body ()
 
 to_bytes ()
 
 read_timestamp ()
 
 read_mpi ()
 
 read_unpacked ($count, $format)
 
 read_byte ()
 
 read_bytes ($count=1)
 

Public Attributes

 $version
 
 $timestamp
 
 $algorithm
 
 $key
 
 $key_id
 
 $fingerprint
 
 $v3_days_of_validity
 
- Public Attributes inherited from OpenPGP_Packet
 $tag
 
 $size
 
 $data
 

Static Public Attributes

static $key_fields
 
static $algorithms
 
- Static Public Attributes inherited from OpenPGP_Packet
static $tags
 

Additional Inherited Members

- Static Public Member Functions inherited from OpenPGP_Packet
static class_for ($tag)
 
static parse (&$input)
 Parses an OpenPGP packet. More...
 
static parse_new_format ($input)
 Parses a new-format (RFC 4880) OpenPGP packet. More...
 
static parse_old_format ($input)
 Parses an old-format (PGP 2.6.x) OpenPGP packet. More...
 

Detailed Description

OpenPGP Public-Key packet (tag 6).

See Also
http://tools.ietf.org/html/rfc4880#section-5.5.1.1
http://tools.ietf.org/html/rfc4880#section-5.5.2
http://tools.ietf.org/html/rfc4880#section-11.1
http://tools.ietf.org/html/rfc4880#section-12

Definition at line 1305 of file openpgp.php.

Constructor & Destructor Documentation

OpenPGP_PublicKeyPacket::__construct (   $key = array(),
  $algorithm = 'RSA',
  $timestamp = NULL,
  $version = 4 
)

Definition at line 1310 of file openpgp.php.

Member Function Documentation

OpenPGP_PublicKeyPacket::body ( )

Definition at line 1426 of file openpgp.php.

OpenPGP_PublicKeyPacket::expires (   $message)

Definition at line 1346 of file openpgp.php.

OpenPGP_PublicKeyPacket::fingerprint ( )
OpenPGP_PublicKeyPacket::fingerprint_material ( )

Definition at line 1385 of file openpgp.php.

OpenPGP_PublicKeyPacket::read ( )
OpenPGP_PublicKeyPacket::read_key_material ( )
OpenPGP_PublicKeyPacket::self_signatures (   $message)

Definition at line 1325 of file openpgp.php.

Member Data Documentation

OpenPGP_PublicKeyPacket::$algorithm

Definition at line 1306 of file openpgp.php.

OpenPGP_PublicKeyPacket::$algorithms
static
Initial value:
= array(
1 => 'RSA',
2 => 'RSA',
3 => 'RSA',
16 => 'ELGAMAL',
17 => 'DSA',
18 => 'ECC',
19 => 'ECDSA',
21 => 'DH'
)

Definition at line 1446 of file openpgp.php.

OpenPGP_PublicKeyPacket::$fingerprint

Definition at line 1307 of file openpgp.php.

OpenPGP_PublicKeyPacket::$key

Definition at line 1307 of file openpgp.php.

OpenPGP_PublicKeyPacket::$key_fields
static
Initial value:
= array(
1 => array('n', 'e'),
16 => array('p', 'g', 'y'),
17 => array('p', 'q', 'g', 'y'),
)

Definition at line 1440 of file openpgp.php.

OpenPGP_PublicKeyPacket::$key_id

Definition at line 1307 of file openpgp.php.

OpenPGP_PublicKeyPacket::$timestamp

Definition at line 1306 of file openpgp.php.

OpenPGP_PublicKeyPacket::$v3_days_of_validity

Definition at line 1308 of file openpgp.php.

OpenPGP_PublicKeyPacket::$version

Definition at line 1306 of file openpgp.php.