public final class DHPublicKeyImpl extends DHKeyImpl implements javacard.security.DHPublicKey
| Modifier and Type | Field and Description |
|---|---|
protected ByteContainer |
y |
g, LENGTH_DH_1536, p, q, rfc2409_1024, rfc3526_1536, rfc3526_2048| Constructor and Description |
|---|
DHPublicKeyImpl(org.bouncycastle.crypto.params.DHKeyParameters params) |
DHPublicKeyImpl(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 |
getY(byte[] bytes,
short offset) |
boolean |
isInitialized() |
void |
setParameters(org.bouncycastle.crypto.CipherParameters params)
Set cipher key for use with BouncyCastle Crypto API
|
void |
setY(byte[] bytes,
short offset,
short length) |
getG, getKeyGenerationParameters, getP, getQ, setG, setP, setQprotected ByteContainer y
public DHPublicKeyImpl(short size)
public DHPublicKeyImpl(org.bouncycastle.crypto.params.DHKeyParameters params)
public void setParameters(org.bouncycastle.crypto.CipherParameters params)
KeyWithParameterssetParameters in interface KeyWithParameterssetParameters in class DHKeyImplparams - key parameterspublic void setY(byte[] bytes,
short offset,
short length)
throws javacard.security.CryptoException
setY in interface javacard.security.DHPublicKeyjavacard.security.CryptoExceptionpublic short getY(byte[] bytes,
short offset)
getY in interface javacard.security.DHPublicKeypublic 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