[openssl/openssl] bb5e12: Add value_barrier in MOD_EXP_CTIME_COPY_FROM_PREBUF

"'Kurt Roeckx' via openssl-commits" <[email protected]> Wed, 29 Jul 2026 10:07:37 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/openssl-3.5/[email protected]>
  Branch: refs/heads/openssl-3.5
  Home:   https://github.com/openssl/openssl
  Commit: bb5e1258b09354c67176b9b708ca3b564d8e2f52
      https://github.com/openssl/openssl/commit/bb5e1258b09354c67176b9b708ca3b564d8e2f52
  Author: Kurt Roeckx <[email protected]>
  Date:   2026-07-29 (Wed, 29 Jul 2026)

  Changed paths:
    M crypto/bn/bn_exp.c

  Log Message:
  -----------
  Add value_barrier in MOD_EXP_CTIME_COPY_FROM_PREBUF

Without it, compilers can figure out the possible values and optimize
based on it.

Reviewed-by: Andrew Dinh <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
MergeDate: Wed Jul 29 17:04:46 2026
(Merged from https://github.com/openssl/openssl/pull/31957)

(cherry picked from commit f8c26111bab30399d0c9262269089639ff8e4746)


  Commit: 0157f0c0057e691e6284db3242b994606410341c
      https://github.com/openssl/openssl/commit/0157f0c0057e691e6284db3242b994606410341c
  Author: Kurt Roeckx <[email protected]>
  Date:   2026-07-29 (Wed, 29 Jul 2026)

  Changed paths:
    M crypto/bn/bn_lib.c

  Log Message:
  -----------
  Add value_barrier in BN_consttime_swap

Without it, compilers can figure out the possible values and optimize
based on it.

Reviewed-by: Andrew Dinh <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
MergeDate: Wed Jul 29 17:04:47 2026
(Merged from https://github.com/openssl/openssl/pull/31957)

(cherry picked from commit 1d7a8dd73ff9e0fc197611433b9b60b4b5f5465c)


  Commit: dd4f804e6d2dadcdd2c2a0ecd16d8f8e85635f60
      https://github.com/openssl/openssl/commit/dd4f804e6d2dadcdd2c2a0ecd16d8f8e85635f60
  Author: Kurt Roeckx <[email protected]>
  Date:   2026-07-29 (Wed, 29 Jul 2026)

  Changed paths:
    M crypto/bn/bn_exp.c

  Log Message:
  -----------
  Apply suggestion from @andrewkdinh

Co-authored-by: Andrew Dinh <[email protected]>

Reviewed-by: Andrew Dinh <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
MergeDate: Wed Jul 29 17:04:49 2026
(Merged from https://github.com/openssl/openssl/pull/31957)

(cherry picked from commit 33482fbddcf137dde9bd84ae12f2f02cbc358c78)


Compare: https://github.com/openssl/openssl/compare/453eaaa9e6bb...dd4f804e6d2d

To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/openssl-3.5/453eaa-dd4f80%40github.com.