[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/38: gnu: Add ghc-cprng-aes.
From: |
Ludovic Courtès |
Subject: |
14/38: gnu: Add ghc-cprng-aes. |
Date: |
Sat, 31 Mar 2018 13:53:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 7565a308935c1194a51124ee42716767b479948f
Author: rsiddharth <address@hidden>
Date: Wed Mar 21 03:44:51 2018 +0000
gnu: Add ghc-cprng-aes.
* gnu/packages/haskell-crypto.scm (ghc-cprng-aes): New variable.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/haskell-crypto.scm | 46 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/haskell-crypto.scm b/gnu/packages/haskell-crypto.scm
index c501f36..b0be30c 100644
--- a/gnu/packages/haskell-crypto.scm
+++ b/gnu/packages/haskell-crypto.scm
@@ -614,3 +614,49 @@ AES-NI available, or you'll need to use a different
implementation.")
(description "Simple cryptographic random related types: a safe
abstraction for CPRNGs.")
(license license:bsd-3)))
+
+(define-public ghc-cprng-aes
+ (package
+ (name "ghc-cprng-aes")
+ (version "0.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://hackage.haskell.org/package/"
+ "cprng-aes-" version "/"
+ "cprng-aes-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1wr15kbmk1g3l8a75n0iwbzqg24ixv78slwzwb2q6rlcvq0jlnb4"))))
+ (build-system haskell-build-system)
+ (inputs `(("ghc-byteable" ,ghc-byteable)
+ ("ghc-crypto-random" ,ghc-crypto-random)
+ ("ghc-cipher-aes" ,ghc-cipher-aes)))
+ (home-page "https://github.com/vincenthz/hs-cprng-aes")
+ (synopsis "Crypto Pseudo Random Number Generator using AES in counter mode
+in Haskell")
+ (description "Simple crypto pseudo-random-number-generator with really
+good randomness property.
+
+Using ent, a randomness property maker on one 1Mb sample:
+
address@hidden
address@hidden Entropy = 7.999837 bits per byte.
address@hidden Optimum compression would reduce the size of this 1048576 byte
file by 0
+percent.
address@hidden Chi square distribution for 1048576 samples is 237.02.
address@hidden Arithmbetic mean value of data bytes is 127.3422 (127.5 =
random).
address@hidden Monte Carlo value for Pi is 3.143589568 (error 0.06 percent).
address@hidden itemize
+
+Compared to urandom with the same sampling:
+
address@hidden
address@hidden Entropy = 7.999831 bits per byte.
address@hidden Optimum compression would reduce the size of this 1048576 byte
file by 0
+percent.
address@hidden Chi square distribution for 1048576 samples is 246.63.
address@hidden Arithmetic mean value of data bytes is 127.6347 (127.5 = random).
address@hidden Monte Carlo value for Pi is 3.132465868 (error 0.29 percent).
address@hidden itemize")
+ (license license:bsd-3)))
- 16/38: gnu: Add ghc-yesod-core., (continued)
- 16/38: gnu: Add ghc-yesod-core., Ludovic Courtès, 2018/03/31
- 25/38: gnu: Add ghc-aeson-compat., Ludovic Courtès, 2018/03/31
- 23/38: gnu: Add ghc-http-api-data., Ludovic Courtès, 2018/03/31
- 30/38: gnu: Add ghc-unliftio., Ludovic Courtès, 2018/03/31
- 08/38: gnu: Add ghc-skein., Ludovic Courtès, 2018/03/31
- 24/38: gnu: Add ghc-persistent., Ludovic Courtès, 2018/03/31
- 29/38: gnu: Add ghc-microlens-th., Ludovic Courtès, 2018/03/31
- 38/38: gnu: Add ghc-yesod., Ludovic Courtès, 2018/03/31
- 17/38: gnu: Add ghc-resource-pool., Ludovic Courtès, 2018/03/31
- 19/38: gnu: Add ghc-th-lift-instances., Ludovic Courtès, 2018/03/31
- 14/38: gnu: Add ghc-cprng-aes.,
Ludovic Courtès <=
- 21/38: gnu: Add ghc-uri-bytestring., Ludovic Courtès, 2018/03/31
- 22/38: gnu: Add ghc-time-locale-compat., Ludovic Courtès, 2018/03/31
- 10/38: gnu: Add ghc-crypto-cipher-types., Ludovic Courtès, 2018/03/31
- 11/38: gnu: Add ghc-crypto-cipher-tests., Ludovic Courtès, 2018/03/31
- 18/38: gnu: Add ghc-attoparsec-iso8601., Ludovic Courtès, 2018/03/31
- 26/38: gnu: Add ghc-persistent-template., Ludovic Courtès, 2018/03/31
- 32/38: gnu: ghc-math-functions: Disable tests., Ludovic Courtès, 2018/03/31
- 31/38: gnu: Add ghc-persistent-sqlite., Ludovic Courtès, 2018/03/31
- 33/38: gnu: ghc-psqueues: Disable tests., Ludovic Courtès, 2018/03/31
- 34/38: gnu: Add ghc-yesod-persistent., Ludovic Courtès, 2018/03/31