![JAR search and dependency download from the Maven repository](/logo.png)
org.bouncycastle.jcajce.spec.DSTU4145PrivateKeySpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bc-fips-debug Show documentation
Show all versions of bc-fips-debug Show documentation
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.
package org.bouncycastle.jcajce.spec;
import java.math.BigInteger;
import java.security.spec.KeySpec;
/**
* This class specifies a DSTU4145 private key with its associated parameters.
*/
public class DSTU4145PrivateKeySpec
implements KeySpec
{
private final BigInteger s;
private final DSTU4145ParameterSpec parameters;
/**
* Creates a new GOST3410PrivateKeySpec with the specified parameter values.
*
* @param s the private key.
*/
public DSTU4145PrivateKeySpec(BigInteger s, DSTU4145ParameterSpec parameters)
{
this.s = s;
this.parameters = parameters;
}
public DSTU4145ParameterSpec getParams()
{
return parameters;
}
/**
* Returns the private key value s
.
* @return the private key s
.
*/
public BigInteger getS()
{
return s;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy