[openssl/openssl] 902743: 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.6/[email protected]>
  Branch: refs/heads/openssl-3.6
  Home:   https://github.com/openssl/openssl
  Commit: 902743c806dd536356b92880e57125608d175ef0
      https://github.com/openssl/openssl/commit/902743c806dd536356b92880e57125608d175ef0
  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: dec861dca287592f18cf3881ac37a298b16332f1
      https://github.com/openssl/openssl/commit/dec861dca287592f18cf3881ac37a298b16332f1
  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: c98a33e6da8f1505e988bd033ce5dbfb40ec0a8c
      https://github.com/openssl/openssl/commit/c98a33e6da8f1505e988bd033ce5dbfb40ec0a8c
  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/243cc628d0c2...c98a33e6da8f

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.6/243cc6-c98a33%40github.com.