PHP Class OpenPGP_Packet, horde

See also: http://tools.ietf.org/html/rfc4880#section-4.1
See also: http://tools.ietf.org/html/rfc4880#section-4.3
Mostra file Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$data
$size
$tag
$tags

Public Methods

Method Description
__construct ( $data = NULL )
body ( )
class_for ( $tag )
header_and_body ( )
parse ( &$input ) Parses an OpenPGP packet.
parse_new_format ( $input, $header_start ) Parses a new-format (RFC 4880) OpenPGP packet.
parse_old_format ( $input ) Parses an old-format (PGP 2.6.x) OpenPGP packet.
read ( )
read_byte ( )
read_bytes ( $count = 1 )
read_mpi ( )
read_timestamp ( )
read_unpacked ( $count, $format )
to_bytes ( )

Method Details

__construct() public method

public __construct ( $data = NULL )

body() public method

public body ( )

class_for() static public method

static public class_for ( $tag )

header_and_body() public method

public header_and_body ( )

parse() static public method

Partial body lengths based on https://github.com/toofishes/python-pgpdump/blob/master/pgpdump/packet.py
See also: http://tools.ietf.org/html/rfc4880#section-4.2
static public parse ( &$input )

parse_new_format() static public method

Parses a new-format (RFC 4880) OpenPGP packet.
See also: http://tools.ietf.org/html/rfc4880#section-4.2.2
static public parse_new_format ( $input, $header_start )

parse_old_format() static public method

Parses an old-format (PGP 2.6.x) OpenPGP packet.
See also: http://tools.ietf.org/html/rfc4880#section-4.2.1
static public parse_old_format ( $input )

read() public method

public read ( )

read_byte() public method

public read_byte ( )

read_bytes() public method

public read_bytes ( $count = 1 )

read_mpi() public method

See also: http://tools.ietf.org/html/rfc4880#section-3.2
public read_mpi ( )

read_timestamp() public method

See also: http://tools.ietf.org/html/rfc4880#section-3.5
public read_timestamp ( )

read_unpacked() public method

See also: http://php.net/manual/en/function.unpack.php
public read_unpacked ( $count, $format )

to_bytes() public method

public to_bytes ( )

Property Details

$data public_oe property

public $data

$size public_oe property

public $size

$tag public_oe property

public $tag

$tags static_oe public_oe property

static public $tags