Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stArc2

Classes, interfaces and records

recordtKeyBuffer

(no public members)

classtARC2_ECB

inherits from tBlockCipher

implements iRC2

constructor CreateUnkeyed(aRefCounted: Boolean = False); override; class function BlockSize: Integer; override;
Always returns 8.
class function Mode: tCipherMode; override;
Returns cmECB, see tCipherMode.
class function Algorithm: tCipherAlg; override;
Returns caARC2, see tCipherAlg.
class function AlgorithmName: string; override;
Always returns the string 'ARC2'.
class function BlockVectorSize: Integer; override;
Always returns 0.
class function MaxKeySize: Integer; override;
Always returns 128.
class function MinKeySize: Integer; override;
Always returns 1.
procedure SetUp(const aKey; aCount: Integer); override; property EffectiveKeySize: Integer read fEffectiveKeySize write SetEffectiveKeySize; property EKBParameter: Integer read GetEKBParameter write SetEKBParameter;

classtARC2_CBC

inherits from tARC2_ECB

class function Mode: tCipherMode; override;
Returns cmCBC, see tCipherMode.
class function BlockVectorSize: Integer; override;
Always returns 1.
class function OID(aKeySize: Integer): ObjectIdentifier; override;
Always returns the string '1.2.840.113549.3.2'.

classtARC2_ABC

inherits from tARC2_ECB

class function Mode: tCipherMode; override;
Returns cmABC, see tCipherMode.
class function BlockVectorSize: Integer; override;
Always returns 2.
class function OID(aKeySize: Integer): ObjectIdentifier; override;
Always returns an empty string.

classtARC2_CFB

inherits from tARC2_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.
class function OID(aKeySize: Integer): ObjectIdentifier; override;
Always returns an empty string.
property ModeRatio;

classtARC2_OFB

inherits from tARC2_CFB

class function Mode: tCipherMode; override;
Returns cmOFB, see tCipherMode.
class function BlockVectorSize: Integer; override;
Always returns 1.
class function OID(aKeySize: Integer): ObjectIdentifier; override;
Always returns an empty string.

classtARC2_CTR

inherits from tARC2_CFB

class function Mode: tCipherMode; override;
Returns cmCTR, see tCipherMode.
class function BlockVectorSize: Integer; override;
Always returns 1.
class function OID(aKeySize: Integer): ObjectIdentifier; override;
Always returns an empty string.

classtARC2_KeyWrap

inherits from tARC2_CBC

implements iKeyWrap

class function Mode: tCipherMode; override;
Returns cmKeyWrap, see tCipherMode.
class function OID(aKeySize: Integer): ObjectIdentifier; override;
Always returns the string '1.2.840.113549.1.9.16.3.7'.
function KeyWrapDecrypt(const aInBuf; aInBufLen : Integer; const aKey; aKeyLen : Integer; var aOutBuf; aOutBufLen: Integer) : Integer; overload; function KeyWrapEncrypt(const aInBuf; aInBufLen : Integer; const aKey; aKeyLen : Integer; var aOutBuf; aOutBufLen: Integer) : Integer; overload; function KeyWrapDecrypt(aInBuf : iSecretKey; aKey : iSecretKey; var aOutBuf: iSecretKey) : Boolean; overload; function KeyWrapEncrypt(aInBuf : iSecretKey; aKey : iSecretKey; var aOutBuf: iSecretKey) : Boolean; overload;

Types (enumerations, sets, aliases)

typepK

  pK = ^tK;

arraytK

  tK = packed array [0..63] of Word;

typepL

  pL = ^tL;

arraytL

  tL = packed array [0..127] of Byte;

Routines