Contents

deriveKey(inputKeyMaterial:outputByteCount:)

Derives a symmetric encryption key from a main key or passcode using HKDF key derivation.

Declaration

static func deriveKey(inputKeyMaterial: SymmetricKey, outputByteCount: Int) -> SymmetricKey

Parameters

  • inputKeyMaterial:

    The main key or passcode the derivation function uses to derive a key.

  • outputByteCount:

    The length in bytes of the resulting symmetric key.

Return Value

The derived symmetric key.

See Also

Deriving a key