Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stAESCT

Feature notes: TLS implementation notes (RFC map) · SSH implementation notes

Classes, interfaces and records

classtRijndael_ECB

inherits from stAES.tRijndael_ECB

constructor CreateClone(ACipher: TCipher); override; procedure SetUp(const aKey; aCount: Integer); override; class procedure Test;
Known-answer self-test: S-box circuit vs the stAES tables, the FIPS-197 appendix B/C vectors, RFC 3394 key wrap, and random round-trips. Raises eCipherError on any mismatch.
class function ConstantTime: Boolean; override;
Unconditionally True: the bitsliced core is portable Pascal that is always compiled, with no conditional arm that could fall back to the ancestor's tables. That is the whole point of this unit.

classtRijndael_CBC

inherits from tRijndael_ECB

class function Mode: tCipherMode; override;
Returns cmCBC, see tCipherMode.
class function BlockVectorSize: Integer; override;
Always returns 1.

classtRijndael_CFB

inherits from tRijndael_ECB

class function Mode: tCipherMode; override;
Returns cmCFB, see tCipherMode.
class function BlockVectorSize: Integer; override;
Always returns 1.
property ModeRatio;

classtRijndael_OFB

inherits from tRijndael_CFB

class function Mode: tCipherMode; override;
Returns cmOFB, see tCipherMode.
class function BlockVectorSize: Integer; override;
Always returns 1.

classtRijndael_CTR

inherits from tRijndael_CFB

class function Mode: tCipherMode; override;
Returns cmCTR, see tCipherMode.
class function BlockVectorSize: Integer; override;
Always returns 1.

classtAES_Wrap

inherits from tRijndael_ECB

implements iKeyWrap

class function Mode: tCipherMode; override;
Returns the value of cmAESWrap.
class function BlockSize: Integer; override;
Always returns 8.
function Decrypt(var Buf; var Count: Integer): Boolean; override; function Encrypt(var Buf; var Count: Integer): Boolean; override;

classtRijndael_CCM

class function BlockVectorSize: Integer; override;
Always returns 2.
class function Mode: tCipherMode; override;
Returns cmCCM, see tCipherMode.

classtRijndael_EAX

class function BlockVectorSize: Integer; override;
Always returns 3.
class function Mode: tCipherMode; override;
Returns cmEAX, see tCipherMode.

classtRijndael_GCM

class function BlockVectorSize: Integer; override;
Always returns 2.
class function Mode: tCipherMode; override;
Returns cmGCM, see tCipherMode.
procedure SetUp(const aKey; aCount: Integer); override;

classtRijndael_SSH

class function BlockVectorSize: Integer; override;
Always returns 1.
class function Mode: tCipherMode; override;
Returns cmSSH, see tCipherMode.

classtRijndael_SSHCTR

class function BlockVectorSize: Integer; override;
Always returns 1.
class function Mode: tCipherMode; override;
Returns cmSSHCTR, see tCipherMode.

classtRijndael_SSHGCM

class function BlockVectorSize: Integer; override;
Always returns 2.
class function IVLength: Integer; override;
Always returns 12.
class function Mode: tCipherMode; override;
Returns cmSSHGCM, see tCipherMode.

Types (enumerations, sets, aliases)

arraytAesCtKeySchedule

Bitsliced round keys: 8 words per round, both block slots carrying the same key material. (MAXROUNDS+1)*8 = 120 words for AES-256.

  tAesCtKeySchedule = array [0..(MAXROUNDS+1)*8-1] of UInt32;