public class LunaKeyDerivationHashSM3 extends LunaKeyDerivationHash
| Modifier and Type | Field and Description |
|---|---|
protected LunaKey |
baseKey |
protected javax.crypto.SecretKeyFactory |
skf |
mechType| Constructor and Description |
|---|
LunaKeyDerivationHashSM3() |
| 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, getMaxSharedSecretLengthprotected 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.KeyAgreementSpijava.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterExceptionprotected void checkPublicKey(java.security.Key key,
boolean lastPhase)
throws java.security.InvalidKeyException,
java.lang.IllegalStateException
java.security.InvalidKeyExceptionjava.lang.IllegalStateExceptionprotected 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 int getDerivedKeyLength(long algId)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionCopyright 2014-2018 SafeNet. All rights reserved.