Initial import of

- Crypt-DH-0.03, Diffie-Hellman implementation
- Crypt-DSA-0.12, DSA implementation
- Crypt-Primes-0.50, prime number generator
- Crypt-RSA-1.55, RSA implementation
- Crypt-Random-1.23, cryptographically secure random number generator
all written in pure perl
This commit is contained in:
sturm 2005-02-23 20:08:48 +00:00
parent 6aba07414b
commit 6cf0a1a7e7
20 changed files with 289 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
COMMENT= "Diffie-Hellman key exchange system"
DISTNAME= Crypt-DH-0.03
PKGNAME= p5-${DISTNAME}
CATEGORIES= security perl5
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# GPL/Artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Crypt/}
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ::security/p5-Crypt-Random
CONFIGURE_STYLE=perl
PKG_ARCH= *
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Crypt-DH-0.03.tar.gz) = e0af4baf9d5c9089ca8f1ad316701a82
RMD160 (Crypt-DH-0.03.tar.gz) = 142d3075c6da5d90f549fc2a754afc774cd9451a
SHA1 (Crypt-DH-0.03.tar.gz) = 5ca0c940cbcd08feb6c14c60885c6335ffaba0e7
SIZE (Crypt-DH-0.03.tar.gz) = 3479

View File

@ -0,0 +1,6 @@
Crypt::DH is a Perl implementation of the Diffie-Hellman key
exchange system. Diffie-Hellman is an algorithm by which two
parties can agree on a shared secret key, known only to them.
The secret is negotiated over an insecure network without the
two parties ever passing the actual shared secret, or their
private keys, between them.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
${P5SITE}/Crypt/DH.pm
@man man/man3p/Crypt::DH.3p

View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
COMMENT= "DSA Signatures and Key Generation"
DISTNAME= Crypt-DSA-0.12
PKGNAME= p5-${DISTNAME}
CATEGORIES= security perl5
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# GPL/Artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Crypt/}
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ::converters/p5-Convert-PEM \
::devel/p5-Data-Buffer \
::security/p5-Crypt-Random \
::security/p5-Digest-SHA1
CONFIGURE_STYLE=perl
PKG_ARCH= *
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Crypt-DSA-0.12.tar.gz) = 7324f8d65f041b153b6b4beeaeb9a953
RMD160 (Crypt-DSA-0.12.tar.gz) = 1f0a427a0ef21e0822cc2c99fb18a0b02b7ac115
SHA1 (Crypt-DSA-0.12.tar.gz) = 1a90589b34102f2a000f4ae91c183ebc542fb096
SIZE (Crypt-DSA-0.12.tar.gz) = 11336

View File

@ -0,0 +1,7 @@
Crypt::DSA is an implementation of the DSA (Digital Signature
Algorithm) signature verification system. The implementation
itself is pure Perl, although the heavy-duty mathematics underneath
are provided by the Math::Pari library.
This package provides DSA signing, signature verification, and key
generation.

View File

@ -0,0 +1,17 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
${P5SITE}/Crypt/DSA/
${P5SITE}/Crypt/DSA.pm
${P5SITE}/Crypt/DSA/Key/
${P5SITE}/Crypt/DSA/Key.pm
${P5SITE}/Crypt/DSA/Key/PEM.pm
${P5SITE}/Crypt/DSA/Key/SSH2.pm
${P5SITE}/Crypt/DSA/KeyChain.pm
${P5SITE}/Crypt/DSA/Signature.pm
${P5SITE}/Crypt/DSA/Util.pm
@man man/man3p/Crypt::DSA.3p
@man man/man3p/Crypt::DSA::Key.3p
@man man/man3p/Crypt::DSA::Key::PEM.3p
@man man/man3p/Crypt::DSA::Key::SSH2.3p
@man man/man3p/Crypt::DSA::KeyChain.3p
@man man/man3p/Crypt::DSA::Signature.3p
@man man/man3p/Crypt::DSA::Util.3p

View File

