2014-12-02 03:26:52 +00:00
|
|
|
<?php
|
2016-11-23 05:55:33 +00:00
|
|
|
|
2014-12-02 03:26:52 +00:00
|
|
|
/**
|
2016-11-23 05:55:33 +00:00
|
|
|
* ASN.1 Raw Element
|
2014-12-03 16:57:41 +00:00
|
|
|
*
|
2015-04-02 10:57:52 +00:00
|
|
|
* PHP version 5
|
2014-12-03 16:57:41 +00:00
|
|
|
*
|
2014-12-02 03:26:52 +00:00
|
|
|
* @author Jim Wigginton <terrafrost@php.net>
|
2014-12-09 23:07:46 +00:00
|
|
|
* @copyright 2012 Jim Wigginton
|
2014-12-02 03:26:52 +00:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
* @link http://phpseclib.sourceforge.net
|
|
|
|
*/
|
|
|
|
|
2022-06-04 15:31:21 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2019-11-07 05:41:40 +00:00
|
|
|
namespace phpseclib3\File\ASN1;
|
2014-12-10 00:53:05 +00:00
|
|
|
|
2014-12-02 03:26:52 +00:00
|
|
|
/**
|
2016-11-23 05:55:33 +00:00
|
|
|
* ASN.1 Raw Element
|
2014-12-02 03:26:52 +00:00
|
|
|
*
|
2016-11-23 05:55:33 +00:00
|
|
|
* An ASN.1 ANY mapping will return an ASN1\Element object. Use of this object
|
|
|
|
* will also bypass the normal encoding rules in ASN1::encodeDER()
|
2014-12-02 03:26:52 +00:00
|
|
|
*
|
|
|
|
* @author Jim Wigginton <terrafrost@php.net>
|
|
|
|
*/
|
2014-12-10 00:53:05 +00:00
|
|
|
class Element
|
2014-12-02 03:26:52 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Raw element value
|
|
|
|
*
|
2016-04-10 16:30:59 +00:00
|
|
|
* @var string
|
2014-12-02 03:26:52 +00:00
|
|
|
*/
|
2016-12-11 14:23:59 +00:00
|
|
|
public $element;
|
2014-12-02 03:26:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*
|
2022-08-18 13:05:57 +00:00
|
|
|
* @return Element
|
2014-12-02 03:26:52 +00:00
|
|
|
*/
|
2022-06-04 15:31:21 +00:00
|
|
|
public function __construct(string $encoded)
|
2014-12-02 03:26:52 +00:00
|
|
|
{
|
|
|
|
$this->element = $encoded;
|
|
|
|
}
|
2014-12-02 03:28:02 +00:00
|
|
|
}
|