Exemple #1
0
 protected static function _fromDER($data, $critical)
 {
     return new self($critical, Flags::fromBitString(BitString::fromDER($data), 9)->number());
 }
Exemple #2
0
 /**
  * Initialize from ASN.1.
  *
  * @param BitString $bs
  * @return self
  */
 public static function fromASN1(BitString $bs)
 {
     return new self(Flags::fromBitString($bs, 9)->number());
 }