]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/cipher.c
(no commit message)
[imagemagick] / MagickCore / cipher.c
index cc0f27d7d45589fbe177139df29a0033bceadc1a..852376f5b22ea8018172b215b4b1d516342c7d2c 100644 (file)
 %                          MagickCore Cipher Methods                          %
 %                                                                             %
 %                             Software Design                                 %
-%                               John Cristy                                   %
+%                                  Cristy                                     %
 %                               March  2003                                   %
 %                                                                             %
 %                                                                             %
-%  Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization      %
+%  Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization      %
 %  dedicated to making software imaging solutions freely available.           %
 %                                                                             %
 %  You may not use this file except in compliance with the License.  You may  %
@@ -690,7 +690,7 @@ MagickExport MagickBooleanType PasskeyDecipherImage(Image *image,
     (void) CopyMagickMemory(output_block,input_block,AESBlocksize*
       sizeof(*output_block));
     EncipherAESBlock(aes_info,output_block,output_block);
-    for (i=0; x < length; x++)
+    for (i=0; x < (ssize_t) length; x++)
     {
       p[i]^=output_block[i];
       i++;
@@ -910,7 +910,7 @@ MagickExport MagickBooleanType PasskeyEncipherImage(Image *image,
     (void) CopyMagickMemory(output_block,input_block,AESBlocksize*
       sizeof(*output_block));
     EncipherAESBlock(aes_info,output_block,output_block);
-    for (i=0; x < length; x++)
+    for (i=0; x < (ssize_t) length; x++)
     {
       p[i]^=output_block[i];
       i++;