head	1.43;
access;
symbols
	pkgsrc-2020Q4:1.42.0.8
	pkgsrc-2020Q4-base:1.42
	pkgsrc-2020Q3:1.42.0.6
	pkgsrc-2020Q3-base:1.42
	pkgsrc-2020Q2:1.42.0.4
	pkgsrc-2020Q2-base:1.42
	pkgsrc-2020Q1:1.42.0.2
	pkgsrc-2020Q1-base:1.42
	pkgsrc-2019Q4:1.41.0.24
	pkgsrc-2019Q4-base:1.41
	pkgsrc-2019Q3:1.41.0.20
	pkgsrc-2019Q3-base:1.41
	pkgsrc-2019Q2:1.41.0.18
	pkgsrc-2019Q2-base:1.41
	pkgsrc-2019Q1:1.41.0.16
	pkgsrc-2019Q1-base:1.41
	pkgsrc-2018Q4:1.41.0.14
	pkgsrc-2018Q4-base:1.41
	pkgsrc-2018Q3:1.41.0.12
	pkgsrc-2018Q3-base:1.41
	pkgsrc-2018Q2:1.41.0.10
	pkgsrc-2018Q2-base:1.41
	pkgsrc-2018Q1:1.41.0.8
	pkgsrc-2018Q1-base:1.41
	pkgsrc-2017Q4:1.41.0.6
	pkgsrc-2017Q4-base:1.41
	pkgsrc-2017Q3:1.41.0.4
	pkgsrc-2017Q3-base:1.41
	pkgsrc-2017Q2:1.40.0.4
	pkgsrc-2017Q2-base:1.40
	pkgsrc-2017Q1:1.40.0.2
	pkgsrc-2017Q1-base:1.40
	pkgsrc-2016Q4:1.36.0.8
	pkgsrc-2016Q4-base:1.36
	pkgsrc-2016Q3:1.36.0.6
	pkgsrc-2016Q3-base:1.36
	pkgsrc-2016Q2:1.36.0.4
	pkgsrc-2016Q2-base:1.36
	pkgsrc-2016Q1:1.36.0.2
	pkgsrc-2016Q1-base:1.36
	pkgsrc-2015Q4:1.35.0.16
	pkgsrc-2015Q4-base:1.35
	pkgsrc-2015Q3:1.35.0.14
	pkgsrc-2015Q3-base:1.35
	pkgsrc-2015Q2:1.35.0.12
	pkgsrc-2015Q2-base:1.35
	pkgsrc-2015Q1:1.35.0.10
	pkgsrc-2015Q1-base:1.35
	pkgsrc-2014Q4:1.35.0.8
	pkgsrc-2014Q4-base:1.35
	pkgsrc-2014Q3:1.35.0.6
	pkgsrc-2014Q3-base:1.35
	pkgsrc-2014Q2:1.35.0.4
	pkgsrc-2014Q2-base:1.35
	pkgsrc-2014Q1:1.35.0.2
	pkgsrc-2014Q1-base:1.35
	pkgsrc-2013Q4:1.33.0.2
	pkgsrc-2013Q4-base:1.33
	pkgsrc-2013Q3:1.29.0.6
	pkgsrc-2013Q3-base:1.29
	pkgsrc-2013Q2:1.29.0.4
	pkgsrc-2013Q2-base:1.29
	pkgsrc-2013Q1:1.29.0.2
	pkgsrc-2013Q1-base:1.29
	pkgsrc-2012Q4:1.28.0.2
	pkgsrc-2012Q4-base:1.28
	pkgsrc-2012Q3:1.27.0.4
	pkgsrc-2012Q3-base:1.27
	pkgsrc-2012Q2:1.27.0.2
	pkgsrc-2012Q2-base:1.27
	pkgsrc-2012Q1:1.26.0.2
	pkgsrc-2012Q1-base:1.26
	pkgsrc-2011Q4:1.24.0.2
	pkgsrc-2011Q4-base:1.24
	pkgsrc-2011Q3:1.21.0.6
	pkgsrc-2011Q3-base:1.21
	pkgsrc-2011Q2:1.21.0.4
	pkgsrc-2011Q2-base:1.21
	pkgsrc-2011Q1:1.21.0.2
	pkgsrc-2011Q1-base:1.21
	pkgsrc-2010Q4:1.20.0.2
	pkgsrc-2010Q4-base:1.20
	pkgsrc-2010Q3:1.19.0.2
	pkgsrc-2010Q3-base:1.19
	pkgsrc-base:1.1.1.1
	TNF:1.1.1
	pkgsrc-2009Q4:1.15.0.46
	pkgsrc-2009Q4-base:1.15
	pkgsrc-2008Q4:1.15.0.44
	pkgsrc-2008Q4-base:1.15
	pkgsrc-2008Q3:1.15.0.42
	pkgsrc-2008Q3-base:1.15
	cube-native-xorg:1.15.0.40
	cube-native-xorg-base:1.15
	pkgsrc-2008Q2:1.15.0.38
	pkgsrc-2008Q2-base:1.15
	pkgsrc-2008Q1:1.15.0.36
	pkgsrc-2008Q1-base:1.15
	pkgsrc-2007Q4:1.15.0.34
	pkgsrc-2007Q4-base:1.15
	pkgsrc-2007Q3:1.15.0.32
	pkgsrc-2007Q3-base:1.15
	pkgsrc-2007Q2:1.15.0.30
	pkgsrc-2007Q2-base:1.15
	pkgsrc-2007Q1:1.15.0.28
	pkgsrc-2007Q1-base:1.15
	pkgsrc-2006Q4:1.15.0.26
	pkgsrc-2006Q4-base:1.15
	pkgsrc-2006Q3:1.15.0.24
	pkgsrc-2006Q3-base:1.15
	pkgsrc-2006Q2:1.15.0.22
	pkgsrc-2006Q2-base:1.15
	pkgsrc-2006Q1:1.15.0.20
	pkgsrc-2006Q1-base:1.15
	pkgsrc-2005Q4:1.15.0.18
	pkgsrc-2005Q4-base:1.15
	pkgsrc-2005Q3:1.15.0.16
	pkgsrc-2005Q3-base:1.15
	pkgsrc-2005Q2:1.15.0.14
	pkgsrc-2005Q2-base:1.15
	pkgsrc-2005Q1:1.15.0.12
	pkgsrc-2005Q1-base:1.15
	pkgsrc-2004Q4:1.15.0.10
	pkgsrc-2004Q4-base:1.15
	pkgsrc-2004Q3:1.15.0.8
	pkgsrc-2004Q3-base:1.15
	pkgsrc-2004Q2:1.15.0.6
	pkgsrc-2004Q2-base:1.15
	pkgsrc-2004Q1:1.15.0.4
	pkgsrc-2004Q1-base:1.15
	pkgsrc-2003Q4:1.15.0.2
	pkgsrc-2003Q4-base:1.15
	buildlink2-base:1.15
	netbsd-1-5-RELEASE:1.12
	netbsd-1-4-PATCH003:1.12
	netbsd-1-4-PATCH002:1.9
	comdex-fall-1999:1.9
	netbsd-1-4-PATCH001:1.8
	netbsd-1-4-RELEASE:1.8
	netbsd-1-3-PATCH003:1.5;
