DELPHI LINUX64: THE INSTRUCTIONS ARRIVE IN A LINKED OBJECT, NOT INLINE. dcclinux64 cannot assemble (E1025) and ver.inc forces PUREPASCAL there, so every arm above is compiled out and this unit would answer "no AES-NI" on silicon that has it - about 197x on the raw block rate. stAESNIFunc.pas carries the SAME SysV bodies (the identical AesNiSysV*.inc files this unit includes), FPC assembles them into stAESNIFunc.o, and the routines below are reached by an external declaration. See the LINUX64 block above the unit clause for the build recipe and why $L and $LINK cannot be used. CONSEQUENCE FOR A LINUX64 BUILD: stAESNIFunc.o must be on the object path (-O, or DCC_ObjPath in a .dproj) or the link fails. It ships in Beta.xml beside the sources. Define ST4_NO_LINUX64_AESNI to opt out and keep the software path, which needs no object. These bodies load every round key with movdqu, because FPC guarantees no field alignment - which is what every other arm does too, so no arm of this unit needs the schedule aligned.
Feature notes: TLS implementation notes (RFC map) · SSH implementation notes
inherits from stAES.tRijndael_ECB
procedure SetUp(const aKey; aCount: Integer); override;
class function ConstantTime: Boolean; override;
inherits from tRijndael_ECB
class function Mode: tCipherMode; override;
class function BlockVectorSize: Integer; override;
inherits from tRijndael_ECB
class function Mode: tCipherMode; override;
class function BlockVectorSize: Integer; override;
property ModeRatio;
inherits from tRijndael_CFB
class function Mode: tCipherMode; override;
class function BlockVectorSize: Integer; override;
inherits from tRijndael_CFB
class function Mode: tCipherMode; override;
class function BlockVectorSize: Integer; override;
inherits from tRijndael_ECB
implements iKeyWrap
class function Mode: tCipherMode; override;
class function BlockSize: Integer; override;
function Decrypt(var Buf; var Count: Integer): Boolean; override;
function Encrypt(var Buf; var Count: Integer): Boolean; override;
class function BlockVectorSize: Integer; override;
class function Mode: tCipherMode; override;
class function BlockVectorSize: Integer; override;
class function Mode: tCipherMode; override;
class function BlockVectorSize: Integer; override;
class function Mode: tCipherMode; override;
procedure SetUp(const aKey; aCount: Integer); override;
class function BlockVectorSize: Integer; override;
class function Mode: tCipherMode; override;
class function BlockVectorSize: Integer; override;
class function Mode: tCipherMode; override;
class function BlockVectorSize: Integer; override;
class function IVLength: Integer; override;
class function Mode: tCipherMode; override;