39 throw new \InvalidArgumentException();
41 if (!is_string(
$key)) {
42 throw new \InvalidArgumentException();
56 $encoder->encodeString($this->algorithm);
57 $encoder->encodeString($this->key);
64 $decoder->decodeString(),
65 $decoder->decodeString()
static unserialize(\fpoirotte\Pssht\Wire\Decoder $decoder)
$algorithm
Public key algorithm in use (eg. "ssh-rsa" or "ssh-dss").
__construct($algorithm, $key)
serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)