Viel neues
This commit is contained in:
32
qa-tool/htdocs/oidc/phpseclib/Crypt/Common/PrivateKey.php
Normal file
32
qa-tool/htdocs/oidc/phpseclib/Crypt/Common/PrivateKey.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PrivateKey interface
|
||||
*
|
||||
* @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
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\Crypt\Common;
|
||||
|
||||
/**
|
||||
* PrivateKey interface
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
interface PrivateKey
|
||||
{
|
||||
public function sign($message);
|
||||
//public function decrypt($ciphertext);
|
||||
public function getPublicKey();
|
||||
public function toString(string $type, array $options = []): string;
|
||||
|
||||
/**
|
||||
* @return static
|
||||
*/
|
||||
public function withPassword(?string $password = null): PrivateKey;
|
||||
}
|
||||
Reference in New Issue
Block a user