)]}'
{
  "commit": "33cc43e307e3c60cc2fe31a4623596ba34cab2d1",
  "tree": "d44b3b6387a666a5fb503a2dd9c5cce3736462ad",
  "parents": [
    "5b1d0995eabc1fdf0818d646234711f79f22783c"
  ],
  "author": {
    "name": "Xiangfei Ding",
    "email": "xfding@google.com",
    "time": "Thu Nov 19 08:47:21 2026 +0000"
  },
  "committer": {
    "name": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Mon Nov 30 12:43:36 2026 -0800"
  },
  "message": "crypto/curve25519: Add value barriers to curve25519 fe_cmov and fe_cswap\n\nUnlike Fiat-Crypto\u0027s generated select, the hand-written fe_cmov and\nfe_cswap helpers in crypto/curve25519/curve25519.cc constructed their\nbitmasks without value_barrier_w. Newer versions of Clang 21 at -O2\nrecognize the repeated masked selects in x25519_ge_scalarmult_small_precomp\nand turn the table scan into a secret-dependent branch and indexed loads.\n\nx25519_ge_scalarmult_small_precomp is used on the password-derived\nscalar in SPAKE2 and, in OPENSSL_SMALL builds, for Ed25519 and X25519\nbase-point multiplication. fe_cmov and fe_cswap are also used in SPAKE2\npoint multiplication, Elligator 2 for CPace, and the generic C X25519 and\nEd25519 paths when assembly implementations are not used.\n\nAdd value_barrier_w to fe_cswap and both fe_cmov overloads, and\nannotate SPAKE2, CPace, and Elligator 2 for Valgrind-based\nconstant-time validation.\n\nBenchmark has shown zero or negligible performance impact across the Ed25519 and Curve25519 benchmark suites, with a more observable 0.95% slow-down on SPAKE2.\n\nThanks to Basavesh Ammanaghatta Shivakumar and Swarn Priya (Washington\nState University) for reporting this.\n\nFixed: 586640372\nSigned-off-by: Xiangfei Ding \u003cxfding@google.com\u003e\nChange-Id: I765c3231d0aa53f0c965b8f08736ab096a6a6964\nReviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/106088\nReviewed-by: David Benjamin \u003cdavidben@google.com\u003e\nPresubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cboringssl-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "99529a7db6f4fcba193e602fe3693b8785572e77",
      "old_mode": 33188,
      "old_path": "crypto/curve25519/cpace.cc",
      "new_id": "7da3e2ca8b0fb516d5cfd011262c47076f226220",
      "new_mode": 33188,
      "new_path": "crypto/curve25519/cpace.cc"
    },
    {
      "type": "modify",
      "old_id": "f48860018139344d8d51dc842dcea55851894031",
      "old_mode": 33188,
      "old_path": "crypto/curve25519/cpace_test.cc",
      "new_id": "a93ecdd0349b81716c3c602b00143dc94147c04a",
      "new_mode": 33188,
      "new_path": "crypto/curve25519/cpace_test.cc"
    },
    {
      "type": "modify",
      "old_id": "2ddfca6002f9550eab1ecc9e180209c6436a1f0a",
      "old_mode": 33188,
      "old_path": "crypto/curve25519/curve25519.cc",
      "new_id": "76216ee219c8431db9c595399e24b85fe824a2ac",
      "new_mode": 33188,
      "new_path": "crypto/curve25519/curve25519.cc"
    },
    {
      "type": "modify",
      "old_id": "9fc003693d34c482e0900fe3eb63bc79b112d602",
      "old_mode": 33188,
      "old_path": "crypto/curve25519/curve25519_test.cc",
      "new_id": "9ef3482dd106b3543562ef06737ece1ea63ab956",
      "new_mode": 33188,
      "new_path": "crypto/curve25519/curve25519_test.cc"
    },
    {
      "type": "modify",
      "old_id": "fc565616c6a5115f65f68e207df7e10ae0f5a5df",
      "old_mode": 33188,
      "old_path": "crypto/curve25519/spake25519.cc",
      "new_id": "e043e156d782d0d631e662c004a18a480fcd744d",
      "new_mode": 33188,
      "new_path": "crypto/curve25519/spake25519.cc"
    },
    {
      "type": "modify",
      "old_id": "02cc870c07f16e88a312010f85685db1c5bff713",
      "old_mode": 33188,
      "old_path": "crypto/curve25519/spake25519_test.cc",
      "new_id": "6706bd27a0aec5a317db4e66e00e2a5c72baedbd",
      "new_mode": 33188,
      "new_path": "crypto/curve25519/spake25519_test.cc"
    }
  ]
}
