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

OpenPGP Secret-Key packet (tag 5). More...

Inheritance diagram for OpenPGP_SecretKeyPacket:
OpenPGP_PublicKeyPacket OpenPGP_Packet OpenPGP_SecretSubkeyPacket

Public Member Functions

 read ()
 
 key_from_input ()
 
 body ()
 
- Public Member Functions inherited from OpenPGP_PublicKeyPacket
 __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

 $s2k_useage
 
 $s2k
 
 $symmetric_algorithm
 
 $private_hash
 
 $encrypted_data
 
- Public Attributes inherited from OpenPGP_PublicKeyPacket
 $version
 
 $timestamp
 
 $algorithm
 
 $key
 
 $key_id
 
 $fingerprint
 
 $v3_days_of_validity
 
- Public Attributes inherited from OpenPGP_Packet
 $tag
 
 $size
 
 $data
 

Static Public Attributes

static $secret_key_fields
 
- Static Public Attributes inherited from OpenPGP_PublicKeyPacket
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 Secret-Key packet (tag 5).

See Also
http://tools.ietf.org/html/rfc4880#section-5.5.1.3
http://tools.ietf.org/html/rfc4880#section-5.5.3
http://tools.ietf.org/html/rfc4880#section-11.2
http://tools.ietf.org/html/rfc4880#section-12

Definition at line 1479 of file openpgp.php.

Member Function Documentation

OpenPGP_SecretKeyPacket::body ( )

Definition at line 1512 of file openpgp.php.

OpenPGP_SecretKeyPacket::key_from_input ( )

Definition at line 1506 of file openpgp.php.

OpenPGP_SecretKeyPacket::read ( )

Definition at line 1481 of file openpgp.php.

Member Data Documentation

OpenPGP_SecretKeyPacket::$encrypted_data

Definition at line 1480 of file openpgp.php.

OpenPGP_SecretKeyPacket::$private_hash

Definition at line 1480 of file openpgp.php.

OpenPGP_SecretKeyPacket::$s2k

Definition at line 1480 of file openpgp.php.

OpenPGP_SecretKeyPacket::$s2k_useage

Definition at line 1480 of file openpgp.php.

OpenPGP_SecretKeyPacket::$secret_key_fields
static
Initial value:
= array(
1 => array('d', 'p', 'q', 'u'),
2 => array('d', 'p', 'q', 'u'),
3 => array('d', 'p', 'q', 'u'),
16 => array('x'),
17 => array('x'),
)

Definition at line 1498 of file openpgp.php.

OpenPGP_SecretKeyPacket::$symmetric_algorithm

Definition at line 1480 of file openpgp.php.