KeyDerivationFunction This class provides functionality to derive (de-/ encryption) keys from given data. KeyFuncType Type of en-/decryption function See more Mode Mode of use of derived key See more deriveKey(from:funcType:mode:) Derives a key from a (shared) secret. The derived key has the mode of further usage already encoded and is suited to use it in a determined de-/encryption function.