unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#28028] [PATCH 0/9] Perl crypto things
@ 2017-08-09 16:56 Ricardo Wurmus
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
  2017-08-09 20:44 ` [bug#28028] [PATCH 0/9] Perl crypto things Marius Bakke
  0 siblings, 2 replies; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 16:56 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

Hi Guix,

this is from my staging heap.

Ricardo Wurmus (9):
  gnu: Add perl-hash-fieldhash.
  gnu: Add perl-math-random-isaac-xs.
  gnu: Add perl-math-random-isaac.
  gnu: Add perl-type-tie.
  gnu: Add perl-regexp-util.
  gnu: Add perl-ref-util-xs.
  gnu: Add perl-type-tiny.
  gnu: Add perl-crypt-random-source.
  gnu: Add perl-math-random-secure.

 gnu/packages/perl.scm | 256 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 255 insertions(+), 1 deletion(-)

-- 
2.13.2

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash.
  2017-08-09 16:56 [bug#28028] [PATCH 0/9] Perl crypto things Ricardo Wurmus
@ 2017-08-09 17:00 ` Ricardo Wurmus
  2017-08-09 17:00   ` [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs Ricardo Wurmus
                     ` (8 more replies)
  2017-08-09 20:44 ` [bug#28028] [PATCH 0/9] Perl crypto things Marius Bakke
  1 sibling, 9 replies; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

* gnu/packages/perl.scm (perl-hash-fieldhash): New variable.
---
 gnu/packages/perl.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 6a59e6bf8..dcd9640d9 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -1,7 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
-;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
 ;;; Copyright © 2016 Mark H Weaver <mhw@netris.org>
@@ -3385,6 +3385,30 @@ objects, which execute a given code block when destroyed, and scoped guards,
 which are tied to the scope exit.")
     (license (package-license perl))))
 
+(define-public perl-hash-fieldhash
+  (package
+    (name "perl-hash-fieldhash")
+    (version "0.15")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/G/GF/GFUJI/"
+                           "Hash-FieldHash-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1wg8nzczfxif55j2nbymbhyd25pjy7dqs4bvd6jrcds3ll3mflaw"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-build" ,perl-module-build)
+       ("perl-test-leaktrace" ,perl-test-leaktrace)))
+    (home-page "http://search.cpan.org/dist/Hash-FieldHash")
+    (synopsis "Lightweight field hash for inside-out objects")
+    (description "@code{Hash::FieldHash} provides the field hash mechanism
+which supports the inside-out technique.  It is an alternative to
+@code{Hash::Util::FieldHash} with a simpler interface, higher performance, and
+relic support.")
+    (license (package-license perl))))
+
 (define-public perl-hash-merge
   (package
     (name "perl-hash-merge")
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
@ 2017-08-09 17:00   ` Ricardo Wurmus
  2017-08-12 11:22     ` Danny Milosavljevic
  2017-08-09 17:00   ` [bug#28028] [PATCH 3/9] gnu: Add perl-math-random-isaac Ricardo Wurmus
                     ` (7 subsequent siblings)
  8 siblings, 1 reply; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

* gnu/packages/perl.scm (perl-math-random-isaac-xs): New variable.
---
 gnu/packages/perl.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index dcd9640d9..b3fc75a70 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -4067,6 +4067,34 @@ implementation of these functions only serves as a fallback in case the C
 portions of this module couldn't be compiled on this machine.")
     (license (package-license perl))))
 
+(define-public perl-math-random-isaac-xs
+  (package
+    (name "perl-math-random-isaac-xs")
+    (version "1.004")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/J/JA/JAWNSY/"
+                           "Math-Random-ISAAC-XS-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0yxqqcqvj51fn7b7j5xqhz65v74arzgainn66c6k7inijbmr1xws"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-build" ,perl-module-build)
+       ("perl-test-nowarnings" ,perl-test-nowarnings)))
+    (home-page "http://search.cpan.org/dist/Math-Random-ISAAC-XS")
+    (synopsis "C implementation of the ISAAC PRNG algorithm")
+    (description "ISAAC (Indirection, Shift, Accumulate, Add, and Count) is a
+fast pseudo-random number generator.  It is suitable for applications where a
+significant amount of random data needs to be produced quickly, such as
+solving using the Monte Carlo method or for games.  The results are uniformly
+distributed, unbiased, and unpredictable unless you know the seed.
+
+This package provides implements the same interface as
+@code{Math::Random::ISAAC}.")
+    (license public-domain)))
+
 (define-public perl-memoize-expirelru
   (package
     (name "perl-memoize-expirelru")
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 3/9] gnu: Add perl-math-random-isaac.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
  2017-08-09 17:00   ` [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs Ricardo Wurmus
@ 2017-08-09 17:00   ` Ricardo Wurmus
  2017-08-12 11:23     ` Danny Milosavljevic
  2017-08-09 17:00   ` [bug#28028] [PATCH 4/9] gnu: Add perl-type-tie Ricardo Wurmus
                     ` (6 subsequent siblings)
  8 siblings, 1 reply; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

* gnu/packages/perl.scm (perl-math-random-isaac): New variable.
---
 gnu/packages/perl.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index b3fc75a70..f94ffc1a6 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -4067,6 +4067,35 @@ implementation of these functions only serves as a fallback in case the C
 portions of this module couldn't be compiled on this machine.")
     (license (package-license perl))))
 
