All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.distrimind.bouncycastle.crypto.generators.SM2KeyPairGenerator Maven / Gradle / Ivy

There is a newer version: 1.78.1
Show newest version
package com.distrimind.bouncycastle.crypto.generators;

import java.math.BigInteger;

import com.distrimind.bouncycastle.util.BigIntegers;

public class SM2KeyPairGenerator
    extends ECKeyPairGenerator
{
    public SM2KeyPairGenerator()
    {
        super("SM2KeyGen");
    }

    protected boolean isOutOfRangeD(BigInteger d, BigInteger n)
    {
        return d.compareTo(ONE) < 0 || (d.compareTo(n.subtract(BigIntegers.ONE)) >= 0);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy