r9137 - in /trunk/libcrypt-rijndael-perl: Changes MANIFEST META.yml Makefile.PL README Rijndael.pm Rijndael.xs _rijndael.c debian/changelog rijndael.h t/blocksize.t t/cbc.t t/cfb.t t/ctr.t t/ecb.t t/lib/ t/ofb.t t/pcbc.t t/rt/ t/test_manifest

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Fri Nov 9 22:56:45 UTC 2007


Author: gregoa-guest
Date: Fri Nov  9 22:56:45 2007
New Revision: 9137

URL: http://svn.debian.org/wsvn/?sc=1&rev=9137
Log:
New upstream release.

Added:
    trunk/libcrypt-rijndael-perl/t/blocksize.t
      - copied unchanged from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/blocksize.t
    trunk/libcrypt-rijndael-perl/t/cbc.t
      - copied unchanged from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/cbc.t
    trunk/libcrypt-rijndael-perl/t/cfb.t
      - copied unchanged from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/cfb.t
    trunk/libcrypt-rijndael-perl/t/ctr.t
      - copied unchanged from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/ctr.t
    trunk/libcrypt-rijndael-perl/t/ecb.t
      - copied unchanged from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/ecb.t
    trunk/libcrypt-rijndael-perl/t/lib/
      - copied from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/lib/
    trunk/libcrypt-rijndael-perl/t/ofb.t
      - copied unchanged from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/ofb.t
    trunk/libcrypt-rijndael-perl/t/pcbc.t
      - copied unchanged from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/pcbc.t
    trunk/libcrypt-rijndael-perl/t/rt/
      - copied from r9135, branches/upstream/libcrypt-rijndael-perl/current/t/rt/
Modified:
    trunk/libcrypt-rijndael-perl/Changes
    trunk/libcrypt-rijndael-perl/MANIFEST
    trunk/libcrypt-rijndael-perl/META.yml
    trunk/libcrypt-rijndael-perl/Makefile.PL
    trunk/libcrypt-rijndael-perl/README
    trunk/libcrypt-rijndael-perl/Rijndael.pm
    trunk/libcrypt-rijndael-perl/Rijndael.xs
    trunk/libcrypt-rijndael-perl/_rijndael.c
    trunk/libcrypt-rijndael-perl/debian/changelog
    trunk/libcrypt-rijndael-perl/rijndael.h
    trunk/libcrypt-rijndael-perl/t/test_manifest

Modified: trunk/libcrypt-rijndael-perl/Changes
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/Changes?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/Changes (original)
+++ trunk/libcrypt-rijndael-perl/Changes Fri Nov  9 22:56:45 2007
@@ -1,11 +1,26 @@
-0.06 - Sun Nov 12 10:38:56 2006
-	* Adjust version number to match distro number (RT #4227)
-	* Use <sys/types.h> instead of hard-coding (RT #22755, 9514, 18812,
-	1444, 503).
-	* This module is now maintained by brian d foy (bdfoy at cpan.org)
+
+1.05 - Fri Nov  9 05:39:09 2007
+	* This version fixes the signed integer problems that Solaris had.
+	* Now this module require perl 5.6.
+	* You don't need to upgrade if your system isn't Solaris.
+
+1.04 - Mon Oct 15 14:27:00 2007
+	* Quashed warnings about overflows by casting numbers to
+	unsigned ints.
+	* This compiles warning-free and passes all tests on
+	Solaris 10 with gcc 3.4.6, so it might take care of RT
+	# 27632
+
+1.04_02 - Wed Sep 19 19:24:06 2007
+	* remove test files that shouldn't be there
+
+1.04_01 - Wed Sep 12 15:34:24 2007
+	* This developer release explores the Solaris bug noted in 
+	RT # 27632. Some Solaris installations may be encrypting or
+	decrpyting incorrectly.
 
 1.04 - Fri Feb 23 11:20:44 2007
-	* Adjusted rijndael.h to use __sun to identify Solaris boxes. GCC
+	* Todd Ross adjusted rijndael.h to use __sun to identify Solaris boxes. GCC
 	uses __sun__ or __sun, but Solaris cc only uses __sun :
 	http://blogs.sun.com/morganh/date/20060928
 	* If you've already compiled this module, you don't need to upgrade
@@ -23,34 +38,34 @@
 	* This release should fix the problems with INT types on all
 	platforms, including 64 bit platforms.
 
-0.06 - Wed Jan 10 00:35:10 2007
+0.06_10 - Wed Jan 10 00:35:10 2007
 	* Let's try the int type for MinGW:wq
 
-0.06 - Fri Dec 15 08:12:02 2006
+0.06_09 - Fri Dec 15 08:12:02 2006
 	* Updated header file to handle Solaris special case
 	* I think this might be the release candidate for 0.07! :)
 
