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.
26 lines
798 B
26 lines
798 B
using System;
|
|
|
|
using Org.BouncyCastle.Math;
|
|
|
|
namespace Org.BouncyCastle.Tls.Crypto
|
|
{
|
|
/// <summary>Basic config for SRP.</summary>
|
|
public class TlsSrpConfig
|
|
{
|
|
protected BigInteger[] m_explicitNG;
|
|
|
|
/// <summary>Return the (N, g) values used in SRP-6.</summary>
|
|
/// <returns>(N, g) as a BigInteger array (N=[0], g=[1]).</returns>
|
|
public BigInteger[] GetExplicitNG()
|
|
{
|
|
return (BigInteger[])m_explicitNG.Clone();
|
|
}
|
|
|
|
/// <summary>Set the (N, g) values used for SRP-6.</summary>
|
|
/// <param name="explicitNG">(N, g) as a BigInteger array (N=[0], g=[1]).</param>
|
|
public void SetExplicitNG(BigInteger[] explicitNG)
|
|
{
|
|
this.m_explicitNG = (BigInteger[])explicitNG.Clone();
|
|
}
|
|
}
|
|
}
|
|
|