Subversion Repositories oidplus

Rev

Rev 846 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. /**
  4.  * PublicKey interface
  5.  *
  6.  * @category  Crypt
  7.  * @package   Common
  8.  * @author    Jim Wigginton <terrafrost@php.net>
  9.  * @copyright 2009 Jim Wigginton
  10.  * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
  11.  * @link      http://phpseclib.sourceforge.net
  12.  */
  13.  
  14. namespace phpseclib3\Crypt\Common;
  15.  
  16. /**
  17.  * PublicKey interface
  18.  *
  19.  * @package Common
  20.  * @author  Jim Wigginton <terrafrost@php.net>
  21.  * @access  public
  22.  */
  23. interface PublicKey
  24. {
  25.     public function verify($message, $signature);
  26.     //public function encrypt($plaintext);
  27.     public function toString($type, array $options = []);
  28.     public function getFingerprint($algorithm);
  29. }
  30.