phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Class: ASN1

Source Location: /lib/crypto/ASN1.php

Class Overview


This class implements ASN.1 encoding.


Variables

Methods



Class Details

[line 50]
This class implements ASN.1 encoding.

Please, be aware that this class is INCOMPLETE, as it is intended for BER/DER encoding primarily.




[ Top ]


Class Variables

$tag =

[line 52]



Tags:

access:  public

Type:   mixed


[ Top ]

$value =

[line 53]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 58]

ASN1 __construct( [ $tag = 0x00], [ $value = ''])

Build a new ASN1 from its tag and value.



Tags:

access:  public


Parameters:

   $tag  
   $value  

[ Top ]

method bin2int [line 260]

void bin2int( $bin)

Decode an integer from its binary representation.



Tags:

access:  protected


Parameters:

   $bin  

[ Top ]

method decode [line 97]

void decode( &$buffer)

Decode an object in ASN.1 format.



Tags:

access:  public


Parameters:

   &$buffer  

[ Top ]

method encode [line 66]

void encode( )

Encode this object into ASN.1.



Tags:

access:  public


[ Top ]

method getInteger [line 181]

void getInteger( )

Get the integer value of this ASN.1.



Tags:

access:  public


[ Top ]

method getTag [line 144]

void getTag( )

Get the tag of this ASN.1.



Tags:

access:  public


[ Top ]

method getValue [line 151]

void getValue( )

Get the binary value of this ASN.1.



Tags:

access:  public


[ Top ]

method getValues [line 195]

void getValues( )

Get the sequence of values stored in this ASN.1.



Tags:

access:  public


[ Top ]

method int2bin [line 275]

void int2bin( $int)

Encode an integer in binary representation.



Tags:

access:  protected


Parameters:

   $int  

[ Top ]

method readByte [line 237]

void readByte( &$buffer)

Read first byte from the buffer and move the internal pointer.



Tags:

access:  protected


Parameters:

   &$buffer  

[ Top ]

method readBytes [line 228]

void readBytes( &$buffer, $length)

Read n bytes from a buffer and mov the internal pointer.



Tags:

access:  protected


Parameters:

   &$buffer  
   $length  

[ Top ]

method setInteger [line 188]

void setInteger( $int)

Set the value of this ASN.1 from an integer.



Tags:

access:  public


Parameters:

   $int  

[ Top ]

method setValue [line 163]

void setValue( $value)

Set the binary value of this ASN.1.



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setValues [line 211]

void setValues( $values)

Set the value of this ASN.1 to be a sequence of values.



Tags:

access:  public


Parameters:

   $values  

[ Top ]

method writeByte [line 253]

void writeByte( &$buffer, $byte)

Write a byte to a buffer.



Tags:

access:  protected


Parameters:

   &$buffer  
   $byte  

[ Top ]

method writeBytes [line 244]

void writeBytes( &$buffer, $bytes)

Write bytes to a buffer.



Tags:

access:  protected


Parameters:

   &$buffer  
   $bytes  

[ Top ]


Documentation generated on Fri, 11 Feb 2011 10:57:54 +0100 by phpDocumentor 1.4.3