locks; strict;
comment	@# @;


1.43
date	2021.03.19.08.13.06;	author adam;	state dead;
branches;
next	1.42;
commitid	TitoscY01KdYtTLC;

1.42
date	2020.01.18.21.50.45;	author jperkin;	state Exp;
branches;
next	1.41;
commitid	JW4hJgY8ZdoTFdTB;

1.41
date	2017.09.03.08.53.15;	author wiz;	state Exp;
branches;
next	1.40;
commitid	EfT0kpQ2wSMtgJ5A;

1.40
date	2017.03.07.23.17.51;	author sevan;	state Exp;
branches;
next	1.39;
commitid	NevYZANllD9nPFIz;

1.39
date	2017.01.12.16.36.35;	author rodent;	state Exp;
branches;
next	1.38;
commitid	0w0Oc61f7dQJlHBz;

1.38
date	2017.01.12.11.53.16;	author rodent;	state Exp;
branches;
next	1.37;
commitid	xEyrmU2qB8upMFBz;

1.37
date	2016.12.30.22.50.15;	author maya;	state Exp;
branches;
next	1.36;
commitid	jdzVk02mDWoDP3Az;

1.36
date	2016.03.05.11.29.25;	author jperkin;	state Exp;
branches
	1.36.8.1;
next	1.35;
commitid	1LoxeQftu903HrXy;

1.35
date	2014.02.12.23.18.36;	author tron;	state Exp;
branches;
next	1.34;
commitid	dfJj7CwMMWJzNRox;

1.34
date	2014.01.25.10.30.19;	author wiz;	state Exp;
branches;
next	1.33;
commitid	VOWgk3vYhVXj8umx;

1.33
date	2013.12.16.01.03.02;	author gdt;	state Exp;
branches;
next	1.32;
commitid	wWE7o9A6tvpChihx;

1.32
date	2013.12.14.09.17.24;	author obache;	state Exp;
branches;
next	1.31;
commitid	Mt2qauQiaXL355hx;

1.31
date	2013.12.14.08.17.31;	author obache;	state Exp;
branches;
next	1.30;
commitid	D4JKoXwXal2wK4hx;

1.30
date	2013.10.29.08.42.14;	author gls;	state Exp;
branches;
next	1.29;
commitid	NqglARTZVmjzmabx;

1.29
date	2013.02.06.23.23.44;	author jperkin;	state Exp;
branches;
next	1.28;

1.28
date	2012.10.23.18.16.53;	author asau;	state Exp;
branches;
next	1.27;

1.27
date	2012.05.25.08.28.13;	author wiz;	state Exp;
branches;
next	1.26;

1.26
date	2012.02.16.19.41.16;	author hans;	state Exp;
branches;
next	1.25;

1.25
date	2012.02.12.14.37.52;	author gls;	state Exp;
branches;
next	1.24;

1.24
date	2011.12.03.00.02.16;	author joerg;	state Exp;
branches;
next	1.23;

1.23
date	2011.11.23.19.09.01;	author gls;	state Exp;
branches;
next	1.22;

1.22
date	2011.10.30.13.30.36;	author obache;	state Exp;
branches;
next	1.21;

1.21
date	2011.01.18.12.06.57;	author drochner;	state Exp;
branches;
next	1.20;

1.20
date	2010.12.05.17.13.09;	author gls;	state Exp;
branches;
next	1.19;

1.19
date	2010.07.24.12.33.19;	author gdt;	state Exp;
branches;
next	1.18;

1.18
date	2010.07.23.23.12.36;	author gdt;	state Exp;
branches;
next	1.17;

1.17
date	2010.07.23.18.30.51;	author gdt;	state Exp;
branches;
next	1.16;

1.16
date	2010.07.22.19.34.11;	author gdt;	state Exp;
branches;
next	1.15;

1.15
date	2001.05.07.00.59.26;	author wiz;	state dead;
branches;
next	1.14;

1.14
date	2001.02.25.04.18.13;	author hubertf;	state Exp;
branches;
next	1.13;

1.13
date	2001.02.17.17.50.05;	author wiz;	state Exp;
branches;
next	1.12;

1.12
date	2000.09.09.19.40.22;	author fredb;	state Exp;
branches;
next	1.11;

1.11
date	2000.08.21.21.01.33;	author hubertf;	state Exp;
branches;
next	1.10;

1.10
date	2000.08.18.22.46.49;	author hubertf;	state Exp;
branches;
next	1.9;

1.9
date	99.09.21.03.40.23;	author hubertf;	state Exp;
branches;
next	1.8;

1.8
date	99.04.17.01.41.13;	author tsarna;	state Exp;
branches;
next	1.7;

1.7
date	99.03.08.10.53.57;	author agc;	state Exp;
branches;
next	1.6;

1.6
date	98.12.18.00.42.40;	author tsarna;	state Exp;
branches;
next	1.5;

1.5
date	98.09.27.22.24.44;	author tsarna;	state Exp;
branches;
next	1.4;

1.4
date	98.09.22.16.13.34;	author tsarna;	state Exp;
branches;
next	1.3;

1.3
date	98.08.20.15.17.24;	author tsarna;	state Exp;
branches;
next	1.2;

1.2
date	98.08.07.14.56.54;	author tsarna;	state Exp;
branches;
next	1.1;

1.1
date	98.08.07.14.50.49;	author tsarna;	state Exp;
branches
	1.1.1.1;
next	;

1.36.8.1
date	2017.03.13.07.39.32;	author spz;	state Exp;
branches;
next	;
commitid	gDXnVNpRVlo2smJz;

1.1.1.1
date	2010.07.22.19.30.42;	author gdt;	state Exp;
branches;
next	;


desc
@@


1.43
log
@py-crypto: removed
@
text
@# $NetBSD: Makefile,v 1.42 2020/01/18 21:50:45 jperkin Exp $

DISTNAME=	pycrypto-2.6.1
PKGNAME=	${DISTNAME:S/^py/${PYPKGPREFIX}-/}
PKGREVISION=	4
CATEGORIES=	security python
MASTER_SITES=	http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/

MAINTAINER=	gdt@@NetBSD.org
HOMEPAGE=	https://www.dlitz.net/software/pycrypto/
COMMENT=	Cryptographic and hash functions for Python
LICENSE=	public-domain AND python-software-foundation

CONFLICTS+=	${PYPKGPREFIX}-amkCrypto-[0-9]*
SUPERSEDES+=	${PYPKGPREFIX}-amkCrypto-[0-9]*

GNU_CONFIGURE=	yes

do-test:
	${RUN}cd ${WRKSRC};${SETENV} ${TEST_ENV} ${PYTHONBIN} ${PYSETUP} test

