#1 2019-07-22 15:57:37

eraldo
Member
From: Brasil
Registered: 2010-07-22
Posts: 69
Website

Error Compiling Project in Samples 02

Hi,

Today I downloaded the daily snapshot and detected an error while trying to compile.

The error occurred on line 39819>
  TAESPRNG.Main.Fill (@ fSessionCounter, SizeOf (fSessionCounter));

If you comment the line, pass.

Offline

#2 2019-07-23 07:34:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Error Compiling Project in Samples 02

With which compiler and for which target?

I don't have problem here with Delphi or FPC to Win32/Win64/BSDi386/BSDx64/Linuxi386/Linuxx64/LinuxArm/LinuxAArch64.

I suspect you may have several incompatible versions of SynCrypto.pas in your IDE path. Check you don't have any SynPDF setup somewhere.

Offline

#3 2019-07-23 15:07:46

eraldo
Member
From: Brasil
Registered: 2010-07-22
Posts: 69
Website

Re: Error Compiling Project in Samples 02

Hi ab

I tested on Delphi Rio

To be more exact, the error occurs in the procedure TAESPRNG.Seed;  in  SynCrypto.pas

procedure TAESPRNG.Seed;
var key: THash512Rec;
    entropy: RawByteString;
begin
  try
    entropy := GetEntropy(128); // 128 bytes is the HMAC_SHA512 key block size
    PBKDF2_HMAC_SHA512(entropy,ExeVersion.User,fSeedPBKDF2Rounds,key.b);     //<< In this line!
    fSafe^.Lock;
    try

I made sure I don't have incompatible versions

Offline

#4 2019-07-23 20:44:08

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Error Compiling Project in Samples 02

I compiled latest trunk with Delphi Rio on Win32 and Win64 with no problem.

I guess you should better check twice your setup.

What is the exact compilation error message reported on your side?

Offline

Board footer

Powered by FluxBB