internal static EDDSAPublicKey ReadFrom(PublicKeyAlgorithm algorithm, SSH2DataReader reader)
{
EdwardsCurve curve = EdwardsCurve.FindByAlgorithm(algorithm);
if (curve == null)
{
throw new SSHException(Strings.GetString("UnsupportedEllipticCurve"));
}
byte[] q = reader.ReadByteString();
return(new EDDSAPublicKey(curve, q));
}