Class 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[] salt to a Keyset. For each key, a KeyDerivationKey maps a byte[] salt to 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 same byte[] salt), and inserting them into a new keyset.

    • Constructor Detail

      • KeyDerivationKey

        public KeyDerivationKey()
    • Method Detail

      • getParameters

        public abstract KeyDerivationParameters getParameters()
        Description copied from class: Key
        Returns a Parameters object containing all the information about the key which is not randomly chosen.

        Implementations need to ensure that getParameters().hasIdRequirement() returns true if and only if getIdRequirementOrNull is non-null.

        Specified by:
        getParameters in class Key