+(define-public perl-math-random-isaac
+  (package
+    (name "perl-math-random-isaac")
+    (version "1.004")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/J/JA/JAWNSY/"
+                           "Math-Random-ISAAC-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0z1b3xbb3xz71h25fg6jgsccra7migq7s0vawx2rfzi0pwpz0wr7"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-nowarnings" ,perl-test-nowarnings)))
+    (propagated-inputs
+     `(("perl-math-random-isaac-xs" ,perl-math-random-isaac-xs)))
+    (home-page "http://search.cpan.org/dist/Math-Random-ISAAC")
+    (synopsis "Perl interface to the ISAAC PRNG algorithm")
+    (description "ISAAC (Indirection, Shift, Accumulate, Add, and Count) is a
+fast pseudo-random number generator.  It is suitable for applications where a
+significant amount of random data needs to be produced quickly, such as
+solving using the Monte Carlo method or for games.  The results are uniformly
+distributed, unbiased, and unpredictable unless you know the seed.
+
+This package provides a Perl interface to the ISAAC pseudo random
+number generator.")
+    (license public-domain)))
+
 (define-public perl-math-random-isaac-xs
   (package
     (name "perl-math-random-isaac-xs")
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 4/9] gnu: Add perl-type-tie.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
  2017-08-09 17:00   ` [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs Ricardo Wurmus
  2017-08-09 17:00   ` [bug#28028] [PATCH 3/9] gnu: Add perl-math-random-isaac Ricardo Wurmus
@ 2017-08-09 17:00   ` Ricardo Wurmus
  2017-08-12 11:23     ` Danny Milosavljevic
  2017-08-09 17:00   ` [bug#28028] [PATCH 5/9] gnu: Add perl-regexp-util Ricardo Wurmus
                     ` (5 subsequent siblings)
  8 siblings, 1 reply; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

* gnu/packages/perl.scm (perl-type-tie): New variable.
---
 gnu/packages/perl.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index f94ffc1a6..d9fc3937d 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -7783,6 +7783,34 @@ that are designed to minimize common mistakes with eval blocks, and nothing
 else.")
     (license x11)))
 
+(define-public perl-type-tie
+  (package
+    (name "perl-type-tie")
+    (version "0.009")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/T/TO/TOBYINK/"
+                           "Type-Tie-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1wv32kd7gx4kfyvzs13y029f49qbbji991wawvarac7rlz09wpan"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-fatal" ,perl-test-fatal)
+       ("perl-test-requires" ,perl-test-requires)))
+    (propagated-inputs
+     `(("perl-exporter-tiny" ,perl-exporter-tiny)
+       ("perl-hash-fieldhash" ,perl-hash-fieldhash)))
+    (home-page "http://search.cpan.org/dist/Type-Tie")
+    (synopsis "Tie a variable to a type constraint")
+    (description "This module exports a single function: @code{ttie}.  It ties
+a variable to a type constraint, ensuring that whatever values stored in the
+variable will conform to the type constraint.  If the type constraint has
+coercions, these will be used if necessary to ensure values assigned to the
+variable conform.")
+    (license (package-license perl))))
+
 (define-public perl-types-serialiser
   (package
     (name "perl-types-serialiser")
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 5/9] gnu: Add perl-regexp-util.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
                     ` (2 preceding siblings ...)
  2017-08-09 17:00   ` [bug#28028] [PATCH 4/9] gnu: Add perl-type-tie Ricardo Wurmus
@ 2017-08-09 17:00   ` Ricardo Wurmus
  2017-08-12 11:24     ` Danny Milosavljevic
  2017-08-09 17:00   ` [bug#28028] [PATCH 6/9] gnu: Add perl-ref-util-xs Ricardo Wurmus
                     ` (4 subsequent siblings)
  8 siblings, 1 reply; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

* gnu/packages/perl.scm (perl-regexp-util): New variable.
---
 gnu/packages/perl.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index d9fc3937d..f77cf0703 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -5758,6 +5758,27 @@ codes.")
     ;; Quad-licensed: Perl Artistic, Perl Artistic 2.0, X11, and BSD.
     (license (list (package-license perl) x11 bsd-3))))
 
+(define-public perl-regexp-util
+  (package
+    (name "perl-regexp-util")
+    (version "0.003")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/T/TO/TOBYINK/"
+                           "Regexp-Util-" version ".tar.gz"))
+       (sha256
+        (base32
+         "01n1cggiflsnp9f6adkcxzkc0qpgssz60cwnyyd8mzavh2ximr5a"))))
+    (build-system perl-build-system)
+    (home-page "http://search.cpan.org/dist/Regexp-Util")
+    (synopsis "Selection of general-utility regexp subroutines")
+    (description "This package provides a selection of regular expression
+subroutines including @code{is_regexp}, @code{regexp_seen_evals},
+@code{regexp_is_foreign}, @code{regexp_is_anchored}, @code{serialize_regexp},
+and @code{deserialize_regexp}.")
+    (license (package-license perl))))
+
 (define-public perl-role-tiny
   (package
     (name "perl-role-tiny")
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 6/9] gnu: Add perl-ref-util-xs.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
                     ` (3 preceding siblings ...)
  2017-08-09 17:00   ` [bug#28028] [PATCH 5/9] gnu: Add perl-regexp-util Ricardo Wurmus
@ 2017-08-09 17:00   ` Ricardo Wurmus
  2017-08-12 11:26     ` Danny Milosavljevic
  2017-08-09 17:00   ` [bug#28028] [PATCH 7/9] gnu: Add perl-type-tiny Ricardo Wurmus
                     ` (3 subsequent siblings)
  8 siblings, 1 reply; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

* gnu/packages/perl.scm (perl-ref-util-xs): New variable.
---
 gnu/packages/perl.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index f77cf0703..123d2a3c7 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -5733,6 +5733,27 @@ can also be useful as a development and debugging tool for catching updates to
 variables that should not be changed.")
     (license (package-license perl))))
 