PLIST_VARS+=	py2x
.include "../../lang/python/pyversion.mk"
.if empty(PYPKGPREFIX:Mpy3?)
PLIST.py2x=	yes
.endif

CFLAGS.SunOS+=	-std=c99 -D_XOPEN_SOURCE=600

BUILDLINK_API_DEPENDS.gmp+=	gmp>=5.0
.include "../../devel/gmp/buildlink3.mk"
.include "../../lang/python/distutils.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.42
log
@*: Recursive revision bump for openssl 1.1.1.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2017/09/03 08:53:15 wiz Exp $
@


1.41
log
@Follow some redirects.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2017/03/07 23:17:51 sevan Exp $
d5 1
a5 1
PKGREVISION=	3
@


1.40
log
@Patch CVE-2013-7459, obtained from:
https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4
Bump rev.

Reviewed by: wiz
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2017/01/12 16:36:35 rodent Exp $
d10 1
a10 1
HOMEPAGE=	http://www.dlitz.net/software/pycrypto/
@


1.39
log
@Revert last commit. According to wiz@@ in private mail, CONFLICTS is needed
for configuration files only.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2017/01/12 11:53:16 rodent Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.38
log
@py-crypto and py-cryptodome CONFLICT with:

${PYSITELIB}/Crypto/Cipher/AES.py
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2016/12/30 22:50:15 maya Exp $
a14 1
CONFLICTS+=	${PYPKGPREFIX}-cryptodome-[0-9]*
@


1.37
log
@Use public-domain AND python-software-foundation as a license.

Pointed out by leot - thanks!
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2016/03/05 11:29:25 jperkin Exp $
d15 1
@


1.36
log
@Bump PKGREVISION for security/openssl ABI bump.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2014/02/12 23:18:36 tron Exp $
d12 1
a12 2
# mostly public domain, but a few bits are:
LICENSE=	python-software-foundation
@


1.36.8.1
log
@Pullup ticket #5223 - requested by sevan
security/py-crypto: security patch

Revisions pulled up:
- security/py-crypto/Makefile                                   1.40
- security/py-crypto/distinfo                                   1.13
- security/py-crypto/patches/patch-lib_Crypto_SelfTest_Cipher_common.py 1.2
- security/py-crypto/patches/patch-src_block_template.c         1.1

-------------------------------------------------------------------
   Module Name:    pkgsrc
   Committed By:   sevan
   Date:           Tue Mar  7 23:17:51 UTC 2017

   Modified Files:
           pkgsrc/security/py-crypto: Makefile distinfo
   Added Files:
           pkgsrc/security/py-crypto/patches:
               patch-lib_Crypto_SelfTest_Cipher_common.py
               patch-src_block_template.c

   Log Message:
   Patch CVE-2013-7459, obtained from:
   https://github.com/dlitz/pycrypto/commit/8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4
   Bump rev.

   Reviewed by: wiz


   To generate a diff of this commit:
   cvs rdiff -u -r1.39 -r1.40 pkgsrc/security/py-crypto/Makefile
   cvs rdiff -u -r1.11 -r1.12 pkgsrc/security/py-crypto/distinfo
   cvs rdiff -u -r0 -r1.1 \
       pkgsrc/security/py-crypto/patches/patch-lib_Crypto_SelfTest_Cipher_common.py \
       pkgsrc/security/py-crypto/patches/patch-src_block_template.c

-------------------------------------------------------------------
   Module Name:    pkgsrc
   Committed By:   sevan
   Date:           Wed Mar  8 01:09:00 UTC 2017

   Modified Files:
           pkgsrc/security/py-crypto: distinfo
           pkgsrc/security/py-crypto/patches:
               patch-lib_Crypto_SelfTest_Cipher_common.py

   Log Message:
   Tabs vs spaces!
   Unbreak with the Python 3 versions of the package.
   Heads up by Daniel Jakots.


   To generate a diff of this commit:
   cvs rdiff -u -r1.12 -r1.13 pkgsrc/security/py-crypto/distinfo
   cvs rdiff -u -r1.1 -r1.2 \
       pkgsrc/security/py-crypto/patches/patch-lib_Crypto_SelfTest_Cipher_common.py
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
a5 1
PKGREVISION=	3
@


1.35
log
@Recursive PKGREVISION bump for OpenSSL API version bump.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2014/01/25 10:30:19 wiz Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.34
log
@Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2013/12/16 01:03:02 gdt Exp $
d5 1
@


1.33
log
@Take MAINTAINERship; I more or less have been.
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.32 2013/12/14 09:17:24 obache Exp $
#
a16 2
PYTHON_VERSIONS_INCLUDE_3X=	yes

