KeyAgreementSpi
, KeyAgreementSpi
, KeyAgreementSpi
, KeyAgreementSpi
, KeyAgreementSpi
public abstract class BaseAgreementSpi
extends javax.crypto.KeyAgreementSpi
Modifier and Type | Field | Description |
---|---|---|
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) |
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.KeyAgreementSpi
java.lang.IllegalStateException
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws java.lang.IllegalStateException, javax.crypto.ShortBufferException
engineGenerateSecret
in class javax.crypto.KeyAgreementSpi
java.lang.IllegalStateException
javax.crypto.ShortBufferException
protected javax.crypto.SecretKey engineGenerateSecret(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
engineGenerateSecret
in class javax.crypto.KeyAgreementSpi
java.security.NoSuchAlgorithmException
protected abstract byte[] calcSecret()