Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Demos/Cipher_Console/Cipher_Console.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/Cipher_Console_KDF/Cipher_Console_KDF.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/Cipher_FMX/Cipher_FMX.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
program Cipher_FMX;
program Cipher_FMX;

uses
System.StartUpCopy,
Expand Down
2 changes: 1 addition & 1 deletion Demos/Cipher_FMX/MainFormCipherFMX.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/Format_Console/Format_Console.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/HashBenchmark_FMX/HashBenchmark.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
program HashBenchmark;
program HashBenchmark;

uses
System.StartUpCopy,
Expand Down
2 changes: 1 addition & 1 deletion Demos/HashBenchmark_FMX/MainFormHashBenchmark.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/Hash_Console/Hash_Console.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/Hash_FMX/Hash_FMX.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
program Hash_FMX;
program Hash_FMX;

uses
System.StartUpCopy,
Expand Down
2 changes: 1 addition & 1 deletion Demos/Hash_FMX/MainFormHashFMX.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/Password_Console/Password_Console.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/Progress_VCL/MainFormProgressVCL.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Demos/Progress_VCL/ProgressDemoVCL.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
program ProgressDemoVCL;
program ProgressDemoVCL;

uses
Vcl.Forms,
Expand Down
2 changes: 1 addition & 1 deletion Demos/Random_VCL_Comparison/MainForm.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit MainForm;
unit MainForm;

interface

Expand Down
2 changes: 1 addition & 1 deletion Demos/Random_VCL_Comparison/RandomComparison_VCL.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
program RandomComparison_VCL;
program RandomComparison_VCL;

uses
Vcl.Forms,
Expand Down
2 changes: 1 addition & 1 deletion Install/SetIDEPaths.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DEC60.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DEC60Lazarus.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ This file was automatically created by Lazarus. Do not edit!
{ This file was automatically created by Lazarus. Do not edit!
This source is only used to compile and install the package.
}

Expand Down
2 changes: 1 addition & 1 deletion Source/DECAuthenticatedCipherModesBase.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECBaseClass.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
13 changes: 6 additions & 7 deletions Source/DECCRC.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down Expand Up @@ -149,7 +149,7 @@ interface
/// Structure whose fields shall be filled
/// </param>
/// <param name="Polynomial">
/// CRC polynome, defining the algorithm
/// CRC polynomial, defining the algorithm
/// </param>
/// <param name="Bits">
/// Size of the CRC value to be computed in bits. Needs to be at least 8
Expand Down Expand Up @@ -235,8 +235,7 @@ function CRCCode(var CRCDef: TCRCDef;
Size: UInt32 = $FFFFFFFF): UInt32; overload;

{ TODO :
DUnitTests f�r die Callback-Methoden Varianten von CRCCode und CRCCalc
schreiben }
Write DUnit tests for the callback-method variants of CRCCode and CRCCalc }
//
// CRCInit(CRC, CRC_32); // setup CRC data structure
// CRCCode(CRC, Data, SizeOf(Data)); // calcs CRC for "Data"
Expand Down Expand Up @@ -383,9 +382,9 @@ implementation
// DD $00004003, 16, $00000000, $00000000, -1 // CRC_16 reversed
// DD $00001005, 16, $00000000, $00000000, -1 // CRC_16 X25

// https://fenix.tecnico.ulisboa.pt/downloadFile/3779571246541/BasicCrd.pdf enth�lt
// eine beschreibung dieser BasicCard Smartcard incl. C-CRC Quellcode, aber die
// Polynome konnte ich so noch nicht �berpr�fen
// https://fenix.tecnico.ulisboa.pt/downloadFile/3779571246541/BasicCrd.pdf contains
// a description of this BasicCard smartcard incl. C CRC source code, but I have
// not been able to verify the polynomials that way yet
// DD $00000053, 16, $00000000, $00000000, -1 // BasicCard 16Bit CRC (sparse poly for Crypto MCU)
// DD $000000C5, 32, $00000000, $00000000, -1 // BasicCard 32Bit CRC

