public class LunaKeyDerivationHashSM3 extends LunaKeyDerivationHash
| Modifier and Type | Field and Description |
|---|---|
protected LunaKey |
baseKey |
protected SecretKeyFactory |
skf |
mechType| Constructor and Description |
|---|
LunaKeyDerivationHashSM3() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkPublicKey(Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected void |
engineInit(Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected int |
getDerivedKeyLength(long algId) |
engineDoPhase, engineGenerateSecret, engineInit, getMaxSharedSecretLengthprotected LunaKey baseKey
protected final SecretKeyFactory skf
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit in class KeyAgreementSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void checkPublicKey(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
protected byte[] engineGenerateSecret()
throws IllegalStateException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionprotected int engineGenerateSecret(byte[] sharedSecret,
int offset)
throws IllegalStateException,
ShortBufferException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionShortBufferExceptionprotected int getDerivedKeyLength(long algId)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionCopyright 2014-2016 SafeNet Inc