-0.06 - Wed Nov 29 19:51:33 2006
+0.06_08 - Wed Nov 29 19:51:33 2006
 	* Adjusting WIN32 targets for typedefs. Some things look like both
 	Unix and Windows, so I don't want compilers to choke if it tries to
 	redefine types.
 
-0.06 - Mon Nov 27 10:37:18 2006
+0.06_07 - Mon Nov 27 10:37:18 2006
 	* more header file fiddling to get everyone to define the right
 	abstract types. This time check for _SYS_TYPES_H
 
-0.06 - Fri Nov 17 14:56:19 2006
+0.06_06 - Fri Nov 17 14:56:19 2006
 	* Fooled with header file some more, and tested it myself on
 	Cygwin. Instead of checking for WIN32, just check for __CYGWIN__
 
-0.06 - Fri Nov 17 11:13:25 2006
+0.06_05 - Fri Nov 17 11:13:25 2006
 	* The last two revisions seem to not define UINTxx and ends up with a
 	parse error. Let's try this, as I go off to dig out my Windows box.
 
-0.06 - Wed Nov 15 14:43:37 2006
+0.06_04 - Wed Nov 15 14:43:37 2006
 	* Try UINT patch from David Golden to get this to work on MinGW
 
-0.06 - Wed Nov 15 11:07:08 2006
+0.06_03 - Wed Nov 15 11:07:08 2006
 	* Re-jiggered logic to define UINT32 and UINT8. First I'll try
 	sys/types.h, then check if they are already defined elsewhere, and
 	lastly hardcode the typedefs based on platform. The previous 
@@ -59,6 +74,11 @@
 	I guard my typedefs by checking for previous definitions. Let's 
 	hope those previous definitions are right :)
 
-0.06 - Sun Nov 12 16:23:07 2006
+0.06_02 - Sun Nov 12 16:23:07 2006
 	* Let's try some hardcoded types for UINT(32|8) for Windows.
 
+0.06_01 - Sun Nov 12 10:38:56 2006
+	* Adjust version number to match distro number (RT #4227)
+	* Use <sys/types.h> instead of hard-coding (RT #22755, 9514, 18812,
+	1444, 503).
+	* This module is now maintained by brian d foy (bdfoy at cpan.org)

Modified: trunk/libcrypt-rijndael-perl/MANIFEST
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/MANIFEST?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/MANIFEST (original)
+++ trunk/libcrypt-rijndael-perl/MANIFEST Fri Nov  9 22:56:45 2007
@@ -11,8 +11,17 @@
 Rijndael.pm
 Rijndael.xs
 t/00_load.t
+t/blocksize.t
+t/cbc.t
+t/cfb.t
+t/ctr.t
+t/ecb.t
+t/lib/mode.pl
+t/ofb.t
+t/pcbc.t
 t/pod.t
 t/pod_coverage.t
+t/rt/27632.t
 t/test_manifest
 typemap
 META.yml                                 Module meta-data (added by MakeMaker)

Modified: trunk/libcrypt-rijndael-perl/META.yml
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/META.yml?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/META.yml (original)
+++ trunk/libcrypt-rijndael-perl/META.yml Fri Nov  9 22:56:45 2007
@@ -1,14 +1,15 @@
 --- #YAML:1.0
 name:                Crypt-Rijndael
-version:             1.04
-abstract:            ~
+version:             1.05
+abstract:            Crypt::CBC compliant Rijndael encryption module
 license:             gpl
-generated_by:        ExtUtils::MakeMaker version 6.31
+generated_by:        ExtUtils::MakeMaker version 6.36
 distribution_type:   module
 requires:     
+    Test::Manifest:                1.14
     Test::More:                    0
 meta-spec:
-    url:     http://module-build.sourceforge.net/META-spec-v1.2.html
-    version: 1.2
+    url:     http://module-build.sourceforge.net/META-spec-v1.3.html
+    version: 1.3
 author:
     - Rafael R. Sevilla (maintained by brian d foy <bdfoy at cpan.org>)

Modified: trunk/libcrypt-rijndael-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/Makefile.PL?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/Makefile.PL (original)
+++ trunk/libcrypt-rijndael-perl/Makefile.PL Fri Nov  9 22:56:45 2007
@@ -1,17 +1,21 @@
-# $Id: Makefile.PL 2170 2007-02-22 21:31:05Z comdog $
+# $Id: Makefile.PL 2367 2007-11-09 11:38:52Z comdog $
+
+require 5.006;
 
 use ExtUtils::MakeMaker;
 
 eval "use Test::Manifest 1.14";
 
 WriteMakefile(
-	NAME           => "Crypt::Rijndael",
-    VERSION_FROM   => "Rijndael.pm",
-	LICENSE        => 'gpl',
-	AUTHOR         => 'Rafael R. Sevilla (maintained by brian d foy <bdfoy at cpan.org>)',
+	'NAME'           => "Crypt::Rijndael",
+    'VERSION_FROM'   => "Rijndael.pm",
+	'LICENSE'        => 'gpl',
+	'AUTHOR'         => 'Rafael R. Sevilla (maintained by brian d foy <bdfoy at cpan.org>)',
+	'ABSTRACT'       => 'Crypt::CBC compliant Rijndael encryption module',
 	
 	'PREREQ_PM'    => { 
 			'Test::More'         => '0',
+			'Test::Manifest'     => '1.14',
 			},
 
 
@@ -28,4 +32,4 @@
 	           },
 
     OBJECT       => q[_rijndael$(OBJ_EXT) Rijndael$(OBJ_EXT)],
-); 
+	); 

Modified: trunk/libcrypt-rijndael-perl/README
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/README?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/README (original)
+++ trunk/libcrypt-rijndael-perl/README Fri Nov  9 22:56:45 2007
@@ -7,7 +7,7 @@
      # keysize() is 32, but 24 and 16 are also possible
      # blocksize() is 16
 
-     $cipher = Crypt::Rijndael->new( "a" x 32, Crypt::Rijndael::MODE_CBC );
+     $cipher = Crypt::Rijndael->new( "a" x 32, Crypt::Rijndael::MODE_CBC() );
 
      $cipher->set_iv($iv);
      $crypted = $cipher->encrypt($plaintext);
@@ -29,7 +29,7 @@
         our bytes. 128 bits, is however, the AES-specified block size, so
         this is all we support.
 
-    $cipher = new $key [, $mode]
+    $cipher = Crypt::Rijndael->new( $key [, $mode] )
         Create a new "Crypt::Rijndael" cipher object with the given key
         (which must be 128, 192 or 256 bits long). The additional $mode
         argument is the encryption mode, either "MODE_ECB" (electronic
@@ -60,6 +60,7 @@
     MODE_CTR - Counter mode
     MODE_ECB - Electronic cookbook mode
     MODE_OFB - Output feedback
+    MODE_PCBC - ignore this one for now :)
 
 SEE ALSO
     Crypt::CBC, http://www.csrc.nist.gov/encryption/aes/

Modified: trunk/libcrypt-rijndael-perl/Rijndael.pm
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/Rijndael.pm?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/Rijndael.pm (original)
+++ trunk/libcrypt-rijndael-perl/Rijndael.pm Fri Nov  9 22:56:45 2007
@@ -9,7 +9,7 @@
  # keysize() is 32, but 24 and 16 are also possible
  # blocksize() is 16
 
- $cipher = Crypt::Rijndael->new( "a" x 32, Crypt::Rijndael::MODE_CBC );
+ $cipher = Crypt::Rijndael->new( "a" x 32, Crypt::Rijndael::MODE_CBC() );
 
  $cipher->set_iv($iv);
  $crypted = $cipher->encrypt($plaintext);
