Top Description Fields Constructors Methods
org.bouncycastle.jce.spec

public Class GOST3410PrivateKeySpec

extends Object
implements KeySpec
Class Inheritance
All Implemented Interfaces
java.security.spec.KeySpec
Imports
java.math.BigInteger, java.security.spec.KeySpec

This class specifies a GOST3410-94 private key with its associated parameters.

Field Summary

Modifier and TypeField and Description
private BigInteger
a

private BigInteger
p

private BigInteger
q

private BigInteger
x

Constructor Summary

AccessConstructor and Description
public
GOST3410PrivateKeySpec(BigInteger
the private key.
x
,
BigInteger
the prime.
p
,
BigInteger
the sub-prime.
q
,
BigInteger
the base.
a
)

Creates a new GOST3410PrivateKeySpec with the specified parameter values.

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

the base a.
getA
()

Returns the base a.

public BigInteger

Returns:

the prime p.
getP
()

Returns the prime p.

public BigInteger

Returns:

the sub-prime q.
getQ
()

Returns the sub-prime q.

public BigInteger

Returns:

the private key x.
getX
()

Returns the private key x.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aback to summary
private BigInteger a
pback to summary
private BigInteger p
qback to summary
private BigInteger q
xback to summary
private BigInteger x

Constructor Detail

GOST3410PrivateKeySpecback to summary
public GOST3410PrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger a)

Creates a new GOST3410PrivateKeySpec with the specified parameter values.

Parameters
x:BigInteger

the private key.

p:BigInteger

the prime.

q:BigInteger

the sub-prime.

a:BigInteger

the base.

Method Detail

getAback to summary
public BigInteger getA()

Returns the base a.

Returns:BigInteger

the base a.

getPback to summary
public BigInteger getP()

Returns the prime p.

Returns:BigInteger

the prime p.

getQback to summary
public BigInteger getQ()

Returns the sub-prime q.

Returns:BigInteger

the sub-prime q.

getXback to summary
public BigInteger getX()

Returns the private key x.

Returns:BigInteger

the private key x.