[openssl/openssl] 38d6c2: Add value_barrier in MOD_EXP_CTIME_COPY_FROM_PREBUF

"'Kurt Roeckx' via openssl-commits" <[email protected]> Wed, 29 Jul 2026 10:07:38 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/openssl-3.0/[email protected]>
  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 38d6c2d5fd6c721f40d800c7bec7a2dee2696593
      https://github.com/openssl/openssl/commit/38d6c2d5fd6c721f40d800c7bec7a2dee2696593
  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: 0c306f0ad0a825c5765dad280c4cacc3b12b39f0
      https://github.com/openssl/openssl/commit/0c306f0ad0a825c5765dad280c4cacc3b12b39f0
  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: a50aa72aba6c3fcaf85faa93513e2798e25efa2c
      https://github.com/openssl/openssl/commit/a50aa72aba6c3fcaf85faa93513e2798e25efa2c
  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/e832fdccdd07...a50aa72aba6c

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.0/e832fd-a50aa7%40github.com.