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

OpenPGP Signature packet (tag 2). More...

Inheritance diagram for OpenPGP_SignaturePacket:
OpenPGP_Packet OpenPGP_SignaturePacket_EmbeddedSignaturePacket

Public Member Functions

 __construct ($data=NULL, $key_algorithm=NULL, $hash_algorithm=NULL)
 
 sign_data ($signers)
 $this->data must be set to the data to sign (done by constructor) $signers in the same format as $verifiers for OpenPGP_Message. More...
 
 read ()
 
 calculate_trailer ()
 
 body_start ()
 
 body ()
 
 key_algorithm_name ()
 
 hash_algorithm_name ()
 
 issuer ()
 
- 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)
 

Static Public Member Functions

static get_subpackets ($input)
 
static get_subpacket (&$input)
 
static class_for ($tag)
 
- 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...
 

Public Attributes

 $version
 
 $signature_type
 
 $hash_algorithm
 
 $key_algorithm
 
 $hashed_subpackets
 
 $unhashed_subpackets
 
 $hash_head
 
 $trailer
 
- Public Attributes inherited from OpenPGP_Packet
 $tag
 
 $size
 
 $data
 

Static Public Attributes

static $hash_algorithms
 
static $subpacket_types
 
- Static Public Attributes inherited from OpenPGP_Packet
static $tags
 

Detailed Description

OpenPGP Signature packet (tag 2).

Be sure to NULL the trailer if you update a signature packet!

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

Definition at line 625 of file openpgp.php.

Constructor & Destructor Documentation

OpenPGP_SignaturePacket::__construct (   $data = NULL,
  $key_algorithm = NULL,
  $hash_algorithm = NULL 
)

Definition at line 629 of file openpgp.php.

Member Function Documentation

OpenPGP_SignaturePacket::body ( )

Definition at line 737 of file openpgp.php.

OpenPGP_SignaturePacket::body_start ( )

Definition at line 725 of file openpgp.php.

OpenPGP_SignaturePacket::calculate_trailer ( )

Definition at line 719 of file openpgp.php.

static OpenPGP_SignaturePacket::class_for (   $tag)
static

Definition at line 895 of file openpgp.php.

static OpenPGP_SignaturePacket::get_subpacket ( $input)
static

Definition at line 820 of file openpgp.php.

static OpenPGP_SignaturePacket::get_subpackets (   $input)
static
OpenPGP_SignaturePacket::hash_algorithm_name ( )

Definition at line 792 of file openpgp.php.

OpenPGP_SignaturePacket::issuer ( )

Definition at line 796 of file openpgp.php.

OpenPGP_SignaturePacket::key_algorithm_name ( )

Definition at line 788 of file openpgp.php.

OpenPGP_SignaturePacket::read ( )

Definition at line 666 of file openpgp.php.

OpenPGP_SignaturePacket::sign_data (   $signers)

$this->data must be set to the data to sign (done by constructor) $signers in the same format as $verifiers for OpenPGP_Message.

Definition at line 658 of file openpgp.php.

Member Data Documentation

OpenPGP_SignaturePacket::$hash_algorithm

Definition at line 626 of file openpgp.php.

OpenPGP_SignaturePacket::$hash_algorithms
static
Initial value:
= array(
1 => 'MD5',
2 => 'SHA1',
3 => 'RIPEMD160',
8 => 'SHA256',
9 => 'SHA384',
10 => 'SHA512',
11 => 'SHA224'
)

Definition at line 849 of file openpgp.php.

OpenPGP_SignaturePacket::$hash_head

Definition at line 626 of file openpgp.php.

OpenPGP_SignaturePacket::$hashed_subpackets

Definition at line 626 of file openpgp.php.

OpenPGP_SignaturePacket::$key_algorithm

Definition at line 626 of file openpgp.php.

OpenPGP_SignaturePacket::$signature_type

Definition at line 626 of file openpgp.php.

OpenPGP_SignaturePacket::$subpacket_types
static

Definition at line 859 of file openpgp.php.

OpenPGP_SignaturePacket::$trailer

Definition at line 627 of file openpgp.php.

OpenPGP_SignaturePacket::$unhashed_subpackets

Definition at line 626 of file openpgp.php.

OpenPGP_SignaturePacket::$version

Definition at line 626 of file openpgp.php.