You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
683 B
31 lines
683 B
using System;
|
|
|
|
using Org.BouncyCastle.Math;
|
|
|
|
namespace Org.BouncyCastle.Tls.Crypto
|
|
{
|
|
/// <summary>Carrier class for SRP-6 group parameters.</summary>
|
|
public class Srp6Group
|
|
{
|
|
private readonly BigInteger n, g;
|
|
|
|
/// <summary>Base constructor.</summary>
|
|
/// <param name="n">the n value.</param>
|
|
/// <param name="g">the g value.</param>
|
|
public Srp6Group(BigInteger n, BigInteger g)
|
|
{
|
|
this.n = n;
|
|
this.g = g;
|
|
}
|
|
|
|
public virtual BigInteger G
|
|
{
|
|
get { return g; }
|
|
}
|
|
|
|
public virtual BigInteger N
|
|
{
|
|
get { return n; }
|
|
}
|
|
}
|
|
}
|
|
|