+(define-public perl-ref-util-xs
+  (package
+    (name "perl-ref-util-xs")
+    (version "0.116")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/X/XS/XSAWYERX/"
+                           "Ref-Util-XS-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0l5dzbd71iclv8fdjk7685rq6pbfiiydh0n70br6g9l9iy2smr6f"))))
+    (build-system perl-build-system)
+    (home-page "http://search.cpan.org/dist/Ref-Util-XS")
+    (synopsis "XS implementation for Ref::Util")
+    (description "@code{Ref::Util::XS} is the XS implementation of
+@code{Ref::Util}, which provides several functions to help identify references
+in a more convenient way than the usual approach of examining the return value
+of @code{ref}.")
+    (license x11)))
+
 (define-public perl-regexp-common
   (package
     (name "perl-regexp-common")
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 7/9] gnu: Add perl-type-tiny.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
                     ` (4 preceding siblings ...)
  2017-08-09 17:00   ` [bug#28028] [PATCH 6/9] gnu: Add perl-ref-util-xs Ricardo Wurmus
@ 2017-08-09 17:00   ` Ricardo Wurmus
  2017-08-12 11:27     ` Danny Milosavljevic
  2017-08-09 17:00   ` [bug#28028] [PATCH 8/9] gnu: Add perl-crypt-random-source Ricardo Wurmus
                     ` (2 subsequent siblings)
  8 siblings, 1 reply; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

* gnu/packages/perl.scm (perl-type-tiny): New variable.
---
 gnu/packages/perl.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 123d2a3c7..0dabff99a 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -7853,6 +7853,40 @@ coercions, these will be used if necessary to ensure values assigned to the
 variable conform.")
     (license (package-license perl))))
 
+(define-public perl-type-tiny
+  (package
+    (name "perl-type-tiny")
+    (version "1.002001")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/T/TO/TOBYINK/"
+                           "Type-Tiny-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1p8krim8kvw123nady96fagi8sk2pj1z8jkr4r8n45ihyamfxjck"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-warnings" ,perl-test-warnings)))
+    (propagated-inputs
+     `(("perl-devel-lexalias" ,perl-devel-lexalias)
+       ("perl-devel-stacktrace" ,perl-devel-stacktrace)
+       ("perl-exporter-tiny" ,perl-exporter-tiny)
+       ("perl-moo" ,perl-moo)
+       ("perl-moose" ,perl-moose)
+       ("perl-mouse" ,perl-mouse)
+       ("perl-ref-util-xs" ,perl-ref-util-xs)
+       ("perl-regexp-util" ,perl-regexp-util)
+       ("perl-type-tie" ,perl-type-tie)))
+    (home-page "http://search.cpan.org/dist/Type-Tiny")
+    (synopsis "Tiny, yet Moo(se)-compatible type constraint")
+    (description "@code{Type::Tiny} is a small class for writing type
+constraints, inspired by Moose's type constraint API.  It has only one
+non-core dependency (and even that is simply a module that was previously
+distributed as part of @code{Type::Tiny} but has since been spun off), and can
+be used with Moose, Mouse and Moo (or none of the above).")
+    (license (package-license perl))))
+
 (define-public perl-types-serialiser
   (package
     (name "perl-types-serialiser")
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 8/9] gnu: Add perl-crypt-random-source.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
                     ` (5 preceding siblings ...)
  2017-08-09 17:00   ` [bug#28028] [PATCH 7/9] gnu: Add perl-type-tiny Ricardo Wurmus
@ 2017-08-09 17:00   ` Ricardo Wurmus
  2017-08-12 11:28     ` Danny Milosavljevic
  2017-08-09 17:00   ` [bug#28028] [PATCH 9/9] gnu: Add perl-math-random-secure Ricardo Wurmus
  2017-08-12 11:21   ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Danny Milosavljevic
  8 siblings, 1 reply; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +Cc: Ricardo Wurmus

* gnu/packages/perl.scm (perl-crypt-random-source): New variable.
---
 gnu/packages/perl.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 0dabff99a..aca321c77 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -1359,6 +1359,36 @@ CPAN::Meta object are present.")
 versa.")
     (license (package-license perl))))
 
+(define-public perl-crypt-random-source
+  (package
+    (name "perl-crypt-random-source")
+    (version "0.12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
+                           "Crypt-Random-Source-" version ".tar.gz"))
+       (sha256
+        (base32
+         "00mw5m52sbz9nqp3f6axyrgcrihqxn7k8gv0vi1kvm1j1nc9g29h"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-build-tiny" ,perl-module-build-tiny)
+       ("perl-test-exception" ,perl-test-exception)))
+    (propagated-inputs
+     `(("perl-capture-tiny" ,perl-capture-tiny)
+       ("perl-module-find" ,perl-module-find)
+       ("perl-module-runtime" ,perl-module-runtime)
+       ("perl-moo" ,perl-moo)
+       ("perl-namespace-clean" ,perl-namespace-clean)
+       ("perl-sub-exporter" ,perl-sub-exporter)
+       ("perl-type-tiny" ,perl-type-tiny)))
+    (home-page "http://search.cpan.org/dist/Crypt-Random-Source")
+    (synopsis "Get weak or strong random data from pluggable sources")
+    (description "This module provides implementations for a number of byte
+oriented sources of random data.")
+    (license (package-license perl))))
+
 (define-public perl-crypt-randpasswd
   (package
     (name "perl-crypt-randpasswd")
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 9/9] gnu: Add perl-math-random-secure.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
                     ` (6 preceding siblings ...)
  2017-08-09 17:00   ` [bug#28028] [PATCH 8/9] gnu: Add perl-crypt-random-source Ricardo Wurmus
@ 2017-08-09 17:00   ` Ricardo Wurmus
  2017-08-12 11:30     ` Danny Milosavljevic
  2017-08-14 10:00     ` bug#28028: " Ricardo Wurmus
  2017-08-12 11:21   ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Danny Milosavljevic
  8 siblings, 2 replies; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-09 17:00 UTC (permalink / raw)
  To: 28028; +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

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 0/9] Perl crypto things
  2017-08-09 16:56 [bug#28028] [PATCH 0/9] Perl crypto things Ricardo Wurmus
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
@ 2017-08-09 20:44 ` Marius Bakke
  2017-08-10 11:40   ` Ricardo Wurmus
  1 sibling, 1 reply; 23+ messages in thread
From: Marius Bakke @ 2017-08-09 20:44 UTC (permalink / raw)
  To: Ricardo Wurmus, 28028

[-- Attachment #1: Type: text/plain, Size: 713 bytes --]

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:

> Hi Guix,
>
> this is from my staging heap.
>
> Ricardo Wurmus (9):
>   gnu: Add perl-hash-fieldhash.
>   gnu: Add perl-math-random-isaac-xs.
>   gnu: Add perl-math-random-isaac.
>   gnu: Add perl-type-tie.
>   gnu: Add perl-regexp-util.
>   gnu: Add perl-ref-util-xs.
>   gnu: Add perl-type-tiny.
>   gnu: Add perl-crypt-random-source.
>   gnu: Add perl-math-random-secure.
>
>  gnu/packages/perl.scm | 256 +++++++++++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 255 insertions(+), 1 deletion(-)

The patches LGTM, but I wonder if we should split some of these out to
e.g. math.scm to prevent perl.scm from getting the python syndrome. WDYT?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 0/9] Perl crypto things
  2017-08-09 20:44 ` [bug#28028] [PATCH 0/9] Perl crypto things Marius Bakke
@ 2017-08-10 11:40   ` Ricardo Wurmus
  0 siblings, 0 replies; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-10 11:40 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 28028


Marius Bakke <mbakke@fastmail.com> writes:

> Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:
>
>> Hi Guix,
>>
>> this is from my staging heap.
>>
>> Ricardo Wurmus (9):
>>   gnu: Add perl-hash-fieldhash.
>>   gnu: Add perl-math-random-isaac-xs.
>>   gnu: Add perl-math-random-isaac.
>>   gnu: Add perl-type-tie.
>>   gnu: Add perl-regexp-util.
>>   gnu: Add perl-ref-util-xs.
>>   gnu: Add perl-type-tiny.
>>   gnu: Add perl-crypt-random-source.
>>   gnu: Add perl-math-random-secure.
>>
>>  gnu/packages/perl.scm | 256 +++++++++++++++++++++++++++++++++++++++++++++++++-
>>  1 file changed, 255 insertions(+), 1 deletion(-)
>
> The patches LGTM, but I wonder if we should split some of these out to
> e.g. math.scm to prevent perl.scm from getting the python syndrome. WDYT?

In general I agree, but I don’t think these belong to math.scm, despite
their names.  These are really crypto things more than they are general
purpose math things.

I’ll move the following packages to crypto.scm:

   perl-math-random-isaac-xs
   perl-math-random-isaac
   perl-crypt-random-source
   perl-math-random-secure

Maybe it’s worth going through perl.scm before the next release and
redistribute some of the packages to other modules.

-- Ricardo

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash.
  2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
                     ` (7 preceding siblings ...)
  2017-08-09 17:00   ` [bug#28028] [PATCH 9/9] gnu: Add perl-math-random-secure Ricardo Wurmus
@ 2017-08-12 11:21   ` Danny Milosavljevic
  8 siblings, 0 replies; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:21 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

LGTM!

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs.
  2017-08-09 17:00   ` [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs Ricardo Wurmus
@ 2017-08-12 11:22     ` Danny Milosavljevic
  2017-08-12 13:07       ` Ricardo Wurmus
  0 siblings, 1 reply; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:22 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

> +    (description "ISAAC (Indirection, Shift, Accumulate, Add, and Count) is a
> +fast pseudo-random number generator.  It is suitable for applications where a
> +significant amount of random data needs to be produced quickly, such as
> +solving using the Monte Carlo method or for games.  The results are uniformly
> +distributed, unbiased, and unpredictable unless you know the seed.
> +
> +This package provides implements the same interface as
                ^^^^^^^^^^^^^^^^^^^ Dupe

Otherwise LGTM!

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 3/9] gnu: Add perl-math-random-isaac.
  2017-08-09 17:00   ` [bug#28028] [PATCH 3/9] gnu: Add perl-math-random-isaac Ricardo Wurmus
@ 2017-08-12 11:23     ` Danny Milosavljevic
  0 siblings, 0 replies; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:23 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

LGTM!

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 4/9] gnu: Add perl-type-tie.
  2017-08-09 17:00   ` [bug#28028] [PATCH 4/9] gnu: Add perl-type-tie Ricardo Wurmus
@ 2017-08-12 11:23     ` Danny Milosavljevic
  0 siblings, 0 replies; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:23 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

LGTM!

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 5/9] gnu: Add perl-regexp-util.
  2017-08-09 17:00   ` [bug#28028] [PATCH 5/9] gnu: Add perl-regexp-util Ricardo Wurmus
@ 2017-08-12 11:24     ` Danny Milosavljevic
  0 siblings, 0 replies; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:24 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

LGTM!

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 6/9] gnu: Add perl-ref-util-xs.
  2017-08-09 17:00   ` [bug#28028] [PATCH 6/9] gnu: Add perl-ref-util-xs Ricardo Wurmus
@ 2017-08-12 11:26     ` Danny Milosavljevic
  0 siblings, 0 replies; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:26 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

LGTM!

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 7/9] gnu: Add perl-type-tiny.
  2017-08-09 17:00   ` [bug#28028] [PATCH 7/9] gnu: Add perl-type-tiny Ricardo Wurmus
@ 2017-08-12 11:27     ` Danny Milosavljevic
  0 siblings, 0 replies; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:27 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

LGTM!

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 8/9] gnu: Add perl-crypt-random-source.
  2017-08-09 17:00   ` [bug#28028] [PATCH 8/9] gnu: Add perl-crypt-random-source Ricardo Wurmus
@ 2017-08-12 11:28     ` Danny Milosavljevic
  0 siblings, 0 replies; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:28 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

> +    (description "This module provides implementations for a number of byte
> +oriented sources of random data.")

Rather "byte-oriented" with dash?

LGTM either way.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 9/9] gnu: Add perl-math-random-secure.
  2017-08-09 17:00   ` [bug#28028] [PATCH 9/9] gnu: Add perl-math-random-secure Ricardo Wurmus
@ 2017-08-12 11:30     ` Danny Milosavljevic
  2017-08-14 10:00     ` bug#28028: " Ricardo Wurmus
  1 sibling, 0 replies; 23+ messages in thread
From: Danny Milosavljevic @ 2017-08-12 11:30 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28028

LGTM!

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs.
  2017-08-12 11:22     ` Danny Milosavljevic
@ 2017-08-12 13:07       ` Ricardo Wurmus
  0 siblings, 0 replies; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-12 13:07 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 28028


Danny Milosavljevic <dannym@scratchpost.org> writes:

>> +    (description "ISAAC (Indirection, Shift, Accumulate, Add, and Count) is a
>> +fast pseudo-random number generator.  It is suitable for applications where a
>> +significant amount of random data needs to be produced quickly, such as
>> +solving using the Monte Carlo method or for games.  The results are uniformly
>> +distributed, unbiased, and unpredictable unless you know the seed.
>> +
>> +This package provides implements the same interface as
>                 ^^^^^^^^^^^^^^^^^^^ Dupe

Ah, good catch!  Thanks.

-- Ricardo

^ permalink raw reply	[flat|nested] 23+ messages in thread

* bug#28028: [PATCH 9/9] gnu: Add perl-math-random-secure.
  2017-08-09 17:00   ` [bug#28028] [PATCH 9/9] gnu: Add perl-math-random-secure Ricardo Wurmus
  2017-08-12 11:30     ` Danny Milosavljevic
@ 2017-08-14 10:00     ` Ricardo Wurmus
  1 sibling, 0 replies; 23+ messages in thread
From: Ricardo Wurmus @ 2017-08-14 10:00 UTC (permalink / raw)
  To: 28028-done


Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:

> * gnu/packages/perl.scm (perl-math-random-secure): New variable.
[…]

I’ve pushed all of these to master (233f4f43b) with minor changes,
e.g. fixes to the descriptions and putting some of them in “(gnu
packages crypto)”.

Thank you, Danny, for the review!

-- Ricardo

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2017-08-14 10:01 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-09 16:56 [bug#28028] [PATCH 0/9] Perl crypto things Ricardo Wurmus
2017-08-09 17:00 ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Ricardo Wurmus
2017-08-09 17:00   ` [bug#28028] [PATCH 2/9] gnu: Add perl-math-random-isaac-xs Ricardo Wurmus
2017-08-12 11:22     ` Danny Milosavljevic
2017-08-12 13:07       ` Ricardo Wurmus
2017-08-09 17:00   ` [bug#28028] [PATCH 3/9] gnu: Add perl-math-random-isaac Ricardo Wurmus
2017-08-12 11:23     ` Danny Milosavljevic
2017-08-09 17:00   ` [bug#28028] [PATCH 4/9] gnu: Add perl-type-tie Ricardo Wurmus
2017-08-12 11:23     ` Danny Milosavljevic
2017-08-09 17:00   ` [bug#28028] [PATCH 5/9] gnu: Add perl-regexp-util Ricardo Wurmus
2017-08-12 11:24     ` Danny Milosavljevic
2017-08-09 17:00   ` [bug#28028] [PATCH 6/9] gnu: Add perl-ref-util-xs Ricardo Wurmus
2017-08-12 11:26     ` Danny Milosavljevic
2017-08-09 17:00   ` [bug#28028] [PATCH 7/9] gnu: Add perl-type-tiny Ricardo Wurmus
2017-08-12 11:27     ` Danny Milosavljevic
2017-08-09 17:00   ` [bug#28028] [PATCH 8/9] gnu: Add perl-crypt-random-source Ricardo Wurmus
2017-08-12 11:28     ` Danny Milosavljevic
2017-08-09 17:00   ` [bug#28028] [PATCH 9/9] gnu: Add perl-math-random-secure Ricardo Wurmus
2017-08-12 11:30     ` Danny Milosavljevic
2017-08-14 10:00     ` bug#28028: " Ricardo Wurmus
2017-08-12 11:21   ` [bug#28028] [PATCH 1/9] gnu: Add perl-hash-fieldhash Danny Milosavljevic
2017-08-09 20:44 ` [bug#28028] [PATCH 0/9] Perl crypto things Marius Bakke
2017-08-10 11:40   ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).