public class LunaKeyDerivationPRFKDF extends KeyAgreementSpi
| Modifier and Type | Field and Description |
|---|---|
protected LunaKey |
baseKey |
protected byte[] |
context |
protected long |
counter |
protected long |
encodingScheme |
protected byte[] |
label |
protected AlgorithmParameters |
mAlgParams |
protected long |
mechType |
protected long |
prfType |
protected SecretKeyFactory |
skf |
| Modifier | Constructor and Description |
|---|---|
|
LunaKeyDerivationPRFKDF() |
protected |
LunaKeyDerivationPRFKDF(long mechType,
long prfType,
long counter,
long encodingScheme) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkPublicKey(Key key,
boolean lastPhase) |
protected Key |
engineDoPhase(Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected SecretKey |
engineGenerateSecret(String algorithm) |
protected void |
engineInit(Key key,
AlgorithmParameterSpec paramSpec,
SecureRandom random) |
protected void |
engineInit(Key key,
SecureRandom random) |
protected int |
getDerivedKeyLength(long algId) |
protected int |
getMaxSharedSecretLength() |
protected long mechType
protected long prfType
protected long counter
protected long encodingScheme
protected byte[] label
protected byte[] context
protected AlgorithmParameters mAlgParams
protected LunaKey baseKey
protected final SecretKeyFactory skf
public LunaKeyDerivationPRFKDF()
protected LunaKeyDerivationPRFKDF(long mechType,
long prfType,
long counter,
long encodingScheme)
protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
engineInit in class KeyAgreementSpiInvalidKeyExceptionprotected void engineInit(Key key, AlgorithmParameterSpec paramSpec, SecureRandom random) throws InvalidKeyException
InvalidKeyExceptionprotected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionprotected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase in class KeyAgreementSpiInvalidKeyExceptionIllegalStateExceptionprotected int getMaxSharedSecretLength()
protected 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