diff options
author | agc <agc@pkgsrc.org> | 2013-04-25 16:24:54 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2013-04-25 16:24:54 +0000 |
commit | 210d34a0b947c3f128502d13cd9833e24cf8db85 (patch) | |
tree | a6d3762e171284f232ba5d830bc77d7ba1cfca73 /security | |
parent | d7f2f318fcdaf3b92dcc67d834f9c9deb641c698 (diff) | |
download | pkgsrc-210d34a0b947c3f128502d13cd9833e24cf8db85.tar.gz |
Import ent-19981020 into the Packages Collection.
Originally packaged for wip by evaldo - thanks!
ent is a program which applies various tests to sequences of
bytes stored in files and reports the results of those tests.
The program is useful for those evaluating pseudorandom number
generators for encryption and statistical sampling
applications, compression algorithms, and other applications
where the information density of a file is of interest.
(Modified by me only to hold the distfile in a DIST_SUBDIR, since
the random.zip filename has the possibility to clash with other things)
An example of its usage:
% dd if=/dev/urandom bs=1k count=10 | ent
10+0 records in
10+0 records out
10240 bytes transferred in 0.001 secs (10240000 bytes/sec)
Entropy = 7.977398 bits per byte.
Optimum compression would reduce the size
of this 10240 byte file by 0 percent.
Chi square distribution for 10240 samples is 321.50, and randomly
would exceed this value 0.30 percent of the times.
Arithmetic mean value of data bytes is 128.5722 (127.5 = random).
Monte Carlo value for Pi is 3.195779601 (error 1.72 percent).
Serial correlation coefficient is -0.003620 (totally uncorrelated = 0.0).
%
Diffstat (limited to 'security')
-rw-r--r-- | security/ent/DESCR | 5 | ||||
-rw-r--r-- | security/ent/Makefile | 25 | ||||
-rw-r--r-- | security/ent/PLIST | 2 | ||||
-rw-r--r-- | security/ent/distinfo | 5 |
4 files changed, 37 insertions, 0 deletions
diff --git a/security/ent/DESCR b/security/ent/DESCR new file mode 100644 index 00000000000..28724531bf4 --- /dev/null +++ b/security/ent/DESCR @@ -0,0 +1,5 @@ +ent is a program which applies various tests to sequences of bytes stored in +files and reports the results of those tests. The program is useful for those +evaluating pseudorandom number generators for encryption and statistical +sampling applications, compression algorithms, and other applications where the +information density of a file is of interest. diff --git a/security/ent/Makefile b/security/ent/Makefile new file mode 100644 index 00000000000..106fbbe40c1 --- /dev/null +++ b/security/ent/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2013/04/25 16:24:54 agc Exp $ +# + +DISTNAME= random +PKGNAME= ent-19981020 +CATEGORIES= security +MASTER_SITES= http://fourmilab.ch/random/ +EXTRACT_SUFX= .zip + +MAINTAINER= evaldo@gardenali.biz +HOMEPAGE= http://fourmilab.ch/random/ +COMMENT= Entropy calculation and analysis of putative random sequences +LICENSE= public-domain + +DIST_SUBDIR= ${PKGNAME_NOREV} + +WRKSRC= ${WRKDIR} +BUILD_TARGET= ${EMPTY} + +INSTALLATION_DIRS= bin + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/ent ${DESTDIR}${PREFIX}/bin + +.include "../../mk/bsd.pkg.mk" diff --git a/security/ent/PLIST b/security/ent/PLIST new file mode 100644 index 00000000000..e9235168c32 --- /dev/null +++ b/security/ent/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2013/04/25 16:24:54 agc Exp $ +bin/ent diff --git a/security/ent/distinfo b/security/ent/distinfo new file mode 100644 index 00000000000..7af5558c8fb --- /dev/null +++ b/security/ent/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2013/04/25 16:24:54 agc Exp $ + +SHA1 (ent-19981020/random.zip) = 0f2f12dc67d1f02f77776709cf5fc5eee1d1b2e2 +RMD160 (ent-19981020/random.zip) = b21b8401fdbd2aac189fe4a442a1164b172407f8 +Size (ent-19981020/random.zip) = 76200 bytes |