培训考核三期,新版培训,网页版培训登录器
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.
 
 

73 lines
1.8 KiB

#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Endo
{
public class ScalarSplitParameters
{
private static void CheckVector(BigInteger[] v, string name)
{
if (v == null || v.Length != 2 || v[0] == null || v[1] == null)
throw new ArgumentException("Must consist of exactly 2 (non-null) values", name);
}
protected readonly BigInteger m_v1A, m_v1B, m_v2A, m_v2B;
protected readonly BigInteger m_g1, m_g2;
protected readonly int m_bits;
public ScalarSplitParameters(BigInteger[] v1, BigInteger[] v2, BigInteger g1,
BigInteger g2, int bits)
{
CheckVector(v1, "v1");
CheckVector(v2, "v2");
this.m_v1A = v1[0];
this.m_v1B = v1[1];
this.m_v2A = v2[0];
this.m_v2B = v2[1];
this.m_g1 = g1;
this.m_g2 = g2;
this.m_bits = bits;
}
public virtual BigInteger V1A
{
get { return m_v1A; }
}
public virtual BigInteger V1B
{
get { return m_v1B; }
}
public virtual BigInteger V2A
{
get { return m_v2A; }
}
public virtual BigInteger V2B
{
get { return m_v2B; }
}
public virtual BigInteger G1
{
get { return m_g1; }
}
public virtual BigInteger G2
{
get { return m_g2; }
}
public virtual int Bits
{
get { return m_bits; }
}
}
}
#pragma warning restore
#endif