public SSH_DSS(DataBuffer DataBuffer) { DataBuffer.Decode(out P); DataBuffer.Decode(out Q); DataBuffer.Decode(out G); DataBuffer.Decode(out Y); }
public static SSHData Decode(byte[] Data) { string Tag2; var DataBuffer = new DataBuffer(Data); DataBuffer.Decode(out Tag2); if (Tag2 == SSH_RSA.TagID) { return new SSH_RSA(DataBuffer); } if (Tag2 == SSH_DSS.TagID) { return new SSH_RSA(DataBuffer); } return null; }
public SSH_RSA(DataBuffer DataBuffer) { DataBuffer.Decode(out Exponent); DataBuffer.Decode(out Modulus); }