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

public Class GOST3410PublicKeySpec

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 public key with its associated parameters.

Field Summary

Modifier and TypeField and Description
private BigInteger
a

private BigInteger
p

private BigInteger
q

private BigInteger
y

Constructor Summary

AccessConstructor and Description
public
GOST3410PublicKeySpec(BigInteger
the public key.
y
,
BigInteger
the prime.
p
,
BigInteger
the sub-prime.
q
,
BigInteger
the base.
a
)

Creates a new GOST3410PublicKeySpec with the specified parameter values.

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

the base g.
getA
()

Returns the base g.

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 public key y.
getY
()

Returns the public key y.

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
yback to summary
private BigInteger y

Constructor Detail

GOST3410PublicKeySpecback to summary
public GOST3410PublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger a)

Creates a new GOST3410PublicKeySpec with the specified parameter values.

Parameters
y:BigInteger

the public 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 g.

Returns:BigInteger

the base g.

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.

getYback to summary
public BigInteger getY()

Returns the public key y.

Returns:BigInteger

the public key y.