@@ -29,9 +29,12 @@
 use strict;
 use vars qw( $VERSION @ISA );
 
+use warnings;
+no warnings;
+
 require DynaLoader;
 
-$VERSION = '1.04';
+$VERSION = '1.05';
 @ISA = qw/DynaLoader/;
 
 bootstrap Crypt::Rijndael $VERSION;
@@ -49,7 +52,7 @@
 our bytes.  128 bits, is however, the AES-specified block size,
 so this is all we support.
 
-=item $cipher = new $key [, $mode]
+=item $cipher = Crypt::Rijndael->new( $key [, $mode] )
 
 Create a new C<Crypt::Rijndael> cipher object with the given key
 (which must be 128, 192 or 256 bits long). The additional C<$mode>
@@ -94,6 +97,8 @@
 
 =item MODE_OFB - Output feedback
 
+=item MODE_PCBC - ignore this one for now :)
+
 =back
 
 =head1 SEE ALSO

Modified: trunk/libcrypt-rijndael-perl/Rijndael.xs
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/Rijndael.xs?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/Rijndael.xs (original)
+++ trunk/libcrypt-rijndael-perl/Rijndael.xs Fri Nov  9 22:56:45 2007
@@ -30,13 +30,14 @@
 #if (PATCHLEVEL > 4) || ((PATCHLEVEL == 4) && (SUBVERSION >= 70))
   HV *stash = gv_stashpv("Crypt::Rijndael", 0);
 
-  newCONSTSUB (stash, "keysize",   newSViv (32));
-  newCONSTSUB (stash, "blocksize", newSViv (16));
-  newCONSTSUB (stash, "MODE_ECB",  newSViv (MODE_ECB));
-  newCONSTSUB (stash, "MODE_CBC",  newSViv (MODE_CBC));
-  newCONSTSUB (stash, "MODE_CFB",  newSViv (MODE_CFB));
-  newCONSTSUB (stash, "MODE_OFB",  newSViv (MODE_OFB));
-  newCONSTSUB (stash, "MODE_CTR",  newSViv (MODE_CTR));
+  newCONSTSUB (stash, "keysize",    newSViv (32)        );
+  newCONSTSUB (stash, "blocksize",  newSViv (16)        );
+  newCONSTSUB (stash, "MODE_ECB",   newSViv (MODE_ECB)  );
+  newCONSTSUB (stash, "MODE_CBC",   newSViv (MODE_CBC)  );
+  newCONSTSUB (stash, "MODE_CFB",   newSViv (MODE_CFB)  );
+  newCONSTSUB (stash, "MODE_PCBC",  newSViv (MODE_PCBC) );
+  newCONSTSUB (stash, "MODE_OFB",   newSViv (MODE_OFB)  );
+  newCONSTSUB (stash, "MODE_CTR",   newSViv (MODE_CTR)  );
 #endif
 }
 
@@ -74,6 +75,13 @@
 MODE_CFB(...)
   CODE:
      RETVAL=MODE_CFB;
+  OUTPUT:
+     RETVAL
+
+int
+MODE_PCBC(...)
+  CODE:
+     RETVAL=MODE_PCBC;
   OUTPUT:
      RETVAL
 
@@ -117,7 +125,7 @@
 	  RETVAL->ctx.mode = RETVAL->mode = mode;
 	  /* set the IV to zero on initialization */
 	  memset(RETVAL->iv, 0, RIJNDAEL_BLOCKSIZE);
-          rijndael_setup(&RETVAL->ctx, keysize, SvPV_nolen(key));
+          rijndael_setup(&RETVAL->ctx, keysize, (UINT8 *) SvPV_nolen(key));
 
 	}
 	OUTPUT:
@@ -159,7 +167,7 @@
 	    SvPOK_only (RETVAL);
 	    SvCUR_set (RETVAL, size);
 	    (ix ? block_decrypt : block_encrypt)
