PHP Class phpseclib\Common\Functions\ASN1

Author: Jim Wigginton ([email protected])
Afficher le fichier Open project: phpseclib/phpseclib Class Usage Examples

Méthodes publiques

Méthode Description
decodeLength ( string &$string ) : integer DER-decode the length
encodeLength ( integer $length ) : string DER-encode the length

Method Details

decodeLength() static public méthode

DER supports lengths up to (2**8)**127, however, we'll only support lengths up to (2**8)**4. See {@link http://itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#p=13 X.690 paragraph 8.1.3} for more information.
static public decodeLength ( string &$string ) : integer
$string string
Résultat integer

encodeLength() static public méthode

DER supports lengths up to (2**8)**127, however, we'll only support lengths up to (2**8)**4. See {@link http://itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#p=13 X.690 paragraph 8.1.3} for more information.
static public encodeLength ( integer $length ) : string
$length integer
Résultat string