public final class DHPrivateKeyImpl extends DHKeyImpl implements javacard.security.DHPrivateKey
| Modifier and Type | Field and Description |
|---|---|
protected ByteContainer |
x |
g, LENGTH_DH_1536, p, q, rfc2409_1024, rfc3526_1536, rfc3526_2048| Constructor and Description |
|---|
DHPrivateKeyImpl(org.bouncycastle.crypto.params.DHKeyParameters params) |
DHPrivateKeyImpl(short size) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearKey() |
org.bouncycastle.crypto.CipherParameters |
getParameters()
Get cipher key parameters for use with BouncyCastle Crypto API
|
short |
getX(byte[] bytes,
short offset) |
boolean |
isInitialized() |
void |
setParameters(org.bouncycastle.crypto.CipherParameters params)
Set cipher key for use with BouncyCastle Crypto API
|
void |
setX(byte[] bytes,
short offset,
short length) |
getG, getKeyGenerationParameters, getP, getQ, setG, setP, setQprotected ByteContainer x
public DHPrivateKeyImpl(short size)
public DHPrivateKeyImpl(org.bouncycastle.crypto.params.DHKeyParameters params)
public void setParameters(org.bouncycastle.crypto.CipherParameters params)
KeyWithParameterssetParameters in interface KeyWithParameterssetParameters in class DHKeyImplparams - key parameterspublic void setX(byte[] bytes,
short offset,
short length)
throws javacard.security.CryptoException
setX in interface javacard.security.DHPrivateKeyjavacard.security.CryptoExceptionpublic short getX(byte[] bytes,
short offset)
getX in interface javacard.security.DHPrivateKeypublic void clearKey()
public boolean isInitialized()
isInitialized in interface javacard.security.KeyisInitialized in class DHKeyImplpublic org.bouncycastle.crypto.CipherParameters getParameters()
KeyWithParametersgetParameters in interface KeyWithParametersgetParameters in class DHKeyImpl