forked from pool/libgcrypt
* Add --enable-marvin-workaround to spec to enable workaround * Fix timing based side-channel in RSA implementation ( Marvin attack ) * Add libgcrypt-CVE-2024-2236.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=193
16 lines
396 B
Diff
16 lines
396 B
Diff
Index: libgcrypt-1.10.0/src/fips.c
|
|
===================================================================
|
|
--- libgcrypt-1.10.0.orig/src/fips.c
|
|
+++ libgcrypt-1.10.0/src/fips.c
|
|
@@ -890,6 +890,10 @@ fips_new_state (enum module_states new_s
|
|
|
|
}
|
|
|
|
+ /* Allow a transition to the current state */
|
|
+ if (current_state == new_state)
|
|
+ ok = 1;
|
|
+
|
|
if (ok)
|
|
{
|
|
current_state = new_state;
|