[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/ -> PrivateKey.php (source)

   1  <?php
   2  
   3  /**
   4   * PrivateKey interface
   5   *
   6   * @author    Jim Wigginton <terrafrost@php.net>
   7   * @copyright 2009 Jim Wigginton
   8   * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
   9   * @link      http://phpseclib.sourceforge.net
  10   */
  11  
  12  namespace phpseclib3\Crypt\Common;
  13  
  14  /**
  15   * PrivateKey interface
  16   *
  17   * @author  Jim Wigginton <terrafrost@php.net>
  18   */
  19  interface PrivateKey
  20  {
  21      public function sign($message);
  22      //public function decrypt($ciphertext);
  23      public function getPublicKey();
  24      public function toString($type, array $options = []);
  25  
  26      /**
  27       * @param string|false $password
  28       * @return mixed
  29       */
  30      public function withPassword($password = false);
  31  }