public class DSAPrivateKeyImpl extends DSAKeyImpl implements javacard.security.DSAPrivateKey
DSAPrivateKey based
on BouncyCastle CryptoAPI.DSAPrivateKey,
DSAPrivateKeyParameters| Modifier and Type | Field and Description |
|---|---|
protected ByteContainer |
x |
g, isPrivate, p, q| Constructor and Description |
|---|
DSAPrivateKeyImpl(org.bouncycastle.crypto.params.DSAPrivateKeyParameters params)
Construct and initialize dsa key with DSAPrivateKeyParameters.
|
DSAPrivateKeyImpl(short keySize)
Construct not-initialized dsa private key
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearKey() |
org.bouncycastle.crypto.CipherParameters |
getParameters()
Get
DSAKeyParameters |
short |
getX(byte[] buffer,
short offset) |
boolean |
isInitialized() |
void |
setParameters(org.bouncycastle.crypto.CipherParameters params)
Set cipher key for use with BouncyCastle Crypto API
|
void |
setX(byte[] buffer,
short offset,
short length) |
getG, getKeyGenerationParameters, getP, getQ, setG, setP, setQprotected ByteContainer x
public DSAPrivateKeyImpl(short keySize)
keySize - key size it bitsKeyBuilderpublic DSAPrivateKeyImpl(org.bouncycastle.crypto.params.DSAPrivateKeyParameters params)
params - key params from BouncyCastle APIKeyPair,
DSAPrivateKeyParameterspublic void setParameters(org.bouncycastle.crypto.CipherParameters params)
KeyWithParameterssetParameters in interface KeyWithParameterssetParameters in class DSAKeyImplparams - key parameterspublic void setX(byte[] buffer,
short offset,
short length)
throws javacard.security.CryptoException
setX in interface javacard.security.DSAPrivateKeyjavacard.security.CryptoExceptionpublic short getX(byte[] buffer,
short offset)
getX in interface javacard.security.DSAPrivateKeypublic boolean isInitialized()
isInitialized in interface javacard.security.KeyisInitialized in class DSAKeyImplpublic void clearKey()
clearKey in interface javacard.security.KeyclearKey in class DSAKeyImplpublic org.bouncycastle.crypto.CipherParameters getParameters()
DSAKeyImplDSAKeyParametersgetParameters in interface KeyWithParametersgetParameters in class DSAKeyImplDSAKeyParameters