org.bouncycastle.jcajce.spec.ECGOST3410PublicKeySpec 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.security.spec.ECPoint;
import java.security.spec.KeySpec;
/**
* This class specifies a ECGOST3410-94 public key with its associated parameters.
*/
public class ECGOST3410PublicKeySpec
implements KeySpec
{
private final ECPoint w;
private final GOST3410ParameterSpec parameters;
/**
* Creates a new GOST3410PublicKeySpec with the specified parameter values.
*
* @param w the public key.
*/
public ECGOST3410PublicKeySpec(ECPoint w, GOST3410ParameterSpec parameters)
{
this.w = w;
this.parameters = parameters;
}
/**
* Returns the public point w
.
*
* @return the public point w
.
*/
public ECPoint getW()
{
return this.w;
}
public GOST3410ParameterSpec getParams()
{
return parameters;
}
}