/** * Generate ASN.1 structure. * * @return Sequence */ public function toASN1() { $elements = array(new Integer(0), $this->_algo->toASN1(), new OctetString($this->_privateKeyData)); return new Sequence(...$elements); }
/** * Generate ASN.1 structure. * * @return Sequence */ public function toASN1() { return new Sequence($this->_algo->toASN1(), new BitString($this->_publicKeyData)); }