Example #1
0
		/// <summary>
		/// Creates and initializes a new instance of the ClientMessage2 class using
		/// the specified public key and client proof.
		/// </summary>
		/// <param name="publicKey">The client's public key.</param>
		/// <param name="proof">The calculated client proof.</param>
		/// <exception cref="ArgumentNullException">Thrown if either the public key
		/// or the proof parameter is null.</exception>
		public ClientMessage2(Mpi publicKey, byte[] proof)
			: this() {
			publicKey.ThrowIfNull("publicKey");
			proof.ThrowIfNull("proof");

			PublicKey = publicKey;
			Proof = proof;
		}
Example #2
0
        /// <summary>
        /// Creates and initializes a new instance of the ClientMessage2 class using
        /// the specified public key and client proof.
        /// </summary>
        /// <param name="publicKey">The client's public key.</param>
        /// <param name="proof">The calculated client proof.</param>
        /// <exception cref="ArgumentNullException">Thrown if either the public key
        /// or the proof parameter is null.</exception>
        public ClientMessage2(Mpi publicKey, byte[] proof)
            : this()
        {
            publicKey.ThrowIfNull("publicKey");
            proof.ThrowIfNull("proof");

            PublicKey = publicKey;
            Proof     = proof;
        }