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

org.bouncycastle.jcajce.spec.GOST3410DomainParameterSpec Maven / Gradle / Ivy

Go to download

The FIPS 140-2 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-2 level 1. This jar contains the debug version JCE provider and low-level API for the BC-FJA version 1.0.2.3, FIPS Certificate #3514. Please note the debug jar is not certified.

There is a newer version: 2.0.0
Show newest version
package org.bouncycastle.jcajce.spec;

import java.math.BigInteger;
import java.security.spec.AlgorithmParameterSpec;

import org.bouncycastle.crypto.asymmetric.GOST3410DomainParameters;

/**
 * ParameterSpec for a GOST 3410-94 key.
 */
public final class GOST3410DomainParameterSpec
    implements AlgorithmParameterSpec
{
    private GOST3410DomainParameters parameters;

    public GOST3410DomainParameterSpec(
        GOST3410DomainParameters parameters)
    {
        this.parameters = parameters;
    }

    public boolean equals(Object o)
    {
        if (o instanceof GOST3410DomainParameterSpec)
        {
            GOST3410DomainParameterSpec other = (GOST3410DomainParameterSpec)o;
            
            return this.parameters.equals(other.parameters);
        }
        
        return false;
    }
    
    public int hashCode()
    {
        return this.parameters.hashCode();
    }

    public int getKeySize()
    {
        return parameters.getKeySize();
    }

    public BigInteger getP()
    {
        return parameters.getP();
    }

    public BigInteger getQ()
    {
        return parameters.getQ();
    }

    public BigInteger getA()
    {
        return parameters.getA();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy