31 lines
724 B
C#
31 lines
724 B
C#
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
|
#pragma warning disable
|
|
using System;
|
|
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
public class DsaKeyGenerationParameters
|
|
: KeyGenerationParameters
|
|
{
|
|
private readonly DsaParameters parameters;
|
|
|
|
public DsaKeyGenerationParameters(
|
|
SecureRandom random,
|
|
DsaParameters parameters)
|
|
: base(random, parameters.P.BitLength - 1)
|
|
{
|
|
this.parameters = parameters;
|
|
}
|
|
|
|
public DsaParameters Parameters
|
|
{
|
|
get { return parameters; }
|
|
}
|
|
}
|
|
|
|
}
|
|
#pragma warning restore
|
|
#endif
|