methodiKDF.DeriveKey
procedure DeriveKey(aKeyMaterial, aParam : iSecretKey; aDKLen : Integer); overload;
Derives aDKLen bytes of output key material from aKeyMaterial (e.g. an ECDH/KEM shared secret or a pre-existing key) and aParam (algorithm-specific context/info, e.g. the HKDF salt or expand-label structure); the result is available afterwards via the inherited iSecretKey.Key/KeyLen. This is the core call an application makes to turn raw shared secret material into a usable symmetric key -- concrete kinds are tKDF1/tKDF2/tKDF3 (X9.42/IEEE-style KDFs), tHKDFExtract/tHKDFExpand (RFC 5869 HKDF, also reused as the building block for the TLS 1.3 key schedule in StreamSec.Mobile.Tls13KeySchedule), and the password-based tPBKDF/tPBKDF2 family (see iPBKDF below) for salted, iterated password KDFs.