@@ -508,12 +508,12 @@ procedure TestTHash_SHA3_Base.LoadTestDataFile(FileName : string;
508508 HashLength : Int16;
509509 lDataRow : IHashTestDataRowSetup;
510510
511- NewContents: TStringList;
511+ // NewContents: TStringList;
512512U : RawByteString;
513513begin
514514 Len := 0 ;
515515 Contents := TStringList.Create;
516- NewContents := TStringList.Create;
516+ // NewContents := TStringList.Create;
517517 try
518518 Contents.LoadFromFile(FileName);
519519
@@ -565,8 +565,8 @@ procedure TestTHash_SHA3_Base.LoadTestDataFile(FileName : string;
565565 // hash length
566566// U := CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
567567// NewContents.Add('MDuni = ' + string(U));
568- lDataRow.ExpectedOutputUTFStrTest :=
569- CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
568+ // lDataRow.ExpectedOutputUTFStrTest :=
569+ // CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
570570 end
571571 else
572572 begin
@@ -575,13 +575,13 @@ procedure TestTHash_SHA3_Base.LoadTestDataFile(FileName : string;
575575 lDataRow.AddInputVector(MsgWithFixup);
576576 lDataRow.FinalBitLength := FinalByteLen;
577577 THash_SHA3Base(HashInst).FinalByteLength := FinalByteLen;
578-
578+ //
579579 FinalByteLen := 0 ;
580- // U := CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
580+ U := CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
581581// NewContents.Add('MDuni = ' + string(U));
582582
583- lDataRow.ExpectedOutputUTFStrTest :=
584- CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
583+ lDataRow.ExpectedOutputUTFStrTest := U;
584+ // CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
585585 end ;
586586
587587 Continue;
@@ -600,14 +600,17 @@ procedure TestTHash_SHA3_Base.LoadTestDataFile(FileName : string;
600600 lDataRow.ExpectedOutput := RawByteString(s1);
601601 HashLength := Length(RawByteString(s1)) div 2 ;
602602 lDataRow.HashResultByteLength := HashLength;
603-
604- // Shake can caculate unicode test data only after hash length is known
605- THash_ShakeBase(HashInst).HashSize := HashLength;
606-
607- if (Len > 0 ) then
608- lDataRow.ExpectedOutputUTFStrTest := CalcUnicodeHash(msg, HashInst)
609- else
610- lDataRow.ExpectedOutputUTFStrTest := CalcUnicodeHash(' ' , HashInst);
603+ //
604+ // // Shake can caculate unicode test data only after hash length is known
605+ // THash_ShakeBase(HashInst).HashSize := HashLength;
606+ // //
607+ // if (Len > 0) then
608+ // //U := CalcUnicodeHash(msg, HashInst)
609+ // //// lDataRow.ExpectedOutputUTFStrTest := CalcUnicodeHash(msg, HashInst)
610+ // else
611+ // //U := CalcUnicodeHash('', HashInst);
612+ // //// lDataRow.ExpectedOutputUTFStrTest := CalcUnicodeHash('', HashInst);
613+ // //NewContents.Add('MDuni = ' + string(U));
611614 end
612615 else
613616 // md from the SHA3 ones
@@ -627,7 +630,7 @@ procedure TestTHash_SHA3_Base.LoadTestDataFile(FileName : string;
627630 finally
628631 Contents.Free;
629632// NewContents.SaveToFile(FileName + ' 2');
630- NewContents.Free;
633+ // NewContents.Free;
631634 end ;
632635end ;
633636
0 commit comments