@


1.32
log
@marked as SUPERSEDES py-amkCrypto
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2013/12/14 08:17:31 obache Exp $
d9 1
a9 1
MAINTAINER=	pkgsrc-users@@NetBSD.org
@


1.31
log
@FETCH_USING must not be put on pkg's Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2013/10/29 08:42:14 gls Exp $
d16 1
@


1.30
log
@Update security/py-crypto to 2..6.1
This is a security fix to address CVE-2013-1445

Upstream changes:
-----------------

2.6.1
=====
        * [CVE-2013-1445] Fix PRNG not correctly reseeded in some situations.

         In previous versions of PyCrypto, the Crypto.Random PRNG exhibits a
         race condition that may cause forked processes to generate identical
         sequences of 'random' numbers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2013/02/06 23:23:44 jperkin Exp $
a7 1
FETCH_USING=	curl
@


1.29
log
@PKGREVISION bumps for the security/openssl 1.0.1d update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2012/10/23 18:16:53 asau Exp $
d4 1
a4 1
DISTNAME=	pycrypto-2.6
a5 1
PKGREVISION=	1
d8 1
@


1.28
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2012/05/25 08:28:13 wiz Exp $
d6 1
@


1.27
log
@Update to 2.6:

2.6
===
	* [CVE-2012-2417] Fix LP#985164: insecure ElGamal key generation.
	  (thanks: Legrandin)

	  In the ElGamal schemes (for both encryption and signatures), g is
	  supposed to be the generator of the entire Z^*_p group.  However, in
	  PyCrypto 2.5 and earlier, g is more simply the generator of a random
	  sub-group of Z^*_p.

	  The result is that the signature space (when the key is used for
	  signing) or the public key space (when the key is used for encryption)
	  may be greatly reduced from its expected size of log(p) bits, possibly
	  down to 1 bit (the worst case if the order of g is 2).

	  While it has not been confirmed, it has also been suggested that an
	  attacker might be able to use this fact to determine the private key.

	  Anyone using ElGamal keys should generate new keys as soon as practical.

	  Any additional information about this bug will be tracked at
	  https://bugs.launchpad.net/pycrypto/+bug/985164

	* Huge documentation cleanup (thanks: Legrandin).

	* Added more tests, including test vectors from NIST 800-38A
	  (thanks: Legrandin)

	* Remove broken MODE_PGP, which never actually worked properly.
	  A new mode, MODE_OPENPGP, has been added for people wishing to write
	  OpenPGP implementations.  Note that this does not implement the full
	  OpenPGP specification, only the "OpenPGP CFB mode" part of that
	  specification.
	  https://bugs.launchpad.net/pycrypto/+bug/996814

	* Fix: getPrime with invalid input causes Python to abort with fatal error
	  https://bugs.launchpad.net/pycrypto/+bug/988431

	* Fix: Segfaults within error-handling paths
	  (thanks: Paul Howarth & Dave Malcolm)
	  https://bugs.launchpad.net/pycrypto/+bug/934294

	* Fix: Block ciphers allow empty string as IV
	  https://bugs.launchpad.net/pycrypto/+bug/997464

	* Fix DevURandomRNG to work with Python3's new I/O stack.
	  (thanks: Sebastian Ramacher)

	* Remove automagic dependencies on libgmp and libmpir, let the caller
	  disable them using args.

	* Many other minor bug fixes and improvements (mostly thanks to Legrandin)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2012/02/16 19:41:16 hans Exp $
a16 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.26
log
@Fix build on SunOS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2012/02/12 14:37:52 gls Exp $
d4 1
a4 1
DISTNAME=	pycrypto-2.5
@


1.25
log
@
Update security/py-crypto to 2.5

Upstream changes:

2.5
===
* Added PKCS#1 encryption schemes (v1.5 and OAEP). We now have
a decent, easy-to-use non-textbook RSA implementation. Yay!

* Added PKCS#1 signature schemes (v1.5 and PSS). v1.5 required some
extensive changes to Hash modules to contain the algorithm specific
ASN.1 OID. To that end, we now always have a (thin) Python module to
hide the one in pure C.

* Added 2 standard Key Derivation Functions (PBKDF1 and PBKDF2).

* Added export/import of RSA keys in OpenSSH and PKCS#8 formats.