-	      (&self->ctx, rawbytes, size, SvPV_nolen(RETVAL), self->iv);
+	      (&self->ctx, rawbytes, size, (UINT8 *) SvPV_nolen(RETVAL), self->iv);
           } else
             RETVAL = newSVpv ("", 0);
         }

Modified: trunk/libcrypt-rijndael-perl/_rijndael.c
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/_rijndael.c?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/_rijndael.c (original)
+++ trunk/libcrypt-rijndael-perl/_rijndael.c Fri Nov  9 22:56:45 2007
@@ -420,9 +420,9 @@
      tables. */
   for (j=0; j<4; j++) {
     e = wtxt[j] & 0xff;
-    e |= (wtxt[idx[1][j]]) & (0xff << 8);
-    e |= (wtxt[idx[2][j]]) & (0xff << 16);
-    e |= (wtxt[idx[3][j]]) & (0xff << 24);
+    e |= (wtxt[idx[1][j]]) & (0xff  << 8 );
+    e |= (wtxt[idx[2][j]]) & (0xff  << 16);
+    e |= (wtxt[idx[3][j]]) & (0xffU << 24);
     t[j] = e;
   }
   for (j=0; j<4; j++)
@@ -459,9 +459,9 @@
      tables. */
   for (j=0; j<4; j++) {
     e = wtxt[j] & 0xff;
-    e |= (wtxt[iidx[1][j]]) & (0xff << 8);
-    e |= (wtxt[iidx[2][j]]) & (0xff << 16);
-    e |= (wtxt[iidx[3][j]]) & (0xff << 24);
+    e |= (wtxt[iidx[1][j]]) & (0xff  << 8);
+    e |= (wtxt[iidx[2][j]]) & (0xff  << 16);
+    e |= (wtxt[iidx[3][j]]) & (0xffU << 24);
     t[j] = e;
   }
   for (j=0; j<4; j++)

Modified: trunk/libcrypt-rijndael-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/debian/changelog?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/debian/changelog (original)
+++ trunk/libcrypt-rijndael-perl/debian/changelog Fri Nov  9 22:56:45 2007
@@ -1,10 +1,11 @@
-libcrypt-rijndael-perl (1.04-2) UNRELEASED; urgency=low
+libcrypt-rijndael-perl (1.05-1) UNRELEASED; urgency=low
 
+  * New upstream release.
   * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
     field (source stanza); Homepage field (source stanza). Removed:
     Homepage pseudo-field (Description); XS-Vcs-Svn fields.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:28:24 +0200
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Fri, 09 Nov 2007 23:54:06 +0100
 
 libcrypt-rijndael-perl (1.04-1) unstable; urgency=low
 

Modified: trunk/libcrypt-rijndael-perl/rijndael.h
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/rijndael.h?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/rijndael.h (original)
+++ trunk/libcrypt-rijndael-perl/rijndael.h Fri Nov  9 22:56:45 2007
@@ -35,7 +35,7 @@
 #endif
 
 /* Solaris has sys/types.h, but doesn't act like everyone else 
- * GCC defines __sun__ and __sun (report from Tom Ross)
+ * GCC defines __sun__ and __sun (report from Todd Ross)
  * Solaris cc defines __sun
  */
 #if defined( __sun__ ) || defined( __sun )

Modified: trunk/libcrypt-rijndael-perl/t/test_manifest
URL: http://svn.debian.org/wsvn/trunk/libcrypt-rijndael-perl/t/test_manifest?rev=9137&op=diff
==============================================================================
--- trunk/libcrypt-rijndael-perl/t/test_manifest (original)
+++ trunk/libcrypt-rijndael-perl/t/test_manifest Fri Nov  9 22:56:45 2007
@@ -1,5 +1,14 @@
-# $Id: test_manifest 2096 2007-01-25 19:48:41Z comdog $
+# $Id: test_manifest 2305 2007-09-12 20:29:54Z comdog $
 00_load.t
 pod.t
 pod_coverage.t
+blocksize.t
+cbc.t
+cfb.t
+ctr.t
+ecb.t
+ofb.t
+pcbc.t
+#ref/cbc_d_m.t
+rt/27632.t
 #bad_iv.t




More information about the Pkg-perl-cvs-commits mailing list