deriveKey(inputKeyMaterial:info:outputByteCount:)
Derives a symmetric encryption key from a main key or passcode using HKDF key derivation with information you specify.
Declaration
static func deriveKey<Info>(inputKeyMaterial: SymmetricKey, info: Info, outputByteCount: Int) -> SymmetricKey where Info : DataProtocolParameters
- inputKeyMaterial:
The main key or passcode the derivation function uses to derive a key.
- info:
The shared information to use for key derivation.
- outputByteCount:
The length in bytes of the resulting symmetric key.
Return Value
The derived symmetric key.