* Added password-protected export/import of RSA keys (one old method
for PKCS#8 PEM only).

* Added ability to generate RSA key pairs with configurable public
exponent e.

* Added ability to construct an RSA key pair even if only the private
exponent d is known, and not p and q.

* Added SHA-2 C source code (fully from Lorenz Quack).

* Unit tests for all the above.

* Updates to documentation (both inline and in Doc/pycrypt.rst)

* All of the above changes were put together by Legrandin (Thanks!)

* Minor bug fixes (setup.py and tests).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2011/12/03 00:02:16 joerg Exp $
d32 2
@


1.24
log
@Tag the 28 locations that result in a Python 3.1 package as supporting so.
Remove it from the default list for the rest.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2011/11/23 19:09:01 gls Exp $
d4 1
a4 1
DISTNAME=	pycrypto-2.4.1
d26 1
a26 1
PLIST_VARS+=	py25 py2x
a27 3
.if empty(PYPKGPREFIX:Mpy24)
PLIST.py25=	yes
.endif
@


1.23
log
@Updating security/py-crypto to 2.4.1

upstream Changelog:
2.4.1
=====
        * Fix "error: Setup script exited with error: src/config.h: No such file or
	  directory" when installing via easy_install.  (Sebastian Ramacher)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2011/10/30 13:30:36 obache Exp $
d19 2
@


1.22
log
@Update py-cryoto to 2.4.

2.4
===
	* Python 3 support!  (Thorsten E. Behrens, Anders Sundman)
	  PyCrypto now supports every version of Python from 2.1 through 3.2.

	* Timing-attack countermeasures in _fastmath: When built against
	  libgmp version 5 or later, we use mpz_powm_sec instead of mpz_powm.
	  This should prevent the timing attack described by Geremy Condra at
	  PyCon 2011:
	  http://blip.tv/pycon-us-videos-2009-2010-2011/pycon-2011-through-the-side-channel-timing-and-implementation-attacks-in-python-4897955

	* New hash modules (for Python >= 2.5 only): SHA224, SHA384, and
	  SHA512 (Frédéric Bertolus)

	* Configuration using GNU autoconf.  This should help fix a bunch of
	  build issues.

	* Support using MPIR as an alternative to GMP.

	* Improve the test command in setup.py, by allowing tests to be
	  performed on a single sub-package or module only. (Legrandin)

	  You can now do something like this:

	    python setup.py test -m Hash.SHA256 --skip-slow-tests

	* Fix double-decref of "counter" when Cipher object initialisation
	  fails (Ryan Kelly)

	* Apply patches from Debian's python-crypto 2.3-3 package (Jan
	  Dittberner, Sebastian Ramacher):
	 - fix-RSA-generate-exception.patch
	 - epydoc-exclude-introspect.patch
	 - no-usr-local.patch

	* Fix launchpad bug #702835: "Import key code is not compatible with
	  GMP library" (Legrandin)

	* More tests, better documentation, various bugfixes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2011/01/18 12:06:57 drochner Exp $
d4 1
a4 1
DISTNAME=	pycrypto-2.4
@


1.21
log
@add/fix mutual CONFLICT
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2010/12/05 17:13:09 gls Exp $
d4 2
a5 2
DISTNAME=	pycrypto-2.3
PKGNAME=	${PYPKGPREFIX}-crypto-2.3
d19 1
a19 11
SUBST_CLASSES+=			python
SUBST_STAGE.python=		post-patch
SUBST_MESSAGE.python=	Fix hardcoded paths
SUBST_FILES.python=		lib/Crypto/Util/RFC1751.py
SUBST_SED.python=		-e 's,@@@@PYTHON@@@@,${PYTHONBIN},'

SUBST_CLASSES+=			libdir
SUBST_STAGE.libdir=		post-patch
SUBST_MESSAGE.libdir=	Fix hardcoded libraries directory paths
SUBST_FILES.libdir+=	setup.py
SUBST_SED.libdir=		-e 's,@@@@LIBDIR@@@@,${PREFIX}/lib,'
d21 13
@


1.20
log
@Update py-crypto to version 2.3

pkgsrc changes:
 - add a patch to fix an hardcoded interpreter path
 - add a patch to actually find gmp library.
 - add CONFLICTS with py-amkCrypto, both have files in common.

upstream changes:

2.3
===
* Fix NameError when attempting to use deprecated getRandomNumber()
function.
* _slowmath: Compute RSA u parameter when it's not given to
RSA.construct. This makes _slowmath behave the same as _fastmath in
this regard.
* Make RSA.generate raise a more user-friendly exception message when
the user tries to generate a bogus-length key.

2.2
===
* Deprecated Crypto.Util.number.getRandomNumber(), which had confusing
semantics.  It's been replaced by getRandomNBitInteger and
getRandomInteger.  (Thanks: Lorenz Quack)
* Better isPrime() and getPrime() implementations that do a real
Rabin-Miller probabilistic primality test (not the phony test we did
before with fixed bases).  (Thanks: Lorenz Quack)
* getStrongPrime() implementation for generating RSA primes.
(Thanks: Lorenz Quack)
* Support for importing and exporting RSA keys in DER and PEM format
(Thanks: Legrandin)
* Fix PyCrypto when floor division (python -Qnew) is enabled.
* When building using gcc, use -std=c99 for compilation.  This should
fix building on FreeBSD and NetBSD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2010/07/24 12:33:19 gdt Exp $
d15 1
a15 1
CONFLICTS+=	py-amkCrypto-[0-9]*
@


1.19
log
@Use new lang/python/distutils.mk, simplifying Makefile.
Support conditional egg generation, making this build on 2.4.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2010/07/23 23:12:36 gdt Exp $
d4 2
a5 3
DISTNAME=	pycrypto-2.1.0
PKGREVISION=	3
PKGNAME=	${PYPKGPREFIX}-crypto-2.1.0
a7 2
# mostly public domain, but a few bits are:
LICENSE=	python-software-foundation
d12 4
d19 12
@


1.18
log
@Substitute egg file name to avoid hardcoded version.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2010/07/23 18:30:51 gdt Exp $
d5 1
a5 1
PKGREVISION=	2
a17 5
PYDISTUTILSPKG=	yes
PY_NO_EGG=	no
EGG_NAME?=	${DISTNAME}
PLIST_SUBST+=	EGG_FILE=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info

d19 1
a19 1
.include "../../lang/python/extension.mk"
@


1.17
log
@Add PY_NO_EGG=no and egg file to PLIST.
Add LICENSE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2010/07/22 19:34:11 gdt Exp $
d5 1
a5 1
PKGREVISION=	1
d20 2
@


1.16
log
@Fix import; apparently importing a package that used to exist does not
go well.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2010/01/17 12:02:43 wiz Exp $
d5 1
d9 2
d19 1
@


1.15
log
@Remove py-crypto, which has been obsoleted by py-amkCrypto.
@
text
@d1 2
a2 1
# $NetBSD: Makefile,v 1.14 2001/02/25 04:18:13 hubertf Exp $
d4 4
a7 5
DISTNAME=	pycrypt100
PKGNAME=	py-crypto-1.0.0
CATEGORIES=	security
MASTER_SITES=	ftp://ftp.cwi.nl/pub/pct/
EXTRACT_SUFX=	.tgz
d9 3
a11 3
MAINTAINER=	tsarna@@netbsd.org
HOMEPAGE=	http://starship.skyport.net/crew/amk/writing/pct/
COMMENT=	Python Cryptography Toolkit, version 1.0.0
d13 1
a13 1
DEPENDS+=	python-1.5.2:../../lang/python
d15 1
a15 35
CRYPTO=		yes

WRKSRC=		${WRKDIR}/Extensions/Crypto
MAKE_FLAGS=	'OPT=${CFLAGS}'

INFO_FILES=	pct.info

.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "vax"
IGNORE="${PKGNAME} needs dynamic loading"
.endif

post-extract:
	@@(cd ${WRKDIR}; tar xf pycrypt.tar)

do-configure:
	@@(cd ${WRKSRC}; ${PREFIX}/bin/python buildkit)
	${CP} ${PREFIX}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/src
	${CP} ${WRKSRC}/Setup.in ${WRKSRC}/src
	@@(cd ${WRKSRC}/src; ${MAKE} -f Makefile.pre.in boot)

do-build:
	@@(cd ${WRKSRC}/src; ${MAKE})
	${PREFIX}/bin/python ${PREFIX}/lib/python1.5/compileall.py \
		${WRKSRC}/Lib
	${PREFIX}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py \
		${WRKSRC}/Lib

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/lib/python1.5/site-packages
	(cd ${WRKSRC}/Lib ; ${INSTALL_DATA} *.py *.pyc *.pyo \
		${PREFIX}/lib/python1.5/site-packages)
	(cd ${WRKSRC}/src ; ${INSTALL_DATA} *.so \
		${PREFIX}/lib/python1.5/site-packages)
	(cd ${WRKSRC}/Doc ; ${INSTALL_MAN} *info* \
		${PREFIX}/info)
d17 3
@


1.14
log
@Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2001/02/17 17:50:05 wiz Exp $
@


1.13
log
@Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2000/09/09 19:40:22 fredb Exp $
d43 1
a43 1
	${MKDIR} ${PREFIX}/lib/python1.5/site-packages
@


1.12
log
@Reorganize crypto handling, as discussed on tech-pkg. Remove all
RESTRICTED= variables that were predicated on former U.S. export
regulations. Add CRYPTO=, as necessary, so it's still possible to
exclude all crypto packages from a build by setting MKCRYPTO=no
(but "lintpkgsrc -R" will no longer catch them).

