public final class AsymmetricECGOST3410PrivateKey extends AsymmetricGOST3410Key<ECDomainParameters> implements AsymmetricPrivateKey
domainParameters, ecAcceptable, fpAcceptable| Constructor and Description |
|---|
AsymmetricECGOST3410PrivateKey(Algorithm algorithm,
byte[] enc) |
AsymmetricECGOST3410PrivateKey(Algorithm algorithm,
GOST3410Parameters<ECDomainParameters> params,
java.math.BigInteger x) |
AsymmetricECGOST3410PrivateKey(Algorithm algorithm,
PrivateKeyInfo privateKeyInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
boolean |
equals(java.lang.Object o)
Return true if o is an equivalent key to this.
|
Algorithm |
getAlgorithm()
Return the algorithm this GOST R 34.10 key is for.
|
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
GOST3410Parameters<ECDomainParameters> |
getParameters()
Return the domain parameters associated with this key.These will either
be for GOST R 34.10-1994 or GOST R 34.10-2001 depending on the key type.
|
java.math.BigInteger |
getS() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
checkApprovedOnlyModeStatus, isThreadCorrectMode, zeroizepublic AsymmetricECGOST3410PrivateKey(Algorithm algorithm, GOST3410Parameters<ECDomainParameters> params, java.math.BigInteger x)
public AsymmetricECGOST3410PrivateKey(Algorithm algorithm, byte[] enc)
public AsymmetricECGOST3410PrivateKey(Algorithm algorithm, PrivateKeyInfo privateKeyInfo)
public final byte[] getEncoded()
AsymmetricKeygetEncoded in interface AsymmetricKeypublic final Algorithm getAlgorithm()
getAlgorithm in interface KeygetAlgorithm in class AsymmetricGOST3410Key<ECDomainParameters>public final GOST3410Parameters<ECDomainParameters> getParameters()
getParameters in class AsymmetricGOST3410Key<ECDomainParameters>public final java.math.BigInteger getS()
public void destroy()
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyablepublic int hashCode()
Keypublic boolean equals(java.lang.Object o)
Key