)]}'
{
  "commit": "47d596423df1daf6385bbc17e0e9d2691b7eef94",
  "tree": "69a5ea0f4f45c24dcf6983293d132e63c7805bb0",
  "parents": [
    "da428eb4893dbb1403634ab0fed96a9a0cab9836"
  ],
  "author": {
    "name": "Laramie Leavitt",
    "email": "lar@google.com",
    "time": "Tue Nov 17 11:59:39 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 20 11:11:48 2026 -0800"
  },
  "message": "Fix Randen HWAES detection on Apple AArch64, musl, and Android.\n\n`CPUSupportsRandenHwAes()` could report no AES support on Apple Silicon, so\nRanden silently fell back to the slow implementation:\n\n* `hw.optional.arm.caps` is a byte array that is wider than `uint64_t`, so\n  reading it into a `uint64_t` failed with `ENOMEM`. Read it into a byte\n  buffer and test the `AdvSIMD` and `FEAT_AES` bits there.\n* Older XNU kernels (such as macOS 11 on Apple M1) predate the\n  `hw.optional.arm.FEAT_AES` key even though all Darwin arm64 hardware has\n  `FEAT_AES`. Treat a missing key as supported once `AdvSIMD` is present.\n* Reject `sysctlbyname` reads whose size does not match the requested type,\n  and evaluate the result once.\n\nOn Linux AArch64, ARM, and PPC, `getauxval()` was only used with glibc:\n\n* Use `getauxval()` with other C libraries that provide `\u003csys/auxv.h\u003e`, such\n  as musl, which previously never detected hardware AES.\n* On Android API level 18 and above, call `getauxval()` directly instead of\n  probing for it with `dlopen(\"libc.so\")`, which fails in static binaries.\n* Only define `AT_HWCAP` and `AT_HWCAP2` when `\u003csys/auxv.h\u003e` has not.\n\nPiperOrigin-RevId: 1023932416\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "888e36fe76db2cb985d22ce6c0b6c8243a0c67fb",
      "old_mode": 33188,
      "old_path": "absl/random/internal/randen_detect.cc",
      "new_id": "2d6ca9f185bd09f52d74c1fdf8c53f8c82f160f9",
      "new_mode": 33188,
      "new_path": "absl/random/internal/randen_detect.cc"
    }
  ]
}
