/// <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); }