@@ -100,6 +100,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
100100 // / <returns>
101101 // / Byte array with encrypted data
102102 // / </returns>
103+ // / <exception cref="EDECCipherException">
104+ // / Exception raised if the length of the data passed as <c>Source</c>
105+ // / is not a multiple of the algorithm's block size.
106+ // / </exception>
103107 function EncodeBytes (const Source: TBytes): TBytes;
104108
105109 // / <summary>
@@ -114,6 +118,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
114118 // / <returns>
115119 // / Byte array with decrypted data
116120 // / </returns>
121+ // / <exception cref="EDECCipherException">
122+ // / Exception raised if the length of the data passed as <c>Source</c>
123+ // / is not a multiple of the algorithm's block size.
124+ // / </exception>
117125 function DecodeBytes (const Source: TBytes): TBytes;
118126
119127 // / <summary>
@@ -134,6 +142,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
134142 // / <param name="OnProgress">
135143 // / optional callback for reporting progress of the operation
136144 // / </param>
145+ // / <exception cref="EDECCipherException">
146+ // / Exception raised if the length of the data passed as <c>Source</c>
147+ // / is not a multiple of the algorithm's block size.
148+ // / </exception>
137149 procedure EncodeStream (const Source, Dest: TStream; DataSize: Int64;
138150 const OnProgress: TDECProgressEvent = nil );
139151
@@ -155,6 +167,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
155167 // / <param name="OnProgress">
156168 // / optional callback for reporting progress of the operation
157169 // / </param>
170+ // / <exception cref="EDECCipherException">
171+ // / Exception raised if the length of the data passed as <c>Source</c>
172+ // / is not a multiple of the algorithm's block size.
173+ // / </exception>
158174 procedure DecodeStream (const Source, Dest: TStream; DataSize: Int64;
159175 const OnProgress: TDECProgressEvent = nil );
160176
@@ -174,6 +190,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
174190 // / Optional event which can be passed to get information about the
175191 // / progress of the encryption operation
176192 // / </param>
193+ // / <exception cref="EDECCipherException">
194+ // / Exception raised if the length of the data passed as <c>Source</c>
195+ // / is not a multiple of the algorithm's block size.
196+ // / </exception>
177197 procedure EncodeFile (const SourceFileName, DestFileName: string;
178198 const OnProgress: TDECProgressEvent = nil );
179199
@@ -193,6 +213,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
193213 // / Optional event which can be passed to get information about the
194214 // / progress of the decryption operation
195215 // / </param>
216+ // / <exception cref="EDECCipherException">
217+ // / Exception raised if the length of the data passed as <c>Source</c>
218+ // / is not a multiple of the algorithm's block size.
219+ // / </exception>
196220 procedure DecodeFile (const SourceFileName, DestFileName: string;
197221 const OnProgress: TDECProgressEvent = nil );
198222
@@ -215,6 +239,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
215239 // / <returns>
216240 // / Encrypted string as a byte array
217241 // / </returns>
242+ // / <exception cref="EDECCipherException">
243+ // / Exception raised if the length of the data passed as <c>Source</c>
244+ // / is not a multiple of the algorithm's block size.
245+ // / </exception>
218246 function EncodeStringToBytes (const Source: string;
219247 Format: TDECFormatClass = nil ): TBytes; overload;
220248
@@ -237,6 +265,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
237265 // / <returns>
238266 // / Encrypted string as a byte array
239267 // / </returns>
268+ // / <exception cref="EDECCipherException">
269+ // / Exception raised if the length of the data passed as <c>Source</c>
270+ // / is not a multiple of the algorithm's block size.
271+ // / </exception>
240272 function EncodeStringToBytes (const Source: RawByteString;
241273 Format: TDECFormatClass = nil ): TBytes; overload;
242274
@@ -266,6 +298,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
266298 // / byte combinations in a destructive way, making the encrypted string
267299 // / un-decryptable.
268300 // / </remarks>
301+ // / <exception cref="EDECCipherException">
302+ // / Exception raised if the length of the data passed as <c>Source</c>
303+ // / is not a multiple of the algorithm's block size.
304+ // / </exception>
269305 function EncodeStringToString (const Source: string;
270306 Format: TDECFormatClass = nil ): string; overload;
271307
@@ -295,6 +331,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
295331 // / byte combinations in a destructive way, making the encrypted string
296332 // / un-decryptable.
297333 // / </remarks>
334+ // / <exception cref="EDECCipherException">
335+ // / Exception raised if the length of the data passed as <c>Source</c>
336+ // / is not a multiple of the algorithm's block size.
337+ // / </exception>
298338 function EncodeStringToString (const Source: RawByteString;
299339 Format: TDECFormatClass = nil ): RawByteString; overload;
300340
@@ -317,6 +357,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
317357 // / <returns>
318358 // / Decrypted string as a byte array
319359 // / </returns>
360+ // / <exception cref="EDECCipherException">
361+ // / Exception raised if the length of the data passed as <c>Source</c>
362+ // / is not a multiple of the algorithm's block size.
363+ // / </exception>
320364 function DecodeStringToBytes (const Source: string;
321365 Format: TDECFormatClass = nil ): TBytes; overload;
322366
@@ -339,6 +383,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
339383 // / <returns>
340384 // / Decrypted string as a byte array
341385 // / </returns>
386+ // / <exception cref="EDECCipherException">
387+ // / Exception raised if the length of the data passed as <c>Source</c>
388+ // / is not a multiple of the algorithm's block size.
389+ // / </exception>
342390 function DecodeStringToBytes (const Source: RawByteString;
343391 Format: TDECFormatClass = nil ): TBytes; overload;
344392
@@ -366,6 +414,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
366414 // / which uses an 7-bit ASCII compatible string as input so that it
367415 // / didn't get altered by Unicode string processing in some hafrmful way
368416 // / </remarks>
417+ // / <exception cref="EDECCipherException">
418+ // / Exception raised if the length of the data passed as <c>Source</c>
419+ // / is not a multiple of the algorithm's block size.
420+ // / </exception>
369421 function DecodeStringToString (const Source: string;
370422 Format: TDECFormatClass = nil ): string; overload;
371423
@@ -393,6 +445,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
393445 // / which uses an 7-bit ASCII compatible string as input so that it
394446 // / didn't get altered by string processing in some hafrmful way
395447 // / </remarks>
448+ // / <exception cref="EDECCipherException">
449+ // / Exception raised if the length of the data passed as <c>Source</c>
450+ // / is not a multiple of the algorithm's block size.
451+ // / </exception>
396452 function DecodeStringToString (const Source: RawByteString;
397453 Format: TDECFormatClass = nil ): RawByteString; overload;
398454
@@ -416,6 +472,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
416472 // / <returns>
417473 // / Encrypted string as a byte array
418474 // / </returns>
475+ // / <exception cref="EDECCipherException">
476+ // / Exception raised if the length of the data passed as <c>Source</c>
477+ // / is not a multiple of the algorithm's block size.
478+ // / </exception>
419479 function EncodeStringToBytes (const Source: AnsiString;
420480 Format: TDECFormatClass = nil ): TBytes; overload;
421481
@@ -445,6 +505,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
445505 // / byte combinations in a destructive way, making the encrypted string
446506 // / un-decryptable.
447507 // / </remarks>
508+ // / <exception cref="EDECCipherException">
509+ // / Exception raised if the length of the data passed as <c>Source</c>
510+ // / is not a multiple of the algorithm's block size.
511+ // / </exception>
448512 function EncodeStringToString (const Source: AnsiString;
449513 Format: TDECFormatClass = nil ): AnsiString; overload;
450514
@@ -467,6 +531,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
467531 // / <returns>
468532 // / Decrypted string as a byte array
469533 // / </returns>
534+ // / <exception cref="EDECCipherException">
535+ // / Exception raised if the length of the data passed as <c>Source</c>
536+ // / is not a multiple of the algorithm's block size.
537+ // / </exception>
470538 function DecodeStringToBytes (const Source: AnsiString;
471539 Format: TDECFormatClass = nil ): TBytes; overload;
472540
@@ -494,6 +562,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
494562 // / which uses an 7-bit ASCII compatible string as input so that it
495563 // / didn't get altered by string processing in some hafrmful way
496564 // / </remarks>
565+ // / <exception cref="EDECCipherException">
566+ // / Exception raised if the length of the data passed as <c>Source</c>
567+ // / is not a multiple of the algorithm's block size.
568+ // / </exception>
497569 function DecodeStringToString (const Source: AnsiString;
498570 Format: TDECFormatClass = nil ): AnsiString; overload;
499571{ $ENDIF}
@@ -518,6 +590,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
518590 // / <returns>
519591 // / Encrypted string as a byte array
520592 // / </returns>
593+ // / <exception cref="EDECCipherException">
594+ // / Exception raised if the length of the data passed as <c>Source</c>
595+ // / is not a multiple of the algorithm's block size.
596+ // / </exception>
521597 function EncodeStringToBytes (const Source: WideString;
522598 Format: TDECFormatClass = nil ): TBytes; overload;
523599
@@ -547,6 +623,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
547623 // / byte combinations in a destructive way, making the encrypted string
548624 // / un-decryptable.
549625 // / </remarks>
626+ // / <exception cref="EDECCipherException">
627+ // / Exception raised if the length of the data passed as <c>Source</c>
628+ // / is not a multiple of the algorithm's block size.
629+ // / </exception>
550630 function EncodeStringToString (const Source: WideString;
551631 Format: TDECFormatClass = nil ): WideString; overload;
552632
@@ -569,6 +649,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
569649 // / <returns>
570650 // / Decrypted string as a byte array
571651 // / </returns>
652+ // / <exception cref="EDECCipherException">
653+ // / Exception raised if the length of the data passed as <c>Source</c>
654+ // / is not a multiple of the algorithm's block size.
655+ // / </exception>
572656 function DecodeStringToBytes (const Source: WideString;
573657 Format: TDECFormatClass = nil ): TBytes; overload;
574658
@@ -596,6 +680,10 @@ TDECFormattedCipher = class(TDECCipherModes, IDECCipher)
596680 // / which uses an 7-bit ASCII compatible string as input so that it
597681 // / didn't get altered by string processing in some hafrmful way
598682 // / </remarks>
683+ // / <exception cref="EDECCipherException">
684+ // / Exception raised if the length of the data passed as <c>Source</c>
685+ // / is not a multiple of the algorithm's block size.
686+ // / </exception>
599687 function DecodeStringToString (const Source: WideString;
600688 Format: TDECFormatClass = nil ): WideString; overload;
601689{ $ENDIF}
0 commit comments