methodiPBKDF.DeriveKey
procedure DeriveKey(aPassword, aSalt : iSecretKey; aIter, aDKLen : Integer); overload;
Password-based derivation entry point (PBKDF1/PBKDF2 style, RFC 8018): stretches aPassword with aSalt over aIter rounds to produce aDKLen bytes of key material, retrievable afterwards via the inherited iSecretKey.Key/KeyLen. Applications use this to turn a user-supplied password into a symmetric key or verifier -- e.g. StreamSec.SSH.Server.pas's tUserItem.ComputeVerifier derives the stored SSH password verifier this way via the registered gPBKDF2 (tPBKDF2_HMAC) class, and the PKCS#5/PKCS#8/PKCS#12 encrypted-private-key formats use it to derive the encryption key from a passphrase. This overload takes aIter explicitly instead of using the Iter property, letting the caller pin the iteration count used for a single derivation regardless of the instance's current Iter setting.