)]}'
{
  "commit": "6f8eec5aa6d62f18398652f030ccbab7f9b8c758",
  "tree": "3c46f5a67ed341ef6dc1bc17ebade0febe4270fc",
  "parents": [
    "18d1ab4f10edab007a1d297deadef93d38e659b8"
  ],
  "author": {
    "name": "David Benjamin",
    "email": "davidben@google.com",
    "time": "Tue Dec 01 15:09:32 2026 -0500"
  },
  "committer": {
    "name": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Wed Dec 02 08:40:26 2026 -0800"
  },
  "message": "Add some missing carries to the SSE2 poly1305 implementation\n\nIn investigating https://crbug.com/590064899, we found that there were\nsome missing carries here too:\n\n- When precomputing r^2 and r^4, the second carry chain stopped too\n  early. It then needs a third reduce+carry to be fully tight. This\n  seems to be unnecessary, but the performance difference seems to be\n  negligible, so target the simpler bounds. (Also for the AEAD, we have\n  a faster stitched SSE4.1 implementation anyway.)\n\n  The robot also believes the carry chain cannot actually reach r21 in\n  the final loop around due to where the quadratic residues mod p are\n  and Poly1305\u0027s clamping, which is why there is no test case for it,\n  but I did not confirm this.\n\n- When combining even/odd blocks, the carry chain again stopped too\n  early.\n\nThe final reduction also had a similar missing carry to\nhttps://crbug.com/590064899, but this seems to have been benign. g and\nthus the select mask are computed correctly, and the final addition\ntolerates a slightly loose input. Still, target simpler bounds since\nit\u0027s just a handful of cycles at the end.\n\nSome of these test vectors could be applied at the AEAD level, while\nothers cannot because they depend on cooking r and s, but those are\nderived on the fly per AEAD call.\n\nWe don\u0027t believe this has security consequences. The first requires a\nvanishingly small set of keys, which aren\u0027t under attacker control. The\nsecond issue is like https://crbug.com/590064899 in that it impacts a\nvanishingly small set of cases, randomized by a key outside attacker\ncontrol, and even when we hit those cases, we effectively only lose some\nbits of the MAC.\n\nBug: 590064899\nChange-Id: I9ca4d654a8dd0339875b0cfb697952000661d3e6\nReviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/106768\nPresubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cboringssl-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nCommit-Queue: Lily Chen \u003cchlily@google.com\u003e\nAuto-Submit: David Benjamin \u003cdavidben@google.com\u003e\nReviewed-by: Lily Chen \u003cchlily@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0529f7d27c3dc501c7ac2442a0430e8cb6054c0f",
      "old_mode": 33188,
      "old_path": "crypto/cipher/test/chacha20_poly1305_tests.txt",
      "new_id": "578a726411ff6f07b247127ec0e453216fedcb2d",
      "new_mode": 33188,
      "new_path": "crypto/cipher/test/chacha20_poly1305_tests.txt"
    },
    {
      "type": "modify",
      "old_id": "311cb23e1fbe9967a19c01832f3ede4654566ea6",
      "old_mode": 33188,
      "old_path": "crypto/poly1305/poly1305_tests.txt",
      "new_id": "fb02ce515714777b0cf50c8a93bc56df18728ce7",
      "new_mode": 33188,
      "new_path": "crypto/poly1305/poly1305_tests.txt"
    },
    {
      "type": "modify",
      "old_id": "c0a585246010845b9fc8e852e1f01f34268dcfac",
      "old_mode": 33188,
      "old_path": "crypto/poly1305/poly1305_vec.cc",
      "new_id": "8b67f3bfea6eae44731a104076e804484f228744",
      "new_mode": 33188,
      "new_path": "crypto/poly1305/poly1305_vec.cc"
    }
  ]
}
