summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId/DiffieHellman/DHParameters.cs
blob: 4ba8d6cb7560270c9c276ff92aa5fb89b4865040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// DHParameters.cs: Defines a structure that holds the parameters of the Diffie-Hellman algorithm
//
// Author:
//	Pieter Philippaerts (Pieter@mentalis.org)
//
// (C) 2003 The Mentalis.org Team (http://www.mentalis.org/)
//

using System;

namespace Org.Mentalis.Security.Cryptography {
	/// <summary>
	/// Represents the parameters of the Diffie-Hellman algorithm.
	/// </summary>
	internal struct DHParameters {
		/// <summary>
		/// Represents the public <b>P</b> parameter of the Diffie-Hellman algorithm.
		/// </summary>
		public byte[] P;
		/// <summary>
		/// Represents the public <b>G</b> parameter of the Diffie-Hellman algorithm.
		/// </summary>
		public byte[] G;
		/// <summary>
		/// Represents the private <b>X</b> parameter of the Diffie-Hellman algorithm.
		/// </summary>
		public byte[] X;
	}
}