Class KeyDerivationKey
- java.lang.Object
-
- com.google.crypto.tink.Key
-
- com.google.crypto.tink.keyderivation.KeyDerivationKey
-
- Direct Known Subclasses:
PrfBasedKeyDerivationKey
public abstract class KeyDerivationKey extends Key
Represents a function to derive a key.Tink Key Derivation is given by the primitive which maps a
byte[] saltto a Keyset. For each key, aKeyDerivationKeymaps abyte[] saltto a new "derived"Key. For a Keyset containing multiple derivation keys, the derived keyset is obtained by mapping each key according to this map (for the samebyte[] salt), and inserting them into a new keyset.
-
-
Constructor Summary
Constructors Constructor Description KeyDerivationKey()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract KeyDerivationParametersgetParameters()Returns aParametersobject containing all the information about the key which is not randomly chosen.-
Methods inherited from class com.google.crypto.tink.Key
equalsKey, getIdRequirementOrNull
-
-
-
-
Method Detail
-
getParameters
public abstract KeyDerivationParameters getParameters()
Description copied from class:KeyReturns aParametersobject containing all the information about the key which is not randomly chosen.Implementations need to ensure that
getParameters().hasIdRequirement()returns true if and only ifgetIdRequirementOrNullis non-null.- Specified by:
getParametersin classKey
-
-