Class TRALCriptoAES

Unit

Declaration

type TRALCriptoAES = class(TRALCripto)

Description

AES Criptography class

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function AESKeys(AIndex: integer): TBytes;
Public function CountKeys: integer;
Public function DecryptAsStream(AValue: TStream): TStream; override;
Public function EncryptAsStream(AValue: TStream): TStream; override;
Public function KeysToList: TStringList;
Protected function CheckKey: boolean;
Protected function DecryptAES(AInput, AOutput: PByte; AInputLen: integer): integer;
Protected function EncryptAES(AInput, AOutput: PByte; AInputLen: integer): integer;
Protected class function Multi(AMult: integer; AByte: byte): byte;
Protected class function Multi02(AValue: byte): byte;
Protected function RotWord(AInt: Cardinal): Cardinal;
Protected function SubWord(AInt: Cardinal): Cardinal;
Protected function WordToBytes(AInt: Cardinal): TBytes;
Protected procedure ClearThreads(AList: TThreadList);
Protected class procedure GenerateRCON;
Protected class procedure GenerateSBox;
Protected class procedure InitializeAES;
Protected procedure KeyExpansion;
Protected procedure LogAES(const ALog: StringRAL; AInput: PByte);
Protected procedure SetAESType(AValue: TRALAESType);
Protected procedure SetKey(const AValue: StringRAL); override;

Properties

Published property AESType: TRALAESType read FAESType write SetAESType;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public function AESKeys(AIndex: integer): TBytes;
 
Public function CountKeys: integer;
 
Public function DecryptAsStream(AValue: TStream): TStream; override;
 
Public function EncryptAsStream(AValue: TStream): TStream; override;
 
Public function KeysToList: TStringList;
 
Protected function CheckKey: boolean;
 
Protected function DecryptAES(AInput, AOutput: PByte; AInputLen: integer): integer;

Decrypt cipher

Protected function EncryptAES(AInput, AOutput: PByte; AInputLen: integer): integer;

Encrypt cipher

Protected class function Multi(AMult: integer; AByte: byte): byte;
 
Protected class function Multi02(AValue: byte): byte;
 
Protected function RotWord(AInt: Cardinal): Cardinal;

Key expansion

Protected function SubWord(AInt: Cardinal): Cardinal;
 
Protected function WordToBytes(AInt: Cardinal): TBytes;
 
Protected procedure ClearThreads(AList: TThreadList);
 
Protected class procedure GenerateRCON;
 
Protected class procedure GenerateSBox;
 
Protected class procedure InitializeAES;
 
Protected procedure KeyExpansion;

Cypher Encrypt and Decrypt

Protected procedure LogAES(const ALog: StringRAL; AInput: PByte);
 
Protected procedure SetAESType(AValue: TRALAESType);
 
Protected procedure SetKey(const AValue: StringRAL); override;
 

Properties

Published property AESType: TRALAESType read FAESType write SetAESType;
 


GitHub Repository
Generated by PasDoc 0.16.0.