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

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

Go to download

The FIPS 140-3 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-3 level 1. This jar contains JCE provider and low-level API for the BC-FJA version 2.0.0, FIPS Certificate #4743. Please see certificate for certified platform details.

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

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

/**
 * This class specifies a GOST3410-94 public key with its associated parameters.
 */

public class GOST3410PublicKeySpec
    implements KeySpec
{
    private final BigInteger y;
    private final GOST3410ParameterSpec parameters;

    /**
     * Creates a new GOST3410PublicKeySpec with the specified parameter values.
     *
     * @param y the public key.
     */
    public GOST3410PublicKeySpec(BigInteger y, GOST3410ParameterSpec parameters)
    {
        this.y = y;
        this.parameters = parameters;
    }

    /**
     * Returns the public key y.
     *
     * @return the public key y.
     */
    public BigInteger getY()
    {
        return this.y;
    }

    public GOST3410ParameterSpec getParams()
    {
        return parameters;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy