head	1.5;
access;
symbols
	pkgsrc-2020Q4:1.4.0.82
	pkgsrc-2020Q4-base:1.4
	pkgsrc-2020Q3:1.4.0.80
	pkgsrc-2020Q3-base:1.4
	pkgsrc-2020Q2:1.4.0.76
	pkgsrc-2020Q2-base:1.4
	pkgsrc-2020Q1:1.4.0.56
	pkgsrc-2020Q1-base:1.4
	pkgsrc-2019Q4:1.4.0.78
	pkgsrc-2019Q4-base:1.4
	pkgsrc-2019Q3:1.4.0.74
	pkgsrc-2019Q3-base:1.4
	pkgsrc-2019Q2:1.4.0.72
	pkgsrc-2019Q2-base:1.4
	pkgsrc-2019Q1:1.4.0.70
	pkgsrc-2019Q1-base:1.4
	pkgsrc-2018Q4:1.4.0.68
	pkgsrc-2018Q4-base:1.4
	pkgsrc-2018Q3:1.4.0.66
	pkgsrc-2018Q3-base:1.4
	pkgsrc-2018Q2:1.4.0.64
	pkgsrc-2018Q2-base:1.4
	pkgsrc-2018Q1:1.4.0.62
	pkgsrc-2018Q1-base:1.4
	pkgsrc-2017Q4:1.4.0.60
	pkgsrc-2017Q4-base:1.4
	pkgsrc-2017Q3:1.4.0.58
	pkgsrc-2017Q3-base:1.4
	pkgsrc-2017Q2:1.4.0.54
	pkgsrc-2017Q2-base:1.4
	pkgsrc-2017Q1:1.4.0.52
	pkgsrc-2017Q1-base:1.4
	pkgsrc-2016Q4:1.4.0.50
	pkgsrc-2016Q4-base:1.4
	pkgsrc-2016Q3:1.4.0.48
	pkgsrc-2016Q3-base:1.4
	pkgsrc-2016Q2:1.4.0.46
	pkgsrc-2016Q2-base:1.4
	pkgsrc-2016Q1:1.4.0.44
	pkgsrc-2016Q1-base:1.4
	pkgsrc-2015Q4:1.4.0.42
	pkgsrc-2015Q4-base:1.4
	pkgsrc-2015Q3:1.4.0.40
	pkgsrc-2015Q3-base:1.4
	pkgsrc-2015Q2:1.4.0.38
	pkgsrc-2015Q2-base:1.4
	pkgsrc-2015Q1:1.4.0.36
	pkgsrc-2015Q1-base:1.4
	pkgsrc-2014Q4:1.4.0.34
	pkgsrc-2014Q4-base:1.4
	pkgsrc-2014Q3:1.4.0.32
	pkgsrc-2014Q3-base:1.4
	pkgsrc-2014Q2:1.4.0.30
	pkgsrc-2014Q2-base:1.4
	pkgsrc-2014Q1:1.4.0.28
	pkgsrc-2014Q1-base:1.4
	pkgsrc-2013Q4:1.4.0.26
	pkgsrc-2013Q4-base:1.4
	pkgsrc-2013Q3:1.4.0.24
	pkgsrc-2013Q3-base:1.4
	pkgsrc-2013Q2:1.4.0.22
	pkgsrc-2013Q2-base:1.4
	pkgsrc-2013Q1:1.4.0.20
	pkgsrc-2013Q1-base:1.4
	pkgsrc-2012Q4:1.4.0.18
	pkgsrc-2012Q4-base:1.4
	pkgsrc-2012Q3:1.4.0.16
	pkgsrc-2012Q3-base:1.4
	pkgsrc-2012Q2:1.4.0.14
	pkgsrc-2012Q2-base:1.4
	pkgsrc-2012Q1:1.4.0.12
	pkgsrc-2012Q1-base:1.4
	pkgsrc-2011Q4:1.4.0.10
	pkgsrc-2011Q4-base:1.4
	pkgsrc-2011Q3:1.4.0.8
	pkgsrc-2011Q3-base:1.4
	pkgsrc-2011Q2:1.4.0.6
	pkgsrc-2011Q2-base:1.4
	pkgsrc-2011Q1:1.4.0.4
	pkgsrc-2011Q1-base:1.4
	pkgsrc-2010Q4:1.4.0.2
	pkgsrc-2010Q4-base:1.4
	pkgsrc-2010Q3:1.3.0.2
	pkgsrc-2010Q3-base:1.3
	pkgsrc-base:1.1.1.1
	TNF:1.1.1
	pkgsrc-2009Q4:1.2.0.46
	pkgsrc-2009Q4-base:1.2
	pkgsrc-2008Q4:1.2.0.44
	pkgsrc-2008Q4-base:1.2
	pkgsrc-2008Q3:1.2.0.42
	pkgsrc-2008Q3-base:1.2
	cube-native-xorg:1.2.0.40
	cube-native-xorg-base:1.2
	pkgsrc-2008Q2:1.2.0.38
	pkgsrc-2008Q2-base:1.2
	pkgsrc-2008Q1:1.2.0.36
	pkgsrc-2008Q1-base:1.2
	pkgsrc-2007Q4:1.2.0.34
	pkgsrc-2007Q4-base:1.2
	pkgsrc-2007Q3:1.2.0.32
	pkgsrc-2007Q3-base:1.2
	pkgsrc-2007Q2:1.2.0.30
	pkgsrc-2007Q2-base:1.2
	pkgsrc-2007Q1:1.2.0.28
	pkgsrc-2007Q1-base:1.2
	pkgsrc-2006Q4:1.2.0.26
	pkgsrc-2006Q4-base:1.2
	pkgsrc-2006Q3:1.2.0.24
	pkgsrc-2006Q3-base:1.2
	pkgsrc-2006Q2:1.2.0.22
	pkgsrc-2006Q2-base:1.2
	pkgsrc-2006Q1:1.2.0.20
	pkgsrc-2006Q1-base:1.2
	pkgsrc-2005Q4:1.2.0.18
	pkgsrc-2005Q4-base:1.2
	pkgsrc-2005Q3:1.2.0.16
	pkgsrc-2005Q3-base:1.2
	pkgsrc-2005Q2:1.2.0.14
	pkgsrc-2005Q2-base:1.2
	pkgsrc-2005Q1:1.2.0.12
	pkgsrc-2005Q1-base:1.2
	pkgsrc-2004Q4:1.2.0.10
	pkgsrc-2004Q4-base:1.2
	pkgsrc-2004Q3:1.2.0.8
	pkgsrc-2004Q3-base:1.2
	pkgsrc-2004Q2:1.2.0.6
	pkgsrc-2004Q2-base:1.2
	pkgsrc-2004Q1:1.2.0.4
	pkgsrc-2004Q1-base:1.2
	pkgsrc-2003Q4:1.2.0.2
	pkgsrc-2003Q4-base:1.2
	buildlink2-base:1.2
	netbsd-1-5-RELEASE:1.1
	netbsd-1-4-PATCH003:1.1
	netbsd-1-4-PATCH002:1.1
	comdex-fall-1999:1.1
	netbsd-1-4-PATCH001:1.1
	netbsd-1-4-RELEASE:1.1
	netbsd-1-3-PATCH003:1.1;
