From owner-svn-ports-head@freebsd.org Sat Jan 23 15:14:25 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE72AA8E5E8; Sat, 23 Jan 2016 15:14:25 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0A411D59; Sat, 23 Jan 2016 15:14:25 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0NFEOl4049622; Sat, 23 Jan 2016 15:14:24 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0NFEOGD049617; Sat, 23 Jan 2016 15:14:24 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201601231514.u0NFEOGD049617@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 23 Jan 2016 15:14:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407002 - in head/security: . p5-Bytes-Random-Secure X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 15:14:26 -0000 Author: sunpoet Date: Sat Jan 23 15:14:24 2016 New Revision: 407002 URL: https://svnweb.freebsd.org/changeset/ports/407002 Log: - Add p5-Bytes-Random-Secure 0.29 Bytes::Random::Secure provides two interfaces for obtaining crypto-quality random bytes. The simple interface is built around plain functions. For greater control over the Random Number Generator's seeding, there is an Object Oriented interface that provides much more flexibility. The "functions" interface provides functions that can be used any time you need a string of a specific number of random bytes. The random bytes are available as simple strings, or as hex-digits, Quoted Printable, or MIME Base64. There are equivalent methods available from the OO interface, plus a few others. This module can be a drop-in replacement for Bytes::Random, with the primary enhancement of using a cryptographic-quality random number generator to create the random data. The random_bytes function emulates the user interface of Bytes::Random's function by the same name. But with Bytes::Random::Secure the random number generator comes from Math::Random::ISAAC, and is suitable for cryptographic purposes. The harder problem to solve is how to seed the generator. This module uses Crypt::Random::Seed to generate the initial seeds for Math::Random::ISAAC. WWW: http://search.cpan.org/dist/Bytes-Random-Secure/ Added: head/security/p5-Bytes-Random-Secure/ head/security/p5-Bytes-Random-Secure/Makefile (contents, props changed) head/security/p5-Bytes-Random-Secure/distinfo (contents, props changed) head/security/p5-Bytes-Random-Secure/pkg-descr (contents, props changed) head/security/p5-Bytes-Random-Secure/pkg-plist (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Sat Jan 23 15:13:55 2016 (r407001) +++ head/security/Makefile Sat Jan 23 15:14:24 2016 (r407002) @@ -467,6 +467,7 @@ SUBDIR += p5-Authen-Ticket SUBDIR += p5-Authen-TypeKey SUBDIR += p5-Business-PayPal-EWP + SUBDIR += p5-Bytes-Random-Secure SUBDIR += p5-CACertOrg-CA SUBDIR += p5-CSP SUBDIR += p5-Cisco-Hash Added: head/security/p5-Bytes-Random-Secure/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Bytes-Random-Secure/Makefile Sat Jan 23 15:14:24 2016 (r407002) @@ -0,0 +1,24 @@ +# Created by: Sunpoet Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= Bytes-Random-Secure +PORTVERSION= 0.29 +CATEGORIES= security perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Generate cryptographically-secure random bytes + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-Crypt-Random-Seed>=0:${PORTSDIR}/security/p5-Crypt-Random-Seed \ + p5-Math-Random-ISAAC>=0:${PORTSDIR}/math/p5-Math-Random-ISAAC +RUN_DEPENDS:= ${BUILD_DEPENDS} + +NO_ARCH= yes +USE_PERL5= configure +USES= perl5 + +.include Added: head/security/p5-Bytes-Random-Secure/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Bytes-Random-Secure/distinfo Sat Jan 23 15:14:24 2016 (r407002) @@ -0,0 +1,2 @@ +SHA256 (Bytes-Random-Secure-0.29.tar.gz) = 53bbd339e6a11efca07c619a615c7c188a68bb2be849a1cb7efc3dd4d9ae85ae +SIZE (Bytes-Random-Secure-0.29.tar.gz) = 28007 Added: head/security/p5-Bytes-Random-Secure/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Bytes-Random-Secure/pkg-descr Sat Jan 23 15:14:24 2016 (r407002) @@ -0,0 +1,20 @@ +Bytes::Random::Secure provides two interfaces for obtaining crypto-quality +random bytes. The simple interface is built around plain functions. For greater +control over the Random Number Generator's seeding, there is an Object Oriented +interface that provides much more flexibility. + +The "functions" interface provides functions that can be used any time you need +a string of a specific number of random bytes. The random bytes are available as +simple strings, or as hex-digits, Quoted Printable, or MIME Base64. There are +equivalent methods available from the OO interface, plus a few others. + +This module can be a drop-in replacement for Bytes::Random, with the primary +enhancement of using a cryptographic-quality random number generator to create +the random data. The random_bytes function emulates the user interface of +Bytes::Random's function by the same name. But with Bytes::Random::Secure the +random number generator comes from Math::Random::ISAAC, and is suitable for +cryptographic purposes. The harder problem to solve is how to seed the +generator. This module uses Crypt::Random::Seed to generate the initial seeds +for Math::Random::ISAAC. + +WWW: http://search.cpan.org/dist/Bytes-Random-Secure/ Added: head/security/p5-Bytes-Random-Secure/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Bytes-Random-Secure/pkg-plist Sat Jan 23 15:14:24 2016 (r407002) @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Bytes/Random/Secure.pm +%%PERL5_MAN3%%/Bytes::Random::Secure.3.gz