[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30892] [PATCH 13/37] gnu: Add ghc-cprng-aes.
From: |
rsiddharth |
Subject: |
[bug#30892] [PATCH 13/37] gnu: Add ghc-cprng-aes. |
Date: |
Wed, 21 Mar 2018 03:44:51 +0000 |
* gnu/packages/haskell-crypto.scm (ghc-cprng-aes): New variable.
---
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 9dff57546..e9c380f97 100644
--- a/gnu/packages/haskell-crypto.scm
+++ b/gnu/packages/haskell-crypto.scm
@@ -613,3 +613,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)))
--
2.16.2
- [bug#30892] [PATCH 00/37] Add ghc-yesod and its dependencies., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 01/37] gnu: ghc-chunked-data: Update inputs., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 12/37] gnu: Add ghc-crypto-random., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 14/37] gnu: Add ghc-clientsession., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 13/37] gnu: Add ghc-cprng-aes.,
rsiddharth <=
- [bug#30892] [PATCH 02/37] gnu: Add ghc-stm-chans., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 03/37] gnu: Add ghc-monad-loops., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 10/37] gnu: Add ghc-crypto-cipher-tests., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 06/37] gnu: Add ghc-path-pieces., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 04/37] gnu: Add ghc-monad-logger., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 08/37] gnu: Add ghc-securemem., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 05/37] gnu: Add ghc-shakespeare., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 11/37] gnu: Add ghc-cipher-aes., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 07/37] gnu: Add ghc-skein., rsiddharth, 2018/03/20
- [bug#30892] [PATCH 09/37] gnu: Add ghc-crypto-cipher-types., rsiddharth, 2018/03/20