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.
30 lines
657 B
30 lines
657 B
1 year ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9
|
||
|
{
|
||
|
public abstract class X9ECParametersHolder
|
||
|
{
|
||
|
private X9ECParameters parameters;
|
||
|
|
||
|
public X9ECParameters Parameters
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
lock (this)
|
||
|
{
|
||
|
if (parameters == null)
|
||
|
{
|
||
|
parameters = CreateParameters();
|
||
|
}
|
||
|
|
||
|
return parameters;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
protected abstract X9ECParameters CreateParameters();
|
||
|
}
|
||
|
}
|
||
|
#pragma warning restore
|
||
|
#endif
|