@@ -26,7 +26,7 @@ interface
2626 { $ELSE}
2727 System.SysUtils, System.Classes, Generics.Collections,
2828 { $ENDIF}
29- DECBaseClass, DECFormatBase;
29+ DECBaseClass, DECFormatBase, DECTypes ;
3030
3131type
3232 // / <summary>
@@ -221,7 +221,7 @@ TDECCipher = class(TDECObject)
221221 // / This is the complete memory block containing FInitializationVector,
222222 // / FFeedback, FBuffer and FAdditionalBuffer
223223 // / </summary>
224- FData : PByteArray ;
224+ FData : PUInt8Array ;
225225 // / <summary>
226226 // / This is the size of FData in byte
227227 // / </summary>
@@ -253,7 +253,7 @@ TDECCipher = class(TDECObject)
253253 // / to work with. Some other methods like Done or Valid cipher need to pass
254254 // / a buffer as parameter as that is ecpected by the called method.
255255 // / </summary>
256- FBuffer: PByteArray ;
256+ FBuffer: PUInt8Array ;
257257
258258 // / <summary>
259259 // / Initialization vector. When using cipher modes to derive a stream
@@ -262,7 +262,7 @@ TDECCipher = class(TDECObject)
262262 // / is no such encrypted data yet, so this initialization vector fills this
263263 // / "gap".
264264 // / </summary>
265- FInitializationVector: PByteArray ;
265+ FInitializationVector: PUInt8Array ;
266266
267267 // / <summary>
268268 // / Size of the initialization vector in byte. Required for algorithms
@@ -277,7 +277,7 @@ TDECCipher = class(TDECObject)
277277 // / block. It may be XORed with the next block cipher text for isntance.
278278 // / That data "going into the next block encryption" is this feedback array
279279 // / </summary>
280- FFeedback: PByteArray ;
280+ FFeedback: PUInt8Array ;
281281
282282 // / <summary>
283283 // / Size of FAdditionalBuffer in Byte
@@ -720,7 +720,7 @@ TDECCipher = class(TDECObject)
720720 // / <summary>
721721 // / Provides access to the contents of the initialization vector
722722 // / </summary>
723- property InitVector: PByteArray
723+ property InitVector: PUInt8Array
724724 read FInitializationVector;
725725
726726 // / <summary>
@@ -732,7 +732,7 @@ TDECCipher = class(TDECObject)
732732 // / feedback array. The size usually depends on the block size of the
733733 // / cipher algorithm.
734734 // / </summary>
735- property Feedback: PByteArray
735+ property Feedback: PUInt8Array
736736 read FFeedback;
737737 // / <summary>
738738 // / Allows to query the current internal processing state
@@ -799,7 +799,7 @@ implementation
799799 { $ELSE}
800800 System.TypInfo,
801801 { $ENDIF}
802- DECTypes, DECUtil;
802+ DECUtil;
803803
804804{ $IFOPT Q+}{ $DEFINE RESTORE_OVERFLOWCHECKS}{ $Q-}{ $ENDIF}
805805{ $IFOPT R+}{ $DEFINE RESTORE_RANGECHECKS}{ $R-}{ $ENDIF}
@@ -873,7 +873,7 @@ constructor TDECCipher.Create;
873873
874874 if MustAdditionalBufferSave then
875875 // buffer contents: FData, then FFeedback, then FBuffer then FAdditionalBuffer
876- FAdditionalBufferBackup := @PByteArray (FAdditionalBuffer)[FAdditionalBufferSize]
876+ FAdditionalBufferBackup := @PUInt8Array (FAdditionalBuffer)[FAdditionalBufferSize]
877877 else
878878 FAdditionalBufferBackup := nil ;
879879
0 commit comments