Import sysutils/p5-Data-Entropy 0.007
Description: This module maintains a concept of a current selection of entropy source. Algorithms that require entropy, such as those in Data::Entropy::Algorithms, can use the source nominated by this module, avoiding the need for entropy source objects to be explicitly passed around. This is convenient because usually one entropy source will be used for an entire program run and so an explicit entropy source parameter would rarely vary. There is also a default entropy source, avoiding the need to explicitly configure a source at all. If nothing is done to set a source then it defaults to the use of Rijndael (AES) in counter mode (see Data::Entropy::RawSource::CryptCounter and Crypt::Rijndael), keyed using Perl's built-in rand function. This gives a data stream that looks like concentrated entropy, but really only has at most the entropy of the rand seed. Within a single run it is cryptographically difficult to detect the correlation between parts of the pseudo-entropy stream. If more true entropy is required then it is necessary to configure a different entropy source. suggestions and ok sthen@
This commit is contained in:
parent
fd8ad25128
commit
e42c3c6e03
25
sysutils/p5-Data-Entropy/Makefile
Normal file
25
sysutils/p5-Data-Entropy/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2021/04/28 15:55:16 tracey Exp $
|
||||
|
||||
COMMENT = entropy (randomness) management
|
||||
|
||||
DISTNAME = Data-Entropy-0.007
|
||||
|
||||
CATEGORIES = sysutils
|
||||
|
||||
# Perl
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
MODULES = cpan
|
||||
|
||||
BUILD_DEPENDS = security/p5-Crypt-Rijndael \
|
||||
sysutils/p5-Data-Float>=0.008
|
||||
RUN_DEPENDS = devel/p5-Params-Classify \
|
||||
security/p5-Crypt-Rijndael \
|
||||
sysutils/p5-Data-Float>=0.008 \
|
||||
www/p5-HTTP-Lite>=2.2
|
||||
|
||||
CONFIGURE_STYLE = modbuild
|
||||
|
||||
PKG_ARCH = *
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/p5-Data-Entropy/distinfo
Normal file
2
sysutils/p5-Data-Entropy/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (Data-Entropy-0.007.tar.gz) = JhHEoaMDhZTXnqTtFNnhWpr493EF9RZneV/k+KU0J+Q=
|
||||
SIZE (Data-Entropy-0.007.tar.gz) = 43667
|
16
sysutils/p5-Data-Entropy/pkg/DESCR
Normal file
16
sysutils/p5-Data-Entropy/pkg/DESCR
Normal file
@ -0,0 +1,16 @@
|
||||
This module maintains a concept of a current selection of entropy source.
|
||||
Algorithms that require entropy, such as those in Data::Entropy::Algorithms, can
|
||||
use the source nominated by this module, avoiding the need for entropy source
|
||||
objects to be explicitly passed around. This is convenient because usually one
|
||||
entropy source will be used for an entire program run and so an explicit entropy
|
||||
source parameter would rarely vary. There is also a default entropy source,
|
||||
avoiding the need to explicitly configure a source at all.
|
||||
|
||||
If nothing is done to set a source then it defaults to the use of Rijndael (AES)
|
||||
in counter mode (see Data::Entropy::RawSource::CryptCounter and
|
||||
Crypt::Rijndael), keyed using Perl's built-in rand function. This gives a data
|
||||
stream that looks like concentrated entropy, but really only has at most the
|
||||
entropy of the rand seed. Within a single run it is cryptographically difficult
|
||||
to detect the correlation between parts of the pseudo-entropy stream. If more
|
||||
true entropy is required then it is necessary to configure a different entropy
|
||||
source.
|
17
sysutils/p5-Data-Entropy/pkg/PLIST
Normal file
17
sysutils/p5-Data-Entropy/pkg/PLIST
Normal file
@ -0,0 +1,17 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/04/28 15:55:16 tracey Exp $
|
||||
${P5SITE}/Data/Entropy/
|
||||
${P5SITE}/Data/Entropy.pm
|
||||
${P5SITE}/Data/Entropy/Algorithms.pm
|
||||
${P5SITE}/Data/Entropy/RawSource/
|
||||
${P5SITE}/Data/Entropy/RawSource/CryptCounter.pm
|
||||
${P5SITE}/Data/Entropy/RawSource/Local.pm
|
||||
${P5SITE}/Data/Entropy/RawSource/RandomOrg.pm
|
||||
${P5SITE}/Data/Entropy/RawSource/RandomnumbersInfo.pm
|
||||
${P5SITE}/Data/Entropy/Source.pm
|
||||
@man man/man3p/Data::Entropy.3p
|
||||
@man man/man3p/Data::Entropy::Algorithms.3p
|
||||
@man man/man3p/Data::Entropy::RawSource::CryptCounter.3p
|
||||
@man man/man3p/Data::Entropy::RawSource::Local.3p
|
||||
@man man/man3p/Data::Entropy::RawSource::RandomOrg.3p
|
||||
@man man/man3p/Data::Entropy::RawSource::RandomnumbersInfo.3p
|
||||
@man man/man3p/Data::Entropy::Source.3p
|
Loading…
Reference in New Issue
Block a user