| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | using Renci.SshNet.Common;namespace Renci.SshNet.Messages.Transport{    /// <summary>    /// Represents SSH_MSG_KEXDH_REPLY message.    /// </summary>    [Message("SSH_MSG_KEXDH_REPLY", 31)]    public class KeyExchangeDhReplyMessage : Message    {        /// <summary>        /// Gets server public host key and certificates        /// </summary>        /// <value>The host key.</value>        public byte[] HostKey { get; private set; }        /// <summary>        /// Gets the F value.        /// </summary>        public BigInteger F { get; private set; }        /// <summary>        /// Gets the signature of H.        /// </summary>        /// <value>The signature.</value>        public byte[] Signature { get; private set; }        /// <summary>        /// Called when type specific data need to be loaded.        /// </summary>        protected override void LoadData()        {            ResetReader();            HostKey = ReadBinaryString();            F = ReadBigInt();            Signature = ReadBinaryString();        }        /// <summary>        /// Called when type specific data need to be saved.        /// </summary>        protected override void SaveData()        {            WriteBinaryString(HostKey);            Write(F);            WriteBinaryString(Signature);        }    }}
 |