commit jitterentropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jitterentropy for openSUSE:Factory checked in at 2023-12-11 21:49:52 Comparing /work/SRC/openSUSE:Factory/jitterentropy (Old) and /work/SRC/openSUSE:Factory/.jitterentropy.new.25432 (New) Package is "jitterentropy" Mon Dec 11 21:49:52 2023 rev:6 rq:1132447 version:3.4.1 Changes: --- /work/SRC/openSUSE:Factory/jitterentropy/jitterentropy.changes 2023-03-25 18:54:24.186364948 +0100 +++ /work/SRC/openSUSE:Factory/.jitterentropy.new.25432/jitterentropy.changes 2023-12-11 21:49:58.942263802 +0100 @@ -1,0 +2,5 @@ +Wed Dec 6 15:44:30 UTC 2023 - Guillaume GARDET + +- Make use of distro flags with %set_build_flags + +--- Other differences: -- ++ jitterentropy.spec ++ --- /var/tmp/diff_new_pack.n8aup7/_old 2023-12-11 21:49:59.578287356 +0100 +++ /var/tmp/diff_new_pack.n8aup7/_new 2023-12-11 21:49:59.582287504 +0100 @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects Name: jitterentropy Summary:A userspace library for jitter entropy generation @@ -71,6 +72,7 @@ %autosetup -n jitterentropy-library-%version %build +%set_build_flags %make_build PREFIX="%_prefix" LIBDIR="%_lib" %install
commit jitterentropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jitterentropy for openSUSE:Factory checked in at 2023-03-25 18:54:21 Comparing /work/SRC/openSUSE:Factory/jitterentropy (Old) and /work/SRC/openSUSE:Factory/.jitterentropy.new.31432 (New) Package is "jitterentropy" Sat Mar 25 18:54:21 2023 rev:5 rq:1073935 version:3.4.1 Changes: --- /work/SRC/openSUSE:Factory/jitterentropy/jitterentropy.changes 2022-09-12 19:08:32.494585804 +0200 +++ /work/SRC/openSUSE:Factory/.jitterentropy.new.31432/jitterentropy.changes 2023-03-25 18:54:24.186364948 +0100 @@ -1,0 +2,11 @@ +Wed Mar 22 11:17:59 UTC 2023 - Pedro Monreal + +- Fix a stack corruption on s390x: [bsc#1209627] + * Output size of the STCKE command on s390x is 16 bytes, compared +to 8 bytes of the STCK command. Fix a stack corruption in the +s390x version of jent_get_nstime(). Add some more detailed +information on the STCKE command. + * github.com/smuellerDD/jitterentropy-library/commit/7bf9f85 + * Add jitterentropy-fix-a-stack-corruption-on-s390x.patch + +--- New: jitterentropy-fix-a-stack-corruption-on-s390x.patch Other differences: -- ++ jitterentropy.spec ++ --- /var/tmp/diff_new_pack.dDauzt/_old 2023-03-25 18:54:24.850368418 +0100 +++ /var/tmp/diff_new_pack.dDauzt/_new 2023-03-25 18:54:24.858368460 +0100 @@ -1,7 +1,7 @@ # # spec file for package jitterentropy # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,8 @@ URL:https://github.com/smuellerDD/jitterentropy-library Source0: https://github.com/smuellerDD/jitterentropy-library/archive/refs/tags/v%{version}.tar.gz Source1:baselibs.conf +#PATCH-FIX-UPSTREAM github.com/smuellerDD/jitterentropy-library/commit/7bf9f85 +Patch0: jitterentropy-fix-a-stack-corruption-on-s390x.patch %description The Jitter RNG provides a noise source using the CPU execution ++ jitterentropy-fix-a-stack-corruption-on-s390x.patch ++ >From 7bf9f85d32bc6b809ca687d772bc41bd9c0ecdd8 Mon Sep 17 00:00:00 2001 From: Vladis Dronov Date: Tue, 27 Dec 2022 13:45:03 +0100 Subject: [PATCH] fix a stack corruption on s390x Output size of the STCKE command on s390x is 16 bytes, compared to 8 bytes of the STCK command. Fix a stack corruption in the s390x version of jent_get_nstime(). Add some more detailed information on the STCKE command. Signed-off-by: Stephan Mueller --- jitterentropy-base-user.h | 43 ++- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/jitterentropy-base-user.h b/jitterentropy-base-user.h index b7d21e8..625767a 100644 --- a/jitterentropy-base-user.h +++ b/jitterentropy-base-user.h @@ -129,13 +129,46 @@ static inline void jent_get_nstime(uint64_t *out) static inline void jent_get_nstime(uint64_t *out) { - uint64_t clk; + /* +* This is MVS+STCK code! Enable it with -S in the compiler. +* +* uint64_t clk; +* __asm__ volatile("stck %0" : "=m" (clk) : : "cc"); +* *out = (uint64_t)(clk); +*/ + + /* +* This is GCC+STCKE code. STCKE command and data format: +* z/Architecture - Principles of Operation +* http://publibz.boulder.ibm.com/epubs/pdf/dz9zr007.pdf +* +* The current value of bits 0-103 of the TOD clock is stored in bytes +* 1-13 of the sixteen-byte output: +* +* bits 0-7: zeros (reserved for future extention) +* bits 8-111: TOD Clock value +* bits 112-127: Programmable Field +* +* Output bit 59 (TOD-Clock bit 51) effectively increments every +* microsecond. Bits 60 to 111 of STCKE output are fractions of +* a miscrosecond: bit 59 is 1.0us, bit 60 is .5us, bit 61 is .25us, +* bit 62 is .125us, bit 63 is 62.5ns, etc. +* +* Some of these bits can be implemented, some not. 64 bits of +* the TOD clock are implemented usually nowadays, these are +* bits 8-71 of the output. +* +* The stepping value of TOD-clock bit position 63, if implemented, +* is 2^-12 microseconds, or approximately 244 picoseconds. This value +* is called a clock unit. +*/ + + uint8_t clk[16]; - /* this is MVS code! enable with -S in the compiler */ - /*__asm__ volatile("stck %0" : "=m" (clk) : : "cc"); */ - /* this is gcc */ asm volatile("stcke %0" : "=Q" (clk) : : "cc"); - *out = (
commit jitterentropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jitterentropy for openSUSE:Factory checked in at 2022-09-12 19:08:28 Comparing /work/SRC/openSUSE:Factory/jitterentropy (Old) and /work/SRC/openSUSE:Factory/.jitterentropy.new.2083 (New) Package is "jitterentropy" Mon Sep 12 19:08:28 2022 rev:4 rq:1002712 version:3.4.1 Changes: --- /work/SRC/openSUSE:Factory/jitterentropy/jitterentropy.changes 2022-08-03 21:17:23.351550911 +0200 +++ /work/SRC/openSUSE:Factory/.jitterentropy.new.2083/jitterentropy.changes 2022-09-12 19:08:32.494585804 +0200 @@ -1,0 +2,9 @@ +Mon Sep 12 07:04:35 UTC 2022 - Marcus Meissner + +- updated to 3.4.1 + * add FIPS 140 hints to man page + * simplify the test tool to search for optimal configurations + * fix: jent_loop_shuffle: re-add setting the time that was lost with 3.4.0 + * enhancement: add ARM64 assembler code to read high-res timer + +--- Old: v3.4.0.tar.gz New: v3.4.1.tar.gz Other differences: -- ++ jitterentropy.spec ++ --- /var/tmp/diff_new_pack.WnN0kC/_old 2022-09-12 19:08:32.970587142 +0200 +++ /var/tmp/diff_new_pack.WnN0kC/_new 2022-09-12 19:08:32.974587153 +0200 @@ -20,7 +20,7 @@ Summary:A userspace library for jitter entropy generation License:BSD-3-Clause OR GPL-2.0-or-later Group: Development/Tools/Other -Version:3.4.0 +Version:3.4.1 Release:0 URL:https://github.com/smuellerDD/jitterentropy-library Source0: https://github.com/smuellerDD/jitterentropy-library/archive/refs/tags/v%{version}.tar.gz @@ -91,6 +91,6 @@ %files -n libjitterentropy3 %license LICENSE.gplv2 LICENSE LICENSE.bsd %_libdir/libjitterentropy.so.3 -%_libdir/libjitterentropy.so.3.4.0 +%_libdir/libjitterentropy.so.%version %changelog ++ v3.4.0.tar.gz -> v3.4.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jitterentropy-library-3.4.0/.gitignore new/jitterentropy-library-3.4.1/.gitignore --- old/jitterentropy-library-3.4.0/.gitignore 1970-01-01 01:00:00.0 +0100 +++ new/jitterentropy-library-3.4.1/.gitignore 2022-08-31 08:08:36.0 +0200 @@ -0,0 +1,4 @@ +SP800-90B_EntropyAssessment +.kdev4 +*.kdev4 + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jitterentropy-library-3.4.0/CHANGES.md new/jitterentropy-library-3.4.1/CHANGES.md --- old/jitterentropy-library-3.4.0/CHANGES.md 2022-03-17 22:28:14.0 +0100 +++ new/jitterentropy-library-3.4.1/CHANGES.md 2022-08-31 08:08:36.0 +0200 @@ -1,3 +1,9 @@ +3.4.1 + * add FIPS 140 hints to man page + * simplify the test tool to search for optimal configurations + * fix: jent_loop_shuffle: re-add setting the time that was lost with 3.4.0 + * enhancement: add ARM64 assembler code to read high-res timer + 3.4.0 * enhancement: add API call jent_set_fips_failure_callback as requested by Daniel Ojalvo * fix: Change the SHA-3 integration: The entropy pool is now a SHA-3 state. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jitterentropy-library-3.4.0/arch/jitterentropy-base-windows.h new/jitterentropy-library-3.4.1/arch/jitterentropy-base-windows.h --- old/jitterentropy-library-3.4.0/arch/jitterentropy-base-windows.h 2022-03-17 22:28:14.0 +0100 +++ new/jitterentropy-library-3.4.1/arch/jitterentropy-base-windows.h 2022-08-31 08:08:36.0 +0200 @@ -65,14 +65,14 @@ { #if defined(_M_ARM) || defined(_M_ARM64) - // Generic code. + /* Generic code. */ LARGE_INTEGER ticks; QueryPerformanceCounter(&ticks); *out = ticks.QuadPart; #else - // x86, x86_64 intrinsic + /* x86, x86_64 intrinsic */ *out = __rdtsc(); #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jitterentropy-library-3.4.0/doc/jitterentropy.3 new/jitterentropy-library-3.4.1/doc/jitterentropy.3 --- old/jitterentropy-library-3.4.0/doc/jitterentropy.3 2022-03-17 22:28:14.0 +0100 +++ new/jitterentropy-library-3.4.1/doc/jitterentropy.3 2022-08-31 08:08:36.0 +0200 @@ -127,9 +127,13 @@ The .IR osr value defines the amount of oversampling performed by the entropy -collector. Usually, a caller wants to provide the value 1 here to -not perform oversampling. The value 0 is converted into a 1 automatically -by the entropy collector. +collector. Usually, a caller wants to provide the value 0 here to +apply the default oversampling. The call ensures that any value +lower than +.B JENT_MIN_OSR +is convert
commit jitterentropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jitterentropy for openSUSE:Factory checked in at 2022-08-03 21:17:05 Comparing /work/SRC/openSUSE:Factory/jitterentropy (Old) and /work/SRC/openSUSE:Factory/.jitterentropy.new.1533 (New) Package is "jitterentropy" Wed Aug 3 21:17:05 2022 rev:3 rq:992612 version:3.4.0 Changes: --- /work/SRC/openSUSE:Factory/jitterentropy/jitterentropy.changes 2021-09-29 20:20:33.303131213 +0200 +++ /work/SRC/openSUSE:Factory/.jitterentropy.new.1533/jitterentropy.changes 2022-08-03 21:17:23.351550911 +0200 @@ -1,0 +2,15 @@ +Wed Aug 3 14:19:23 UTC 2022 - Marcus Meissner + +- updated to 3.4.0 + * enhancement: add API call jent_set_fips_failure_callback as requested by Daniel Ojalvo + * fix: Change the SHA-3 integration: The entropy pool is now a SHA-3 state. +It is filled with the time delta containing entropy and auxiliary data that does not contain entropy using a SHA update operation. The auxiliary data is calculated by a SHA-3 hashing of some varying state data. The time delta that contains entropy is measured about the SHA-3 hasing of the auxiliary data. This satisfies FIPS 140-3 IG D.K resolutions 4, 6, and 8. + * enhancement: add CMake support by Andrew Hopkins + +- updated to 3.3.1 + * fix: bug fix in initialization logic by Vladis Dronov + * fix: use __asm__ instead of asm to suit the C11 standard + +- added a -devel-static package to be able to link it static. + +--- Old: v3.3.0.tar.gz New: v3.4.0.tar.gz Other differences: -- ++ jitterentropy.spec ++ --- /var/tmp/diff_new_pack.bGj4rY/_old 2022-08-03 21:17:23.779552034 +0200 +++ /var/tmp/diff_new_pack.bGj4rY/_new 2022-08-03 21:17:23.787552055 +0200 @@ -1,7 +1,7 @@ # # spec file for package jitterentropy # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ Summary:A userspace library for jitter entropy generation License:BSD-3-Clause OR GPL-2.0-or-later Group: Development/Tools/Other -Version:3.3.0 +Version:3.4.0 Release:0 URL:https://github.com/smuellerDD/jitterentropy-library Source0: https://github.com/smuellerDD/jitterentropy-library/archive/refs/tags/v%{version}.tar.gz @@ -55,6 +55,16 @@ This package contains the development header and library. +%package devel-static +Summary:Jitter entropy generator static library +Group: Development/Tools/Other + +%description devel-static +The Jitter RNG provides a noise source using the CPU execution +timing jitter. It depends on a high-resolution time stamp. + +This package contains the static library. + %prep %autosetup -n jitterentropy-library-%version @@ -62,7 +72,7 @@ %make_build PREFIX="%_prefix" LIBDIR="%_lib" %install -%make_install PREFIX="%_prefix" LIBDIR="%_lib" +%make_install PREFIX="%_prefix" LIBDIR="%_lib" all install-static %post -n libjitterentropy3 -p /sbin/ldconfig %postun -n libjitterentropy3 -p /sbin/ldconfig @@ -74,9 +84,13 @@ %_libdir/libjitterentropy.so %_mandir/man3/jitterentropy.3* +%files devel-static +%license LICENSE.gplv2 LICENSE LICENSE.bsd +%_libdir/libjitterentropy.a + %files -n libjitterentropy3 %license LICENSE.gplv2 LICENSE LICENSE.bsd %_libdir/libjitterentropy.so.3 -%_libdir/libjitterentropy.so.3.3.0 +%_libdir/libjitterentropy.so.3.4.0 %changelog ++ v3.3.0.tar.gz -> v3.4.0.tar.gz ++ 1601 lines of diff (skipped)
commit jitterentropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jitterentropy for openSUSE:Factory checked in at 2021-09-29 20:19:05 Comparing /work/SRC/openSUSE:Factory/jitterentropy (Old) and /work/SRC/openSUSE:Factory/.jitterentropy.new.1899 (New) Package is "jitterentropy" Wed Sep 29 20:19:05 2021 rev:2 rq:922114 version:3.3.0 Changes: --- /work/SRC/openSUSE:Factory/jitterentropy/jitterentropy.changes 2021-09-25 22:51:26.715349164 +0200 +++ /work/SRC/openSUSE:Factory/.jitterentropy.new.1899/jitterentropy.changes 2021-09-29 20:20:33.303131213 +0200 @@ -1,0 +2,5 @@ +Tue Sep 28 20:19:44 UTC 2021 - Jan Engelhardt + +- Trim conjecture from descriptions. + +--- Other differences: -- ++ jitterentropy.spec ++ --- /var/tmp/diff_new_pack.ISiCkL/_old 2021-09-29 20:20:33.895132072 +0200 +++ /var/tmp/diff_new_pack.ISiCkL/_new 2021-09-29 20:20:33.899132078 +0200 @@ -1,7 +1,7 @@ # -# spec file for package hello +# spec file for package jitterentropy # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,39 +18,29 @@ Name: jitterentropy Summary:A userspace library for jitter entropy generation -License:GPL-2.0-or-later OR BSD-3-Clause +License:BSD-3-Clause OR GPL-2.0-or-later Group: Development/Tools/Other Version:3.3.0 Release:0 -Url:https://github.com/smuellerDD/jitterentropy-library +URL:https://github.com/smuellerDD/jitterentropy-library Source0: https://github.com/smuellerDD/jitterentropy-library/archive/refs/tags/v%{version}.tar.gz Source1: baselibs.conf %description The Jitter RNG provides a noise source using the CPU execution -timing jitter. It does not depend on any system resource other than -a high-resolution time stamp. It is a small-scale, yet fast entropy -source that is viable in almost all environments and on a lot of CPU -architectures. - -The implementation of the Jitter RNG is independent of any operating -system. As such, it could even run on baremetal without any operating -system. +timing jitter. It depends on a high-resolution time stamp. -The design of the RNG is given in the documentation found in at +The design of this RNG is given in the documentation found at http://www.chronox.de/jent.html . This documentation also covers the full assessment of the SP800-90B compliance as well as all required test code. %package -n libjitterentropy3 Summary: Jitter entropy generator shared library -Group: Development/Tools/Other +Group: System/Libraries %description -n libjitterentropy3 The Jitter RNG provides a noise source using the CPU execution -timing jitter. It does not depend on any system resource other than -a high-resolution time stamp. It is a small-scale, yet fast entropy -source that is viable in almost all environments and on a lot of CPU -architectures. +timing jitter. It depends on a high-resolution time stamp. This package contains the shared library. @@ -61,35 +51,30 @@ %description devel The Jitter RNG provides a noise source using the CPU execution -timing jitter. It does not depend on any system resource other than -a high-resolution time stamp. It is a small-scale, yet fast entropy -source that is viable in almost all environments and on a lot of CPU -architectures. +timing jitter. It depends on a high-resolution time stamp. This package contains the development header and library. %prep -%setup -q -n jitterentropy-library-%version +%autosetup -n jitterentropy-library-%version %build -make PREFIX=/usr LIBDIR=%_lib +%make_build PREFIX="%_prefix" LIBDIR="%_lib" %install -%make_install PREFIX=/usr LIBDIR=%_lib +%make_install PREFIX="%_prefix" LIBDIR="%_lib" %post -n libjitterentropy3 -p /sbin/ldconfig %postun -n libjitterentropy3 -p /sbin/ldconfig %files devel -%defattr(-, root, root) %license LICENSE.gplv2 LICENSE LICENSE.bsd -/usr/include/jitterentropy-base-user.h -/usr/include/jitterentropy.h +%_includedir/jitterentropy-base-user.h +%_includedir/jitterentropy.h %_libdir/libjitterentropy.so %_mandir/man3/jitterentropy.3* %files -n libjitterentropy3 -%defattr(-, root, root) %license LICENSE.gplv2 LICENSE LICENSE.bsd %_libdir/libjitterentropy.so.3 %_libdir/libjitterentropy.so.3.3.0