- Initial commit
This commit is contained in:
53
Runtime/3rdParty/BouncyCastle/crypto/parameters/ECNamedDomainParameters.cs
vendored
Normal file
53
Runtime/3rdParty/BouncyCastle/crypto/parameters/ECNamedDomainParameters.cs
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9;
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
public class ECNamedDomainParameters
|
||||
: ECDomainParameters
|
||||
{
|
||||
private readonly DerObjectIdentifier name;
|
||||
|
||||
public DerObjectIdentifier Name
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
|
||||
public ECNamedDomainParameters(DerObjectIdentifier name, ECDomainParameters dp)
|
||||
: this(name, dp.Curve, dp.G, dp.N, dp.H, dp.GetSeed())
|
||||
{
|
||||
}
|
||||
|
||||
public ECNamedDomainParameters(DerObjectIdentifier name, X9ECParameters x9)
|
||||
: base(x9)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ECNamedDomainParameters(DerObjectIdentifier name, ECCurve curve, ECPoint g, BigInteger n)
|
||||
: base(curve, g, n)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ECNamedDomainParameters(DerObjectIdentifier name, ECCurve curve, ECPoint g, BigInteger n, BigInteger h)
|
||||
: base(curve, g, n, h)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ECNamedDomainParameters(DerObjectIdentifier name, ECCurve curve, ECPoint g, BigInteger n, BigInteger h, byte[] seed)
|
||||
: base(curve, g, n, h, seed)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user