|
|
@@ -789,7 +789,7 @@ end;
|
|
|
procedure TCbcBlockCipher.Reset;
|
|
|
begin
|
|
|
System.Move(FIV[0], FcbcV[0], System.Length(FIV));
|
|
|
- TArrayUtils.Fill(FcbcNextV, 0, System.Length(FcbcNextV), Byte(0));
|
|
|
+ TArrayUtils.ZeroFill(FcbcNextV);
|
|
|
|
|
|
Fcipher.Reset();
|
|
|
end;
|
|
|
@@ -1179,7 +1179,7 @@ end;
|
|
|
|
|
|
procedure TSicBlockCipher.Reset;
|
|
|
begin
|
|
|
- TArrayUtils.Fill(Fcounter, 0, System.Length(Fcounter), Byte(0));
|
|
|
+ TArrayUtils.ZeroFill(Fcounter);
|
|
|
System.Move(FIV[0], Fcounter[0], System.Length(FIV) * System.SizeOf(Byte));
|
|
|
|
|
|
Fcipher.Reset();
|