Specifically,

- - All packages which set USE_SSL just lose their RESTRICTED
    variable, since MKCRYPTO responds to USE_SSL directly.
- - realplayer7 and ns-flash keep their RESTRICTED, which is based
    on license terms, but also gain the CRYPTO variable.
- - srp-client is now marked broken, since the distfile is evidently
    no longer available. On this, we're no worse off than before.
    [We haven't been mirroring the distfile, or testing the build!]
- - isakmpd gets CRYPTO for RESTRICTED, but remains broken.
- - crack loses all restrictions, as it does not evidently empower
    a user to utilize strong encryption (working definition: ability
    to encode a message that requires a secret key plus big number
    arithmetic to decode).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2000/08/21 21:01:33 hubertf Exp $
d11 1
@


1.11
log
@Update IGNORE-messages for recent changes: add ${PKGNAME} where
appropriate.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2000/08/18 22:46:49 hubertf Exp $
d14 1
a14 2
RESTRICTED=	"Cryptographic software"
NO_SRC_ON_FTP=	${RESTRICTED}
@


1.10
log
@Replace MIRROR_DISTFILES and NO_CDROM with the more descriptive and
more fine-grained NO_{BIN,SRC}_ON_{FTP,CDROM} definitions.

MIRROR_DISTFILES and NO_CDROM are now dead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 1999/09/21 03:40:23 hubertf Exp $
d23 1
a23 1
IGNORE="Needs dynamic loading"
@


1.9
log
@install(1) wants directories to install to to exist
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 1999/04/17 01:41:13 tsarna Exp $
d15 1
a15 1
MIRROR_DISTFILE=no
@


1.8
log
@Update for python 1.5.2.
XXX this is not updated to the latest version, which has changed
significantly. There isn't time to do investigate it before the freeze.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1999/03/08 10:53:57 agc Exp $
d43 1
@


1.7
log
@s/make/${MAKE}/g
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 1998/12/18 00:42:40 tsarna Exp $
d12 1
a12 1
DEPENDS+=	python-1.5.1:../../lang/python
@


1.6
log
@Re-enable on alpha
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1998/09/27 22:24:44 tsarna Exp $
d33 1
a33 1
	@@(cd ${WRKSRC}/src; make -f Makefile.pre.in boot)
d36 1
a36 1
	@@(cd ${WRKSRC}/src; make)
@


1.5
log
@Tim tested some of these, but I don't know which. Since at least one of
the pkgs broke on Alpha that was not expected to, disable them all for
the 1.3.3 tag to be on the safe side :-(
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1998/09/22 16:13:34 tsarna Exp $
a12 2

NOT_FOR_ARCHS=  alpha # possibly broken
@


1.4
log
@alpha->vax, since Alpha now works for Python dynamicly loaded modules,
but VAX never has.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 1998/08/20 15:17:24 tsarna Exp $
d13 2
@


1.3
log
@The Grand Homepagification:
	- New, optional Makefile variable HOMEPAGE, specifies a URL for
	  the home page of the software if it has one.
	- The value of HOMEPAGE is used to add a link from the
	  README.html files.
	- pkglint updated to know about it.  The "correct" location for
	  HOMEPAGE in the Makefile is after MAINTAINER, in that same
	  section.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 1998/08/07 14:56:54 tsarna Exp $
d22 1
a22 1
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "alpha"
@


1.2
log
@Clean up
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 1998/08/07 14:50:49 tsarna Exp $
d10 1
@


1.1
log
@New package for the Python Cryptography Toolkit, version 1.0.0
@
text
@d1 1
a1 1
# $NetBSD$
d13 1
a14 1
RESTRICTED=	crypto
@


1.1.1.1
log
@Import py26-crypto-2.1.0 as security/py-crypto.

Python extensions using OpenSSL which contains hashing algorithms,

This package more or less supersedes py-amkCrypto.
chaffing/winnowing, random number generation, various utility modules,
and several block encryption and digital signature algorithms.
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.25 2010/01/17 12:02:43 wiz Exp $
#
d3 5
a7 4
DISTNAME=	pycrypto-2.1.0
PKGNAME=	${PYPKGPREFIX}-crypto-2.1.0
CATEGORIES=	security python
MASTER_SITES=	http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
d9 1
a9 3
MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	http://www.dlitz.net/software/pycrypto/
COMMENT=	Cryptographic and hash functions for Python
d11 1
a11 1
PKG_DESTDIR_SUPPORT=	user-destdir
d13 35
a47 1
PYDISTUTILSPKG=	yes
a48 3
.include "../../devel/gmp/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../security/openssl/buildlink3.mk"
@

