20 Commits

Author SHA256 Message Date
96cdb8daa7 Accepting request 1273628 from devel:libraries:c_c++
- Update to 3.6.3: [bsc#1242050] (forwarded request 1273627 from pmonrealgonzalez)

OBS-URL: https://build.opensuse.org/request/show/1273628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jitterentropy?expand=0&rev=8
2025-05-01 13:22:46 +00:00
3a56e262ed Accepting request 1147641 from devel:libraries:c_c++
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1147641
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jitterentropy?expand=0&rev=7
2024-02-21 16:51:59 +00:00
1a31f165bf - jitterentropy-with-debug.patch: build with debuginfo (bsc#1207789)
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=17
2024-02-12 16:20:47 +00:00
2f277845a7 - jitterentropy-split-internal-header.patch:
Hide the non-GNUC constructs that are library internal from the 
  exported header. (bsc#1202870)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=16
2024-02-12 16:19:05 +00:00
fc13fe2079 Accepting request 1132447 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1132447
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jitterentropy?expand=0&rev=6
2023-12-11 20:49:52 +00:00
258f9a4a90 Accepting request 1131389 from home:Guillaume_G:PAC_BTI
- Make use of distro flags with %set_build_flags

OBS-URL: https://build.opensuse.org/request/show/1131389
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=14
2023-12-11 09:17:18 +00:00
e754ae4523 Accepting request 1073935 from devel:libraries:c_c++
(forwarded request 1073856 from pmonrealgonzalez)

OBS-URL: https://build.opensuse.org/request/show/1073935
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jitterentropy?expand=0&rev=5
2023-03-25 17:54:21 +00:00
e4979ea693 Accepting request 1073856 from home:pmonrealgonzalez:branches:devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1073856
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=12
2023-03-23 09:52:59 +00:00
700840eea9 Accepting request 1002712 from devel:libraries:c_c++
- 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

OBS-URL: https://build.opensuse.org/request/show/1002712
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jitterentropy?expand=0&rev=4
2022-09-12 17:08:28 +00:00
b2f2ba9a4f OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=10 2022-09-12 07:34:19 +00:00
069bd00fe0 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=9
2022-09-12 07:11:53 +00:00
ecfe60f7bb Accepting request 992612 from devel:libraries:c_c++
- 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 <vdronov@redhat.com>
  * fix: use __asm__ instead of asm to suit the C11 standard
- added a -devel-static package to be able to link it static. (forwarded request 992611 from msmeissn)

OBS-URL: https://build.opensuse.org/request/show/992612
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jitterentropy?expand=0&rev=3
2022-08-03 19:17:05 +00:00
097b635c0c Accepting request 992611 from home:msmeissn:branches:devel:libraries:c_c++
- 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 <vdronov@redhat.com>
  * fix: use __asm__ instead of asm to suit the C11 standard
- added a -devel-static package to be able to link it static.

OBS-URL: https://build.opensuse.org/request/show/992611
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=7
2022-08-03 16:01:03 +00:00
f31b05d428 Accepting request 922114 from devel:libraries:c_c++
- Trim conjecture from descriptions. (forwarded request 922067 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/922114
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jitterentropy?expand=0&rev=2
2021-09-29 18:19:05 +00:00
abfb5339ef Accepting request 922067 from home:jengelh:branches:devel:libraries:c_c++
- Trim conjecture from descriptions.

OBS-URL: https://build.opensuse.org/request/show/922067
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=6
2021-09-29 07:21:30 +00:00
2c2b9e2ed3 Accepting request 921419 from devel:libraries:c_c++
add to factory

OBS-URL: https://build.opensuse.org/request/show/921419
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jitterentropy?expand=0&rev=1
2021-09-25 20:51:23 +00:00
af4de4be95 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=4 2021-09-25 10:09:27 +00:00
9a2f2583b1 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=3 2021-09-25 10:09:04 +00:00
9b34b29430 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=2 2021-09-25 10:08:50 +00:00
46d180a197 Accepting request 920653 from home:msmeissn
please add for factory inclusion

OBS-URL: https://build.opensuse.org/request/show/920653
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=1
2021-09-24 13:38:17 +00:00
2 changed files with 0 additions and 73 deletions

View File

@@ -1,70 +0,0 @@
From 7bf9f85d32bc6b809ca687d772bc41bd9c0ecdd8 Mon Sep 17 00:00:00 2001
From: Vladis Dronov <vdronov@redhat.com>
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 <smueller@chronox.de>
---
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 = (uint64_t)(clk);
+
+ /* s390x is big-endian, so just perfom a byte-by-byte copy */
+ *out = *(uint64_t *)(clk + 1);
}
#elif defined(__powerpc)

BIN
v3.4.1.tar.gz (Stored with Git LFS)

Binary file not shown.