From robin.jarry at 6wind.com Tue Apr 1 03:22:38 2014 From: robin.jarry at 6wind.com (Robin Jarry) Date: Tue, 1 Apr 2014 12:22:38 +0200 Subject: [pycrypto] XCBCMAC support Message-ID: Hello all, Recently I saw that pycrypto had CMAC support. This is good news. Some of you may know that ipsec also uses XCBCMAC for authentication (for both ESP and AH protocols). I wrote a small patch that implements this. Here is a link to the pull request I made on github: https://github.com/dlitz/pycrypto/pull/74 Can you tell me if this looks good? Cheers, -- Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhpalmieri64 at gmail.com Wed Apr 2 13:17:50 2014 From: jhpalmieri64 at gmail.com (John Palmieri) Date: Wed, 2 Apr 2014 13:17:50 -0700 Subject: [pycrypto] configure, PATH, and setup.py Message-ID: I have a patch to suggest. Both on a linux system and an OS X system that I have access to, if my PATH contains another script called "configure", then pycrypto fails to configure properly, because the line "sh configure" finds that other configure script rather than the pycrypto one. So could that command be changed? For example: $ git diff diff --git a/setup.py b/setup.py index 5269e9d..950d352 100644 --- a/setup.py +++ b/setup.py @@ -308,7 +308,7 @@ class PCTBuildConfigure(Command): os.chmod("configure", stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH) - cmd = "sh configure" # we use "sh" here so that it'll work on mingw32 with standard python.org binaries + cmd = "sh ./configure" # we use "sh" here so that it'll work on mingw32 with standard python.org binaries if self.verbose < 1: cmd += " -q" if os.system(cmd) != 0: or (maybe more portable): $ git diff diff --git a/setup.py b/setup.py index 5269e9d..77fb2b0 100644 --- a/setup.py +++ b/setup.py @@ -308,7 +308,7 @@ class PCTBuildConfigure(Command): os.chmod("configure", stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH) - cmd = "sh configure" # we use "sh" here so that it'll work on mingw32 with standard python.org binaries + cmd = "sh %s" % (os.path.join(os.curdir, 'configure')) # we use "sh" here so that it'll work on mingw32 w if self.verbose < 1: cmd += " -q" if os.system(cmd) != 0: I have no experience with Windows, for example, so I don't know how portable this kind of change would be. -- John H. Palmieri -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.jarry at 6wind.com Thu Apr 3 00:18:50 2014 From: robin.jarry at 6wind.com (Robin Jarry) Date: Thu, 3 Apr 2014 09:18:50 +0200 Subject: [pycrypto] configure, PATH, and setup.py In-Reply-To: References: Message-ID: Hello John, This sounded weird so I ran some tests. If you have a