pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
check ($message, $signature) | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
sign ($message) | |
Static Public Member Functions | |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder, $private=null) |
![]() | |
static | getName () |
Return the name of the algorithm. | |
Interface for a public key algorithm.
Definition at line 17 of file KeyInterface.php.
fpoirotte\Pssht\Key\KeyInterface::check | ( | $message, | |
$signature | |||
) |
Check the signature for a message.
string | $message | Signed message. |
string | $signature | Signature to check. |
bool | true if the signature is valid for the given message, false otherwise. |
Implemented in fpoirotte\Pssht\Key\SSH\ED25519, fpoirotte\Pssht\Key\SSH\DSS, fpoirotte\Pssht\Key\ECDSA\SHA2\Base, and fpoirotte\Pssht\Key\SSH\RSA.
fpoirotte\Pssht\Key\KeyInterface::serialize | ( | \fpoirotte\Pssht\Wire\Encoder | $encoder | ) |
Serialize a key.
fpoirotte::Pssht::Wire::Encoder | $encoder | Encoder to use to serialize the key. |
string | Serialized representation of the key. |
Implemented in fpoirotte\Pssht\Key\SSH\DSS, fpoirotte\Pssht\Key\SSH\ED25519, fpoirotte\Pssht\Key\SSH\RSA, and fpoirotte\Pssht\Key\ECDSA\SHA2\Base.
fpoirotte\Pssht\Key\KeyInterface::sign | ( | $message | ) |
Sign a message using the key.
string | $message | Message to sign. |
string | Message signature. |
Implemented in fpoirotte\Pssht\Key\SSH\ED25519, fpoirotte\Pssht\Key\SSH\DSS, and fpoirotte\Pssht\Key\SSH\RSA.