Ejemplo 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(this.m_srp.PublicEphemeralValueB, 32);
     packet.WriteBigIntLength(this.m_srp.Generator, 1);
     packet.WriteBigIntLength(this.m_srp.Modulus, 32);
     packet.WriteBigInt(this.m_srp.Salt);
 }
Ejemplo n.º 2
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);
        }