|
1C-Bitrix 25.700.0
|
Открытые статические члены | |
| static | readDER ($der, $offset, &$data, $ignore_bit_strings=FALSE) |
| static | encodeDER ($type, $value='', $primitive=true, $class=0) |
| static | decodeOID ($oid) |
| static | encodeOID ($str) |
Поля данных | |
| const | UNIVERSAL_CLASS = 0x00 |
| const | APPLICATION_CLASS = 0x40 |
| const | CONTEXT_CLASS = 0x80 |
| const | PRIVATE_CLASS = 0xC0 |
| const | INTEGER_TYPE = 0x02 |
| const | BIT_STRING = 0x03 |
| const | OCTET_STRING = 0x04 |
| const | NULL_TYPE = 0x05 |
| const | OID = 0x06 |
| const | SEQUENCE = 0x10 |
Functions for interacting with ASN.1 data streams.
Note that this class only implements a small subset of the ASN.1 DER, and should not be used as a general-purpose ASN.1 encoder/decoder.
|
static |
|
static |
|
static |
|
static |
Reads a DER stream and decodes a single object
| string | $der | the data stream |
| int | $offset | the offset of the data stream containing the object to decode |
| mixed | &$data | the decoded object |
| bool | $ignore_bit_strings | whether to refrain from moving the offset when reading a bit string - this allows the caller to read the bit string manually |