1
0
forked from pool/ghc-cprng-aes

Accepting request 1098949 from devel:languages:haskell

version update

OBS-URL: https://build.opensuse.org/request/show/1098949
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-cprng-aes?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2023-07-18 19:54:19 +00:00 committed by Git OBS Bridge
commit 679a02def9
3 changed files with 66 additions and 0 deletions

58
cprng-aes.cabal Normal file
View File

@ -0,0 +1,58 @@
Name: cprng-aes
Version: 0.6.1
x-revision: 1
Description:
Simple crypto pseudo-random-number-generator with really good randomness property.
.
Using ent, a randomness property maker on one 1Mb sample:
Entropy = 7.999837 bits per byte.
Optimum compression would reduce the size of this 1048576 byte file by 0 percent.
Chi square distribution for 1048576 samples is 237.02
Arithmetic mean value of data bytes is 127.3422 (127.5 = random)
Monte Carlo value for Pi is 3.143589568 (error 0.06 percent)
.
Compared to urandom with the same sampling:
Entropy = 7.999831 bits per byte.
Optimum compression would reduce the size of this 1048576 byte file by 0 percent.
Chi square distribution for 1048576 samples is 246.63
Arithmetic mean value of data bytes is 127.6347 (127.5 = random).
Monte Carlo value for Pi is 3.132465868 (error 0.29 percent).
License: BSD3
License-file: LICENSE
Copyright: Vincent Hanquez <vincent@snarc.org>
Author: Vincent Hanquez <vincent@snarc.org>
Maintainer: Vincent Hanquez <vincent@snarc.org>
Synopsis: Crypto Pseudo Random Number Generator using AES in counter mode.
Build-Type: Simple
Category: Cryptography
stability: experimental
Cabal-Version: >=1.8
Homepage: http://github.com/vincenthz/hs-cprng-aes
data-files: README.md
Library
Build-Depends: base >= 3 && < 5
, bytestring < 0.12
, byteable
, crypto-random >= 0.0.7 && < 0.1
, cipher-aes >= 0.2.9 && < 0.3
Exposed-modules: Crypto.Random.AESCtr
Other-modules: Crypto.Random.AESCtr.Internal
ghc-options: -Wall
Benchmark bench-cprng-aes
hs-source-dirs: Benchmarks
Main-Is: Benchmarks.hs
type: exitcode-stdio-1.0
Build-depends: base >= 4 && < 5
, bytestring
, crypto-random
, cprng-aes
, criterion
, mtl
source-repository head
type: git
location: git://github.com/vincenthz/hs-cprng-aes

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 12 11:05:01 UTC 2023 - Peter Simons <psimons@suse.com>
- Update cprng-aes to version 0.6.1 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Mar 30 17:06:22 UTC 2023 - Peter Simons <psimons@suse.com>

View File

@ -25,6 +25,7 @@ Summary: Crypto Pseudo Random Number Generator using AES in counter mode
License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
@ -83,6 +84,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build