@ -0,0 +1,26 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
COMMENT= "provable prime number generator"
DISTNAME= Crypt-Primes-0.50
PKGNAME= p5-${DISTNAME}
CATEGORIES= security perl5
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# GPL/Artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Crypt/}
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ::security/p5-Crypt-Random
CONFIGURE_STYLE=perl
PKG_ARCH= *
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Crypt-Primes-0.50.tar.gz) = 041947b9645142615d687b89cf2e1a7b
RMD160 (Crypt-Primes-0.50.tar.gz) = c8d2aa1ce56c0e6f4f7228bcb0917edd0a964a10
SHA1 (Crypt-Primes-0.50.tar.gz) = 1b61c6693b7d703514082ddb5821cdfd45274e81
SIZE (Crypt-Primes-0.50.tar.gz) = 136299

View File

@ -0,0 +1,11 @@
This module implements Ueli Maurer's algorithm for generating large
provable primes and secure parameters for public-key cryptosystems. The
generated primes are almost uniformly distributed over the set of primes of
the specified bitsize and expected time for generation is less than the time
required for generating a pseudo-prime of the same size with Miller-Rabin
tests.
Crypt::Primes is a pure perl implementation. It uses Math::Pari for
multiple precision integer arithmetic and number theoretic functions.
Random numbers are gathered with Crypt::Random, a perl interface to
/dev/arandom device found on most modern Unix operating systems.

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
bin/largeprimes
${P5SITE}/Crypt/Primes.pm
@man man/man1/largeprimes.1
@man man/man3p/Crypt::Primes.3p

View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
COMMENT= "RSA public-key cryptosystem"
DISTNAME= Crypt-RSA-1.55
PKGNAME= p5-${DISTNAME}
CATEGORIES= security perl5
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# GPL/Artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Crypt/}
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ::converters/p5-Convert-ASCII-Armour \
::devel/p5-Data-Buffer \
::security/p5-Crypt-CBC \
::security/p5-Crypt-Primes \
::security/p5-Digest-MD2 \
::security/p5-Digest-SHA1 \
::security/p5-Tie-EncryptedHash \
::textproc/p5-Sort-Versions
CONFIGURE_STYLE=perl
PKG_ARCH= *
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Crypt-RSA-1.55.tar.gz) = d830a4f2704a4724e14125e547ebd42a
RMD160 (Crypt-RSA-1.55.tar.gz) = 2da62dfe6e643618c62e546fd4ee0e542be1eddd
SHA1 (Crypt-RSA-1.55.tar.gz) = 569c14732ff9c794226648d3b8ac365fe6882e19
SIZE (Crypt-RSA-1.55.tar.gz) = 33735

View File

@ -0,0 +1,10 @@
Crypt::RSA is a pure-perl, cleanroom implementation of the RSA public-key
cryptosystem. It uses Math::Pari, a perl interface to the blazingly
fast PARI library, for big integer arithmetic and number theoretic
computations.
Crypt::RSA provides arbitrary size key-pair generation, plaintext-aware
encryption (OAEP) and digital signatures with appendix (PSS). For
compatibility with SSLv3, RSAREF2, PGP and other applications that follow
the PKCS #1 v1.5 standard, it also provides PKCS #1 v1.5 encryption and
signatures.

View File

