methodiDSIDLArith.KDF1
procedure KDF1(const aZ : tBytes; azOffset, azLen : Integer; const aP : tBytes; apOffset, apLen : Integer; aHashAlgorithm: tHashAlgorithm; const aK : tBytes; akOffset, akLen : Integer); overload;
KDF1 (IEEE 1363 / ISO 18033-2 KDF1): hashes the shared secret aZ concatenated with the optional shared-info aP once and copies akLen bytes of the digest into aK. Because it is a single hash block, akLen must not exceed the hash output size. This is the low-level derivation used by the DH/ECIES paths; applications normally obtain keys via the KeyAgreementScheme_* or IntegratedEncryption calls that invoke it.
function KDF1(aZ : iSecretKey; aP : iSecretKey; aHashAlgorithm: tHashAlgorithm; akLen : Integer) : iSecretKey; overload;
iSecretKey-in/iSecretKey-out convenience for KDF1: derives an akLen-byte key from protected secret buffers aZ (shared secret) and aP (shared info), returning it as a new iSecretKey. Same single-block KDF1 limit on akLen applies.