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 KeyAgreementSpi
InvalidKeyException
protected void engineInit(Key key, AlgorithmParameterSpec paramSpec, SecureRandom random) throws InvalidKeyException
InvalidKeyException
protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, NoSuchAlgorithmException, InvalidKeyException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
NoSuchAlgorithmException
InvalidKeyException
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase
in class KeyAgreementSpi
InvalidKeyException
IllegalStateException
protected int getMaxSharedSecretLength()
protected void checkPublicKey(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
protected byte[] engineGenerateSecret() throws IllegalStateException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
ShortBufferException
protected int getDerivedKeyLength(long algId) throws NoSuchAlgorithmException
NoSuchAlgorithmException
Copyright 2014-2016 SafeNet Inc