public class LunaKeyDerivationHash
extends javax.crypto.KeyAgreementSpi
Modifier and Type | Field and Description |
---|---|
protected LunaKey |
baseKey |
protected long |
mechType |
protected javax.crypto.SecretKeyFactory |
skf |
Modifier | Constructor and Description |
---|---|
protected |
LunaKeyDerivationHash(long mechType) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkPublicKey(java.security.Key key,
boolean lastPhase) |
protected java.security.Key |
engineDoPhase(java.security.Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected javax.crypto.SecretKey |
engineGenerateSecret(java.lang.String algorithm) |
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
protected void |
engineInit(java.security.Key key,
java.security.SecureRandom random) |
protected int |
getDerivedKeyLength(long algId) |
protected int |
getMaxSharedSecretLength() |
protected long mechType
protected LunaKey baseKey
protected final javax.crypto.SecretKeyFactory skf
protected void engineInit(java.security.Key key, java.security.SecureRandom random) throws java.security.InvalidKeyException
engineInit
in class javax.crypto.KeyAgreementSpi
java.security.InvalidKeyException
protected java.security.Key engineDoPhase(java.security.Key key, boolean lastPhase) throws java.security.InvalidKeyException, java.lang.IllegalStateException
engineDoPhase
in class javax.crypto.KeyAgreementSpi
java.security.InvalidKeyException
java.lang.IllegalStateException
protected javax.crypto.SecretKey engineGenerateSecret(java.lang.String algorithm) throws java.lang.IllegalStateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
engineGenerateSecret
in class javax.crypto.KeyAgreementSpi
java.lang.IllegalStateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
protected int getMaxSharedSecretLength()
protected void engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
engineInit
in class javax.crypto.KeyAgreementSpi
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
protected void checkPublicKey(java.security.Key key, boolean lastPhase) throws java.security.InvalidKeyException, java.lang.IllegalStateException
java.security.InvalidKeyException
java.lang.IllegalStateException
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 int getDerivedKeyLength(long algId) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
Copyright 2014-2018 SafeNet. All rights reserved.