KeyAgreementSpi, KeyAgreementSpi, KeyAgreementSpi, KeyAgreementSpi, KeyAgreementSpipublic abstract class BaseAgreementSpi
extends javax.crypto.KeyAgreementSpi
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
kaAlgorithm |
|
protected DerivationFunction |
kdf |
|
protected byte[] |
ukmParameters |
| Constructor | Description |
|---|---|
BaseAgreementSpi(java.lang.String kaAlgorithm,
DerivationFunction kdf) |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract byte[] |
calcSecret() |
|
protected byte[] |
engineGenerateSecret() |
|
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
|
protected javax.crypto.SecretKey |
engineGenerateSecret(java.lang.String algorithm) |
|
protected static java.lang.String |
getAlgorithm(java.lang.String algDetails) |
|
protected static int |
getKeySize(java.lang.String algDetails) |
|
protected static byte[] |
trimZeroes(byte[] secret) |
protected final java.lang.String kaAlgorithm
protected final DerivationFunction kdf
protected byte[] ukmParameters
public BaseAgreementSpi(java.lang.String kaAlgorithm,
DerivationFunction kdf)
protected static java.lang.String getAlgorithm(java.lang.String algDetails)
protected static int getKeySize(java.lang.String algDetails)
protected static byte[] trimZeroes(byte[] secret)
protected byte[] engineGenerateSecret()
throws java.lang.IllegalStateException
engineGenerateSecret in class javax.crypto.KeyAgreementSpijava.lang.IllegalStateExceptionprotected int engineGenerateSecret(byte[] sharedSecret,
int offset)
throws java.lang.IllegalStateException,
javax.crypto.ShortBufferException
engineGenerateSecret in class javax.crypto.KeyAgreementSpijava.lang.IllegalStateExceptionjavax.crypto.ShortBufferExceptionprotected javax.crypto.SecretKey engineGenerateSecret(java.lang.String algorithm)
throws java.security.NoSuchAlgorithmException
engineGenerateSecret in class javax.crypto.KeyAgreementSpijava.security.NoSuchAlgorithmExceptionprotected abstract byte[] calcSecret()