org.bouncycastle.jcajce.spec.GOST3410PrivateKeySpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bc-fips Show documentation
Show all versions of bc-fips Show documentation
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.
package org.bouncycastle.jcajce.spec;
import java.math.BigInteger;
import java.security.spec.KeySpec;
/**
* This class specifies a GOST3410-94 private key with its associated parameters.
*/
public class GOST3410PrivateKeySpec
implements KeySpec
{
private final BigInteger x;
private final GOST3410ParameterSpec parameters;
/**
* Creates a new GOST3410PrivateKeySpec with the specified parameter values.
*
* @param x the private key.
*/
public GOST3410PrivateKeySpec(BigInteger x, GOST3410ParameterSpec parameters)
{
this.x = x;
this.parameters = parameters;
}
/**
* Returns the private key x
.
* @return the private key x
.
*/
public BigInteger getX()
{
return this.x;
}
public GOST3410ParameterSpec getParams()
{
return parameters;
}
}