Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstCustomCipherComponent.SetKeyBuf

procedure SetKeyBuf(const aKey; AKeyLen: Integer);
Sets/replaces the cipher key from a raw buffer+length (also honoring KeyedIV); an application uses this to key the cipher directly rather than via a password (SetKeyPassword) or a KeyRing lookup (SetKeyFromKeyRing). Calling any SetKey* method (re)creates the underlying tCipher and its padding/MAC wiring, discarding any previous key. No client/server-specific meaning.