Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stAESBG

Classes, interfaces and records

classtRijndael_ECB

inherits from stAES.tRijndael_ECB

procedure SetUp(const aKey; aCount: Integer); override; class function ConstantTime: Boolean; override;
Table-driven, therefore cache-timing dependent - same answer as the ancestor. Stated explicitly because this unit exists to be chosen for speed, and the choice must not read as a security-neutral one.

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

constructor Create(const aKey; aCount: Integer; aSetIV: Boolean = False; aRefCounted: Boolean = False); override; 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

SSH CTR (RFC 4344) AES cipher - the modern replacement for the deprecated stRijndael cmSSHCTR class. iSSHParameters makes it an offerable SSH cipher; the CTR keystream is driven by tBlockCipher.Encrypt_SSHCTR (no async keystream generator).

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

classtRijndael_SSHGCM

SSH AEAD (RFC 5647 aes-gcm / aes128-gcm@openssh.com / aes256-gcm@openssh.com): GCM crypto with the SSH binary-packet framing in bpmSSHGCM (tSSHGCMBlockPadding). iSSHParameters makes it an offerable SSH cipher; IVLength is 12 (the 96-bit GCM nonce derived by the KEX). BlockVectorSize=2 (the 2-block CTR vector, shared with the generic GCM cipher).

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.