public class LunaKeyDerivationHashSHA1 extends LunaKeyDerivationHash
Modifier and Type | Field and Description |
---|---|
protected LunaKey |
baseKey |
protected javax.crypto.SecretKeyFactory |
skf |
mechType
Constructor and Description |
---|
LunaKeyDerivationHashSHA1() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkPublicKey(java.security.Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
protected int |
getDerivedKeyLength(long algId) |
engineDoPhase, engineGenerateSecret, engineInit, getMaxSharedSecretLength
protected LunaKey baseKey
protected final javax.crypto.SecretKeyFactory skf
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.