locks; strict;
comment	@# @;


1.5
date	2021.03.19.08.13.06;	author adam;	state dead;
branches;
next	1.4;
commitid	TitoscY01KdYtTLC;

1.4
date	2010.12.05.17.13.09;	author gls;	state Exp;
branches;
next	1.3;

1.3
date	2010.07.22.19.34.11;	author gdt;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.07.00.59.27;	author wiz;	state dead;
branches;
next	1.1;

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

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


desc
@@


1.5
log
@py-crypto: removed
@
text
@$NetBSD: patch-ab,v 1.4 2010/12/05 17:13:09 gls Exp $

Something in the build fails to detect that we have wchar.h.  This
change make it build on NetBSD; a better fix is welcome.

--- src/libtom/tomcrypt_pk.h.orig	2010-08-27 04:41:55.000000000 +0000
+++ src/libtom/tomcrypt_pk.h
@@@@ -495,12 +495,7 @@@@ int der_length_printable_string(const un
 int der_printable_char_encode(int c);
 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)
 #include <wchar.h>
-#else
-typedef ulong32 wchar_t;
-#endif
 
 int der_encode_utf8_string(const wchar_t *in,  unsigned long inlen,
                            unsigned char *out, unsigned long *outlen);
@


1.4
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: patch-ab,v 1.3 2010/07/22 19:34:11 gdt Exp $
@


1.3
log
@Fix import; apparently importing a package that used to exist does not
go well.
@
text
@d1 1
a1 1
$NetBSD$
d6 1
a6 1
--- src/libtom/tomcrypt_pk.h.orig	2009-12-13 20:39:29.000000000 +0000
@


1.2
log
@Remove py-crypto, which has been obsoleted by py-amkCrypto.
@
text
@d1 1
a1 1
$NetBSD: patch-ab,v 1.1 1998/08/07 14:51:56 tsarna Exp $
d3 2
a4 1
Make this work with more recent (post Great Renaming) Pythons.
d6 5
a10 5
--- simple/ufcrypt.c.orig	Thu Aug  6 10:56:35 1998
+++ simple/ufcrypt.c	Thu Aug  6 10:56:53 1998
@@@@ -1,8 +1,9 @@@@
 /* cryptmodule.c - by Steve Majewski
  */
d12 6
a17 4
-#include "allobjects.h"
+#include "Python.h"
 #include "modsupport.h"
+#include "rename2.h"
d19 2
a20 2
 #include <sys/types.h>

@


1.1
log
@New package for the Python Cryptography Toolkit, version 1.0.0
@
text
@d1 1
a1 1
$NetBSD$
@


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
@d3 1
a3 2
Something in the build fails to detect that we have wchar.h.  This
change make it build on NetBSD; a better fix is welcome.
d5 5
a9 5
--- src/libtom/tomcrypt_pk.h.orig	2009-12-13 20:39:29.000000000 +0000
+++ src/libtom/tomcrypt_pk.h
@@@@ -495,12 +495,7 @@@@ int der_length_printable_string(const un
 int der_printable_char_encode(int c);
 int der_printable_value_decode(int v);
d11 4
a14 6
-/* UTF-8 */
-#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L || defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED)) && !defined(LTC_NO_WCHAR)
 #include <wchar.h>
-#else
-typedef ulong32 wchar_t;
-#endif
d16 2
a17 2
 int der_encode_utf8_string(const wchar_t *in,  unsigned long inlen,
                            unsigned char *out, unsigned long *outlen);
@


