Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTstCustomCipherComponent.MAC

property MAC: TstCustomMAC read fMAC write SetMAC;
Optional companion MAC component (e.g. a TstHash or TstCipherMAC) that DoCipherText feeds the ciphertext through on every Encrypt*/Decrypt* call: on encrypt the buffer is encrypted first and then hashed, on decrypt it is hashed first and then decrypted, so in both directions it is the ciphertext that is authenticated (an encrypt-then-MAC style construction). An application assigns this when it needs authenticated encryption built from a plain cipher plus a separate MAC rather than using an AEAD cipher mode directly. No client/server-specific meaning -- both peers of such a protocol configure this the same way.