Closed hansonchar closed 1 year ago
Found a solution:
cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="/usr/local" -DBUILD_DIVSUFSORT64="ON" ..
Also found this mentioned in the wiki:
To enable 64-bit
libdivsufsort
for large (>256MB) files, you may need to buildlibdivsufsort
withBUILD_DIVSUFSORT64=YES
.
The 64-bit version of the divsufsort library became a dependency in the most recent version, after the merging of PR #226, which added support for large (>2GS) datasets. I'm glad that you figured out the issue and that @celic added the necessary hints in the Wiki.
I also do testing using Amazon Linux; on the most recent versions of Amazon Linux ($VERSION 2023 and later), I have to install cmake, gmp-devel, mpft-devel, zstd, gcc, gcc-c++, jasoncpp, jasoncpp-devel, openssl, and openssl-devel. The divsufsort library needs to be installed from source (as Amazon doesn't believe in providing a reasonable set of packages?)
Please feel free to note any additional problems that you run into; that said, I do a bunch of testing using EC2 instances, and it should work fine (given sufficient memory per process).
A different but related question. Trying to evaluate if a specific hardware satisfies the FIPS140-3 entropy requirements, I
invoke_testing.sh
of jitterentropy-library
; andSP800-90B_EntropyAssessment.git
(via make
) under SP800-90B_EntropyAssessment/cpp
SP800-90B_EntropyAssessment
under jitterentropy-library/tests
SP800-90B section 3.1.3
by running processdata.sh
under jitterentropy-library/tests/raw-entropy/validation-runtime
SP800-90B section 3.1.4
by running processdata.sh
under jitterentropy-library/tests/raw-entropy/validation-restart
However, I see messages like:
Can't open the provided file name: No such file or directory
Is there something I am missing?
More details below:
[jitterentropy-library/tests/raw-entropy/validation-runtime]$ ./processdata.sh
Building extractlsb ...
cc -pedantic -Wall -Wextra -O2 -c -o extractlsb.o extractlsb.c
cc extractlsb.o -o extractlsb -lrt
Converting recorded entropy data ../results-measurements/jent-raw-noise-0001.data into different bit output
Processed 1000000 items from ./extractlsb samples with mask [0x000000000000000f] significant bits [4]
Constant 0s in var sample:
00000000 00000000 00000000 00000000 00000000 0000000- -------- --------
Constant 1s in var sample:
-------- -------- -------- -------- -------- -------- -------- --------
Constant 0s in single sample:
00000000 00000000 00000000 00000000 00000000 000000-- -------- --------
Constant 1s in single sample:
-------- -------- -------- -------- -------- -------- -------- --------
Processed 1000000 items from ./extractlsb samples with mask [0x00000000000000ff] significant bits [8]
Constant 0s in var sample:
00000000 00000000 00000000 00000000 00000000 0000000- -------- --------
Constant 1s in var sample:
-------- -------- -------- -------- -------- -------- -------- --------
Constant 0s in single sample:
00000000 00000000 00000000 00000000 00000000 000000-- -------- --------
Constant 1s in single sample:
-------- -------- -------- -------- -------- -------- -------- --------
Extraction finished. Now analyzing entropy for noise source ...
Analyzing entropy for ../results-analysis-runtime/jent-raw-noise-0001.0Fbitout.single.data 4-bit single
Analyzing entropy for ../results-analysis-runtime/jent-raw-noise-0001.0Fbitout.var.data 4-bit single
Analyzing entropy for ../results-analysis-runtime/jent-raw-noise-0001.FFbitout.single.data 8-bit single
Analyzing entropy for ../results-analysis-runtime/jent-raw-noise-0001.FFbitout.var.data 8-bit single
Now analyzing entropy for conditioned data...
Analyzing entropy for ../results-measurements/jent-conditioned.data 8-bit var
Can't open the provided file name: No such file or directory
This doesn't seem to be related to the NIST tool. You're seeing scripting errors from the Jitter Entropy evaluation scripts, which I haven't really played with. You're probably best off asking at the Jitter Entropy Library GitHub page.
Sorry, looks like more people are incorporating this project into automated pipelines. When I issue an update that breaks the build process, there may be some downwind effects. A good place to check is the Releases page. I'll try to be more explicit when something is changed that may require new libraries.
It may be helpful for automated pipelines to pull specific tags of this project rather than the master branch. This will ensure consistent usage and can be updated by the individual project managers when ready.
I think I figured it out. Details at https://github.com/smuellerDD/jitterentropy-library/issues/116.
On Amazon Linux, I've installed
libdivsufsort
:But when I tried to
make
underSP800-90B_EntropyAssessment/cpp
, I got the failure:Any idea on how to fix this?