@ -0,0 +1,33 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
${P5SITE}/Crypt/RSA/
${P5SITE}/Crypt/RSA.pm
${P5SITE}/Crypt/RSA/DataFormat.pm
${P5SITE}/Crypt/RSA/Debug.pm
${P5SITE}/Crypt/RSA/ES/
${P5SITE}/Crypt/RSA/ES/OAEP.pm
${P5SITE}/Crypt/RSA/ES/PKCS1v15.pm
${P5SITE}/Crypt/RSA/Errorhandler.pm
${P5SITE}/Crypt/RSA/Key/
${P5SITE}/Crypt/RSA/Key.pm
${P5SITE}/Crypt/RSA/Key/Private/
${P5SITE}/Crypt/RSA/Key/Private.pm
${P5SITE}/Crypt/RSA/Key/Private/SSH.pm
${P5SITE}/Crypt/RSA/Key/Public/
${P5SITE}/Crypt/RSA/Key/Public.pm
${P5SITE}/Crypt/RSA/Key/Public/SSH.pm
${P5SITE}/Crypt/RSA/Primitives.pm
${P5SITE}/Crypt/RSA/SS/
${P5SITE}/Crypt/RSA/SS/PKCS1v15.pm
${P5SITE}/Crypt/RSA/SS/PSS.pm
@man man/man3p/Crypt::RSA.3p
@man man/man3p/Crypt::RSA::DataFormat.3p
@man man/man3p/Crypt::RSA::Debug.3p
@man man/man3p/Crypt::RSA::ES::OAEP.3p
@man man/man3p/Crypt::RSA::ES::PKCS1v15.3p
@man man/man3p/Crypt::RSA::Errorhandler.3p
@man man/man3p/Crypt::RSA::Key.3p
@man man/man3p/Crypt::RSA::Key::Private.3p
@man man/man3p/Crypt::RSA::Key::Public.3p
@man man/man3p/Crypt::RSA::Primitives.3p
@man man/man3p/Crypt::RSA::SS::PKCS1v15.3p
@man man/man3p/Crypt::RSA::SS::PSS.3p

View File

@ -0,0 +1,35 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
COMMENT= "cryptographically secure random number generator"
DISTNAME= Crypt-Random-1.23
PKGNAME= p5-${DISTNAME}
CATEGORIES= security perl5
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# GPL/Artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Crypt/}
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ::devel/p5-Class-Loader \
::math/p5-Math-Pari
CONFIGURE_STYLE=perl
NO_REGRESS= "/dev/srandom tests might take forever"
PKG_ARCH= *
post-configure:
@perl -pi -e "s,/dev/urandom,/dev/arandom,g;" \
-e "s,/dev/random,/dev/srandom,g;" \
${WRKSRC}/lib/Crypt/Random.pm \
${WRKSRC}/lib/Crypt/Random/Provider/devrandom.pm \
${WRKSRC}/lib/Crypt/Random/Provider/devurandom.pm
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Crypt-Random-1.23.tar.gz) = 29d342b8cbe27674c235d4d55eef9d2d
RMD160 (Crypt-Random-1.23.tar.gz) = 24ac53b385082080433d816857ecbdc4474c6816
SHA1 (Crypt-Random-1.23.tar.gz) = 4cb36bdbb7450841a29578006f3ab8ccd6689ce0
SIZE (Crypt-Random-1.23.tar.gz) = 8552

View File

@ -0,0 +1,15 @@
Crypt::Random is an interface module to the /dev/srandom device found on most
modern Unix systems. The /dev/srandom driver gathers environmental noise from
various non-deterministic sources including inter-keyboard timings and
inter-interrupt timings that occur within the operating system environment.
The /dev/srandom driver maintains an estimate of true randomness in the pool and
decreases it every time random strings are requested for use. When the estimate
goes down to zero, the routine blocks and waits for the occurrence of
non-deterministic events to refresh the pool.
The /dev/srandom kernel module also provides another interface, /dev/arandom,
that does not wait for the entropy-pool to recharge and returns as many bytes
as requested. /dev/arandom is considerably faster at generation compared to
/dev/srandom, which should be used only when very high quality randomness is
desired.

View File

@ -0,0 +1,13 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/23 20:08:48 sturm Exp $
bin/makerandom
${P5SITE}/Crypt/
${P5SITE}/Crypt/Random/
${P5SITE}/Crypt/Random.pm
${P5SITE}/Crypt/Random/Generator.pm
${P5SITE}/Crypt/Random/Provider/
${P5SITE}/Crypt/Random/Provider/File.pm
${P5SITE}/Crypt/Random/Provider/devrandom.pm
${P5SITE}/Crypt/Random/Provider/devurandom.pm
${P5SITE}/Crypt/Random/Provider/egd.pm
${P5SITE}/Crypt/Random/Provider/rand.pm
@man man/man3p/Crypt::Random.3p