Files
SuperVPN/output/Libraries/BouncyCastle.Crypto/Org/BouncyCastle/Crypto/Parameters/NaccacheSternPrivateKeyParameters.cs
2025-10-09 09:57:24 +09:00

35 lines
950 B
C#

using System;
using System.Collections;
using Org.BouncyCastle.Math;
namespace Org.BouncyCastle.Crypto.Parameters;
public class NaccacheSternPrivateKeyParameters : NaccacheSternKeyParameters
{
private readonly BigInteger phiN;
private readonly IList smallPrimes;
public BigInteger PhiN => phiN;
[Obsolete("Use 'SmallPrimesList' instead")]
public ArrayList SmallPrimes => new ArrayList(smallPrimes);
public IList SmallPrimesList => smallPrimes;
[Obsolete]
public NaccacheSternPrivateKeyParameters(BigInteger g, BigInteger n, int lowerSigmaBound, ArrayList smallPrimes, BigInteger phiN)
: base(privateKey: true, g, n, lowerSigmaBound)
{
this.smallPrimes = smallPrimes;
this.phiN = phiN;
}
public NaccacheSternPrivateKeyParameters(BigInteger g, BigInteger n, int lowerSigmaBound, IList smallPrimes, BigInteger phiN)
: base(privateKey: true, g, n, lowerSigmaBound)
{
this.smallPrimes = smallPrimes;
this.phiN = phiN;
}
}