- Initial commit
This commit is contained in:
30
Runtime/3rdParty/BouncyCastle/crypto/parameters/DsaKeyGenerationParameters.cs
vendored
Normal file
30
Runtime/3rdParty/BouncyCastle/crypto/parameters/DsaKeyGenerationParameters.cs
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
|
||||
namespace Best.HTTP.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
|
||||
Reference in New Issue
Block a user