add all
This commit is contained in:
35
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/tls/crypto/Srp6Group.cs
vendored
Normal file
35
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/tls/crypto/Srp6Group.cs
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user