From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfUQr-0001Ch-H4 for guix-patches@gnu.org; Wed, 09 Aug 2017 13:06:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfUQk-0006MF-O0 for guix-patches@gnu.org; Wed, 09 Aug 2017 13:06:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfUQk-0006M5-Kh for guix-patches@gnu.org; Wed, 09 Aug 2017 13:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dfUQk-0007c6-Dy for guix-patches@gnu.org; Wed, 09 Aug 2017 13:06:02 -0400 Subject: [bug#28028] [PATCH 9/9] gnu: Add perl-math-random-secure. Resent-Message-ID: From: Ricardo Wurmus Date: Wed, 9 Aug 2017 19:00:37 +0200 Message-ID: <20170809170037.14230-9-ricardo.wurmus@mdc-berlin.de> In-Reply-To: <20170809170037.14230-1-ricardo.wurmus@mdc-berlin.de> References: <20170809170037.14230-1-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28028@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/perl.scm (perl-math-random-secure): New variable. --- gnu/packages/perl.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index aca321c77..703390ea3 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -4154,6 +4154,45 @@ This package provides implements the same interface as @code{Math::Random::ISAAC}.") (license public-domain))) +(define-public perl-math-random-secure + (package + (name "perl-math-random-secure") + (version "0.080001") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/F/FR/FREW/" + "Math-Random-Secure-" version ".tar.gz")) + (sha256 + (base32 + "0dgbf4ncll4kmgkyb9fsaxn0vf2smc9dmwqzgh3259zc2zla995z")))) + (build-system perl-build-system) + (native-inputs + `(("perl-list-moreutils" ,perl-list-moreutils) + ("perl-test-leaktrace" ,perl-test-leaktrace) + ("perl-test-sharedfork" ,perl-test-sharedfork) + ("perl-test-warn" ,perl-test-warn))) + (inputs + `(("perl-crypt-random-source" ,perl-crypt-random-source) + ("perl-math-random-isaac" ,perl-math-random-isaac) + ("perl-math-random-isaac-xs" ,perl-math-random-isaac-xs) + ("perl-moo" ,perl-moo))) + (home-page "http://search.cpan.org/dist/Math-Random-Secure") + (synopsis "Cryptographically secure replacement for rand()") + (description "This module is intended to provide a +cryptographically-secure replacement for Perl's built-in @code{rand} function. +\"Crytographically secure\", in this case, means: + +@enumerate +@item No matter how many numbers you see generated by the random number +generator, you cannot guess the future numbers, and you cannot guess the seed. +@item There are so many possible seeds that it would take decades, centuries, +or millenia for an attacker to try them all. +@item The seed comes from a source that generates relatively strong random +data on your platform, so the seed itself will be as random as possible. +@end enumerate\n") + (license artistic2.0))) + (define-public perl-memoize-expirelru (package (name "perl-memoize-expirelru") -- 2.13.2