Esempio n. 1
0
		/// <summary>
		/// Writes the server's challenge.
		/// </summary>
		/// <param name="packet">the packet to write to</param>
		public void WriteServerChallenge(PrimitiveWriter packet)
		{
			packet.WriteBigInt(m_srp.PublicEphemeralValueB, 32);
			packet.WriteBigIntLength(m_srp.Generator, 1);

			// We will pad this out to 32 bytes.
			packet.WriteBigIntLength(m_srp.Modulus, 32);
			packet.WriteBigInt(m_srp.Salt);
		}
Esempio n. 2
0
	    /// <summary>
		/// Writes the server's proof. 
		/// </summary>
		/// <param name="packet">the packet to write to</param>
		public void WriteServerProof(PrimitiveWriter packet)
		{
			packet.WriteBigInt(m_srp.ServerSessionKeyProof, 20);
		}