Expand Down
2 changes: 1 addition & 1 deletion Source/DECCipherBase.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECCipherFormats.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECCipherInterface.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECCipherModes.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECCipherModesCCM.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECCipherModesGCM.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECCipherPaddings.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
4 changes: 2 additions & 2 deletions Source/DECCiphers.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down Expand Up @@ -6581,7 +6581,7 @@ procedure TCipher_Skipjack.SkipjackDecCheck(var ATab: PSkipjackTab; AMin: PByte;
// {$IFDEF DELPHIORBCB}
// if ATab < AMin then
// {$ELSE !DELPHIORBCB}
{ TODO : Pr�fen ob so korrekt, da ATab auf PByte umgestellt wurde}
{ TODO : Verify this is still correct after ATab was changed to PByte}
if PByte(ATab) < AMin then
// {$ENDIF !DELPHIORBCB}
ATab := AMax;
Expand Down
2 changes: 1 addition & 1 deletion Source/DECData.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECDataCipher.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECDataHash.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECFormat.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECFormatBase.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ *****************************************************************************
{ *****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECHash.asm86.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECHash.pas
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ THash_MD5 = class(THashBaseMD4)
end;

/// <summary>
/// Do not confuse with the original RipeMD algorithm which ís being
/// Do not confuse with the original RipeMD algorithm which is being
/// considered to be unsafe anyway. Considered to be broken due to the only
/// 128 Bit long message digest result.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Source/DECHash.sha3_mmx.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECHash.sha3_x64.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECHashAuthentication.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
16 changes: 8 additions & 8 deletions Source/DECHashBase.pas
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,13 @@ function TDECHash.GetPaddingByte: Byte;
procedure TDECHash.Increment8(var Value; Add: UInt32);
// Value := Value + 8 * Add
// Value is array[0..7] of UInt32
{ TODO -oNormanNG -cCodeReview : !!Unbedingt noch einmal pr�fen, ob das wirklich so alles stimmt!!
Mein Versuch der Umsetzung von Increment8 in ASM.
Die Implementierung zuvor hat immer Zugriffsverletzungen ausgel�st.
Vermutung: die alte Implementierung lag urspr�nglich ausserhalb der Klasse und wurde sp�ter
in die Klasse verschoben. Dabei ver�ndert sich aber die Nutzung der Register, da zus�tzlich
der SELF-Parameter in EAX �bergeben wird. Beim Schreiben nach auf Value wurde dann in die Instanz (Self)
geschrieben -> peng
{ TODO -oNormanNG -cCodeReview : !!Must double-check once more that this is really all correct!!
My attempt at implementing Increment8 in ASM.
The previous implementation always caused access violations.
Hypothesis: the old implementation originally lived outside the class and was later
moved into the class. That changes register usage, because the SELF parameter is
additionally passed in EAX. Writes intended for Value then went into the instance (Self)
instead -> bang
}
{$IF defined(X86ASM) or defined(X64ASM)}
{$IFDEF X86ASM}
Expand All @@ -508,7 +508,7 @@ procedure TDECHash.Increment8(var Value; Add: UInt32);
register; // redundant but informative
asm
LEA EAX,[ECX*8] // EAX := ADD * 8
SHR ECX,29 // 29bit nach rechts schieben, 3bit beiben stehen
SHR ECX,29 // shift 29 bits right, 3 bits remain
ADD [EDX].DWord[00],EAX // add [edx], eax TData(Value)[00] := TData(Value)[00] + EAX
ADC [EDX].DWord[04],ECX // adc [edx+$04], ecx TData(Value)[04] := TData(Value)[04] + ECX + Carry
ADC [EDX].DWord[08],0 // adc [edx+$08], 0 TData(Value)[08] := TData(Value)[08] + 0 + Carry
Expand Down
2 changes: 1 addition & 1 deletion Source/DECHashBitBase.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECHashInterface.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECOptions.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECRandom.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECTypes.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECUtil.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECUtilRawByteStringHelper.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/DECZIPHelper.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/_DECCipherModesGCM.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{*****************************************************************************
{*****************************************************************************
The DEC team (see file NOTICE.txt) licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
Expand Down
2 changes: 1 addition & 1 deletion Source/fpc/DECUtil.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


{$define SwapUInt32_asm}
function SwapUInt32(Source: UInt32): UInt32;
begin
Expand Down
2 changes: 1 addition & 1 deletion Source/fpc/dec.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ This file was automatically created by Lazarus. Do not edit!
{ This file was automatically created by Lazarus. Do not edit!
This source is only used to compile and install the package.
}

Expand Down
2 changes: 1 addition & 1 deletion Source/x86/DECUtil.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{$ifdef FPC}
{$ifdef FPC}
{$ASMMODE intel}
{$endif}

Expand Down
2 changes: 1 addition & 1 deletion Source/x86_64/DECUtil.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{$ifdef FPC}
{$ifdef FPC}
{$ASMMODE intel}
{$endif}

Expand Down
2 changes: 1 addition & 1 deletion Unit Tests/DECDUnitTestSuite.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
program DECDUnitTestSuite;
program DECDUnitTestSuite;

{

Expand Down
2 changes: 1 addition & 1 deletion Unit Tests/DECDUnitXTestSuite.dpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{$UNDEF GUI}
{$UNDEF GUI}
{.$DEFINE GUI}
{.$DEFINE MobileGUI}
program DECDUnitXTestSuite;
Expand Down
Loading