)]}'
{
  "commit": "18d1ab4f10edab007a1d297deadef93d38e659b8",
  "tree": "13e519acd6630305a0ae6082ef63d5d71504cd03",
  "parents": [
    "9899095fc58b3ed4ce047eda3c8a3a01bf664428"
  ],
  "author": {
    "name": "David Benjamin",
    "email": "davidben@google.com",
    "time": "Tue Nov 24 16:21:58 2026 -0500"
  },
  "committer": {
    "name": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Tue Dec 01 16:54:17 2026 -0800"
  },
  "message": "Add a missing carry to the generic poly1305 implementation\n\nSee also https://github.com/floodyberry/poly1305-donna/commit/e4c7e7daa0\nwhich was not quite so theoretical.\n\nWe do not believe this to have security consequences. We end up\ncomputing a Poly1305 tag that is 2^26 less than it should be. That\nmeans, in these cases, we effectively have 105 bits worth of MAC instead\nof 106 bits. (Poly1305\u0027s 128-bit r values get clamped to 106 bits.)\n\nThe lost bit, in turn, only comes up in a vanishingly small number of\ncases (some 120-odd bits in the unreduced tag have to be all ones).\nFinally, whether we hit those cases at all is not under attacker control\nsince it depends on the Poly1305 key. (In ChaCha20-Poly1305, the\nPoly1305 key is derived from running ChaCha20.)\n\nNonetheless, carry bugs are remarkably difficult to catch, so this is\nvery good to have gotten fixed. Thanks to David Benbennick for catching\nthis!\n\nNote for reviewing: p in poly1305 is 2^130 - 5. The scheme is designed\naround reduction mod p being very easy (take bits above 130, multiply by\n5, add back in). This particular implementation uses five unsaturated\nlimbs with base 2^26, which works out nicely because 5 * 26 \u003d 130. This\nis why you\u0027ll see 5 and 26 show up throughout here.\n\nFixed: 590064899\nChange-Id: I6c1add065d290ec3ef171c86c08250f38dc6e950\nReviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/106470\nAuto-Submit: David Benjamin \u003cdavidben@google.com\u003e\nCommit-Queue: David Benjamin \u003cdavidben@google.com\u003e\nReviewed-by: Lily Chen \u003cchlily@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4e655298672f261361a724d51f8d0ffdc6fe0116",
      "old_mode": 33188,
      "old_path": "crypto/cipher/test/chacha20_poly1305_tests.txt",
      "new_id": "0529f7d27c3dc501c7ac2442a0430e8cb6054c0f",
      "new_mode": 33188,
      "new_path": "crypto/cipher/test/chacha20_poly1305_tests.txt"
    },
    {
      "type": "modify",
      "old_id": "869722d0cf36632ff1cb088c8bff50abcc88f1d9",
      "old_mode": 33188,
      "old_path": "crypto/poly1305/poly1305.cc",
      "new_id": "b9133d889aebbc2c0f43f4fe92f1b99c94ae12af",
      "new_mode": 33188,
      "new_path": "crypto/poly1305/poly1305.cc"
    },
    {
      "type": "modify",
      "old_id": "adaa022aea8d558ddab0254bd4cfb03f197a3b67",
      "old_mode": 33188,
      "old_path": "crypto/poly1305/poly1305_tests.txt",
      "new_id": "311cb23e1fbe9967a19c01832f3ede4654566ea6",
      "new_mode": 33188,
      "new_path": "crypto/poly1305/poly1305_tests.txt"
    }
  ]
}
