[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/File/ASN1/Maps/ -> DHParameter.php (source)

   1  <?php
   2  
   3  /**
   4   * DHParameter
   5   *
   6   * From: https://www.teletrust.de/fileadmin/files/oid/oid_pkcs-3v1-4.pdf#page=6
   7   *
   8   * PHP version 5
   9   *
  10   * @author    Jim Wigginton <terrafrost@php.net>
  11   * @copyright 2016 Jim Wigginton
  12   * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
  13   * @link      http://phpseclib.sourceforge.net
  14   */
  15  
  16  namespace phpseclib3\File\ASN1\Maps;
  17  
  18  use phpseclib3\File\ASN1;
  19  
  20  /**
  21   * DHParameter
  22   *
  23   * @author  Jim Wigginton <terrafrost@php.net>
  24   */
  25  abstract class DHParameter
  26  {
  27      const MAP = [
  28          'type' => ASN1::TYPE_SEQUENCE,
  29          'children' => [
  30              'prime' => ['type' => ASN1::TYPE_INTEGER],
  31              'base' => ['type' => ASN1::TYPE_INTEGER],
  32              'privateValueLength' => [
  33                  'type' => ASN1::TYPE_INTEGER,
  34                  'optional' => true
  35              ]
  36          ]
  37      ];
  38  }