Let PyCrypto build on FreeBSD.
Update PyCrypto to version 2.6.1.
Filter pycrypto warning about insecure modular exponentiaiton.
Revert "Filter pycrypto warning about insecure modular exponentiaiton."

This reverts commit a76e9a36883efe7787b122f5ce201d05d152b773.
Replace bytes_to_long/long_to_bytes by ord/chr.
Trac #12399: Get pycrypto to build on FreeBSD

Stephen Montgomery-Smith reports:
{{{
OK, I started working on building sage.  So far I can get all the spkg's
to build except:

gap-4.4.12.p6
pycrypto-2.1.0
singular-3-1-3-3.p3
maxima-5.23.2.p3
sage-4.8

The build problem with pycrypto-2.1.0 and singular-3-1-3-3.p3 are easy
to fix.
}}}
The patch is apparently
{{{

--- pycrypto-2.1.0/src/src/libtom/tomcrypt_pk.h-orig    2012-01-21
19:43:56.000000000 +0000
+++ pycrypto-2.1.0/src/src/libtom/tomcrypt_pk.h 2012-01-21
19:45:01.000000000 +0000
@@ -496,7 +496,7 @@
 int der_printable_value_decode(int v);

 /* UTF-8 */
-#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L ||
defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED)) &&
!defined(LTC_NO_WCHAR)
+#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L ||
defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED) ||
defined(_GCC_WCHAR_T)) && !defined(LTC_NO_WCHAR)
 #include <wchar.h>
 #else
 typedef ulong32 wchar_t;
}}}

Use git branch.

URL: http://trac.sagemath.org/12399
Reported by: kcrisman
Ticket author(s): Stephen Montgomery-Smith, Jean-Pierre Flori
Reviewer(s): Jean-Pierre Flori
Trac #14854: Update pycrypto to 2.6.1

We ship 2.1.0.

Use git branch and upstream tarball at:
* http://boxen.math.washington.edu/home/jpflori/upstream/pycrypto-2.6.1.
tar.gz

URL: http://trac.sagemath.org/14854
Reported by: jpflori
Ticket author(s): Jean-Pierre Flori
Reviewer(s): Volker Braun