Skip to content

Commit bf945ef

Browse files
committed
fix constant name
1 parent 3136f9c commit bf945ef

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

CryptoLib.Tests/src/Crypto/CryptoIOStreamTests.pas

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ TTestCipherStream = class(TCryptoLibAlgorithmTestCase)
7878

7979
strict private
8080
const
81-
FData = 'This will be encrypted and then decrypted and checked for correctness';
81+
Data = 'This will be encrypted and then decrypted and checked for correctness';
8282

8383
strict private
8484
procedure DoRunTest(const AName: String; AIvLength: Int32);
@@ -478,47 +478,47 @@ procedure TTestCipherStream.TestEncryptDecryptA;
478478
LDataBytes, LEncryptedDataBytes, LDecryptedDataBytes: TCryptoLibByteArray;
479479
LDecryptedData: String;
480480
begin
481-
LDataBytes := TEncoding.ASCII.GetBytes(FData);
481+
LDataBytes := TEncoding.ASCII.GetBytes(Data);
482482
LEncryptedDataBytes := EncryptOnWrite(LDataBytes);
483483
LDecryptedDataBytes := DecryptOnRead(LEncryptedDataBytes);
484484
LDecryptedData := TEncoding.ASCII.GetString(LDecryptedDataBytes);
485-
CheckEquals(FData, LDecryptedData);
485+
CheckEquals(Data, LDecryptedData);
486486
end;
487487

488488
procedure TTestCipherStream.TestEncryptDecryptB;
489489
var
490490
LDataBytes, LEncryptedDataBytes, LDecryptedDataBytes: TCryptoLibByteArray;
491491
LDecryptedData: String;
492492
begin
493-
LDataBytes := TEncoding.ASCII.GetBytes(FData);
493+
LDataBytes := TEncoding.ASCII.GetBytes(Data);
494494
LEncryptedDataBytes := EncryptOnRead(LDataBytes);
495495
LDecryptedDataBytes := DecryptOnWrite(LEncryptedDataBytes);
496496
LDecryptedData := TEncoding.ASCII.GetString(LDecryptedDataBytes);
497-
CheckEquals(FData, LDecryptedData);
497+
CheckEquals(Data, LDecryptedData);
498498
end;
499499

500500
procedure TTestCipherStream.TestEncryptDecryptC;
501501
var
502502
LDataBytes, LEncryptedDataBytes, LDecryptedDataBytes: TCryptoLibByteArray;
503503
LDecryptedData: String;
504504
begin
505-
LDataBytes := TEncoding.ASCII.GetBytes(FData);
505+
LDataBytes := TEncoding.ASCII.GetBytes(Data);
506506
LEncryptedDataBytes := EncryptOnWrite(LDataBytes);
507507
LDecryptedDataBytes := DecryptOnWrite(LEncryptedDataBytes);
508508
LDecryptedData := TEncoding.ASCII.GetString(LDecryptedDataBytes);
509-
CheckEquals(FData, LDecryptedData);
509+
CheckEquals(Data, LDecryptedData);
510510
end;
511511

512512
procedure TTestCipherStream.TestEncryptDecryptD;
513513
var
514514
LDataBytes, LEncryptedDataBytes, LDecryptedDataBytes: TCryptoLibByteArray;
515515
LDecryptedData: String;
516516
begin
517-
LDataBytes := TEncoding.ASCII.GetBytes(FData);
517+
LDataBytes := TEncoding.ASCII.GetBytes(Data);
518518
LEncryptedDataBytes := EncryptOnRead(LDataBytes);
519519
LDecryptedDataBytes := DecryptOnRead(LEncryptedDataBytes);
520520
LDecryptedData := TEncoding.ASCII.GetString(LDecryptedDataBytes);
521-
CheckEquals(FData, LDecryptedData);
521+
CheckEquals(Data, LDecryptedData);
522522
end;
523523

524524
{ TTestDigestStream }

0 commit comments

Comments
 (0)