diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2017-08-14 11:50:42 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2017-08-14 11:50:42 +0200 |
commit | 233f4f43bfe851d9b7a3dee7e881dcd017a2c1a3 (patch) | |
tree | 6b0cec0d249e9cf17061dfb51e9defec664e8330 | |
parent | 2023b79f59b1f0624bf6825669b342dc8cff696e (diff) | |
download | patches-233f4f43bfe851d9b7a3dee7e881dcd017a2c1a3.tar patches-233f4f43bfe851d9b7a3dee7e881dcd017a2c1a3.tar.gz |
gnu: Add perl-math-random-secure.
* gnu/packages/crypto.scm (perl-math-random-secure): New variable.
-rw-r--r-- | gnu/packages/crypto.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 3ddeefed84..62fe5fe081 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -524,3 +524,42 @@ generator.") (description "This module provides implementations for a number of byte-oriented sources of random data.") (license (package-license perl)))) + +(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 license:artistic2.0))) |