Search in sources :

Example 1 with GOST3410KeyGenerationParameters

use of com.github.zhenwei.core.crypto.params.GOST3410KeyGenerationParameters in project LinLong-Java by zhenwei1108.

the class KeyPairGeneratorSpi method init.

private void init(GOST3410ParameterSpec gParams, SecureRandom random) {
    GOST3410PublicKeyParameterSetSpec spec = gParams.getPublicKeyParameters();
    param = new GOST3410KeyGenerationParameters(random, new GOST3410Parameters(spec.getP(), spec.getQ(), spec.getA()));
    engine.init(param);
    initialised = true;
    gost3410Params = gParams;
}
Also used : GOST3410Parameters(com.github.zhenwei.core.crypto.params.GOST3410Parameters) GOST3410KeyGenerationParameters(com.github.zhenwei.core.crypto.params.GOST3410KeyGenerationParameters) GOST3410PublicKeyParameterSetSpec(com.github.zhenwei.provider.jce.spec.GOST3410PublicKeyParameterSetSpec)

Aggregations

GOST3410KeyGenerationParameters (com.github.zhenwei.core.crypto.params.GOST3410KeyGenerationParameters)1 GOST3410Parameters (com.github.zhenwei.core.crypto.params.GOST3410Parameters)1 GOST3410PublicKeyParameterSetSpec (com.github.zhenwei.provider.jce.spec.GOST3410PublicKeyParameterSetSpec)1