2019-05-19 22:35:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PrivateKey interface
|
|
|
|
*
|
|
|
|
* @category Crypt
|
|
|
|
* @package Common
|
|
|
|
* @author Jim Wigginton <terrafrost@php.net>
|
|
|
|
* @copyright 2009 Jim Wigginton
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
* @link http://phpseclib.sourceforge.net
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace phpseclib\Crypt\Common;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PrivateKey interface
|
|
|
|
*
|
|
|
|
* @package Common
|
|
|
|
* @author Jim Wigginton <terrafrost@php.net>
|
|
|
|
* @access public
|
|
|
|
*/
|
|
|
|
interface PrivateKey
|
|
|
|
{
|
|
|
|
public function sign($message);
|
|
|
|
//public function decrypt($ciphertext);
|
|
|
|
public function getPublicKey();
|
2019-06-02 17:02:30 +02:00
|
|
|
public function toString($type, array $options = []);
|
2019-05-19 22:35:29 +02:00
|
|
|
public function withPassword($string);
|
|
|
|
}
|