roll: third_party/pigweed/src 30a6a90..910bad2 (125 commits)

910bad2:https://pigweed.googlesource.com/pigweed/pigweed/+/910bad222100e89fefee2deb9cceeff8d2c679e6 roll: luci
2daa9a8:https://pigweed.googlesource.com/pigweed/pigweed/+/2daa9a85c668f35c5e8ff387de0236bc7eb23e05 roll: ninja
4fc3b9d:https://pigweed.googlesource.com/pigweed/pigweed/+/4fc3b9da7aa481f6a6f79cb24dc6ab867b6a7bdb pw_status, pw_log: Log status messages as CODE (message)
d7878d4:https://pigweed.googlesource.com/pigweed/pigweed/+/d7878d4ed9f1ea2ff539077534f52f419f9afa34 pw_log: Avoid copying status codes without messages in PW_LOG_STATUS
75c94aa:https://pigweed.googlesource.com/pigweed/pigweed/+/75c94aabd4157043c4ee58552dbc4b82f94b9932 pw_daq: Avoid hardcoded package prefix strings
98ffa1d:https://pigweed.googlesource.com/pigweed/pigweed/+/98ffa1de76777888a4beaaee3fd9a075d2e1a7d2 pw_grpc: Drain unknown HTTP/2 frame payloads
bea0201:https://pigweed.googlesource.com/pigweed/pigweed/+/bea0201d3a09dcdaa569b6893096ffee37849edf pw_bluetooth_sapphire: Drain periodic syncs safely on teardown
0c2b5ac:https://pigweed.googlesource.com/pigweed/pigweed/+/0c2b5ac9fb15f94cb252aa6da32bfe451a802ca5 pw_bluetooth_sapphire: Reject reused periodic sync handles
51c00a9:https://pigweed.googlesource.com/pigweed/pigweed/+/51c00a917bad4d8579d7cef250ada8b60304c41e pw_bluetooth_sapphire: Stop clearing staged params on set terminated
26aa2a1:https://pigweed.googlesource.com/pigweed/pigweed/+/26aa2a1599e99101a7468518739061c80b45d4f0 pw_enum: Support optional messages in generated statuses
81059a5:https://pigweed.googlesource.com/pigweed/pigweed/+/81059a5be6ec9028c9b4db02649770d1a2fd769a pw_log, pw_enum: Support logging optional status messages
38ee39a:https://pigweed.googlesource.com/pigweed/pigweed/+/38ee39a38f98d912eaf329fd18c5bd35aaeb4efe pw_bluetooth_sapphire: Guard truncated batch scan read events
cab19e0:https://pigweed.googlesource.com/pigweed/pigweed/+/cab19e0806a43400a73911a6d227903e8fe8f6c3 pw_rpc2: Document Python client
4a0569b:https://pigweed.googlesource.com/pigweed/pigweed/+/4a0569b2dd7d58ef7c93c17ae5656922bc053fcf pw_status: Support optional status messages
e2c94d8:https://pigweed.googlesource.com/pigweed/pigweed/+/e2c94d83a836848339514299b8abf5f419e82afe pw_async2: Only reprogram the SystemTimer to fire sooner
bc080d3:https://pigweed.googlesource.com/pigweed/pigweed/+/bc080d3391519074505b0bb3874b9e290bb6b72e pw_tokenizer: Include GCC fallback entries in detokenizer end symbol
a0a9d3e:https://pigweed.googlesource.com/pigweed/pigweed/+/a0a9d3e60ac525bad008148766ccf9b2be7c20f4 pw_grpc: Check end_stream_latched after relocking
7ad093d:https://pigweed.googlesource.com/pigweed/pigweed/+/7ad093df9a397dde3ccf35083ebfdc27fae839e5 pw_async2: Add contract doc
48aff9a:https://pigweed.googlesource.com/pigweed/pigweed/+/48aff9a92cd670a564994111af83c26d64fc70ed pw_rpc2: Configure socket options in TestHarness
380e2a0:https://pigweed.googlesource.com/pigweed/pigweed/+/380e2a045254f75fc618deb6a5801df6d606ec74 pw_transport: Add MockListener and MockConnector
6c938fb:https://pigweed.googlesource.com/pigweed/pigweed/+/6c938fb6b96a683fdbece16c4ff813eaca9dcfc0 docs: Add dependency strategy and architecture
6c01fab:https://pigweed.googlesource.com/pigweed/pigweed/+/6c01fabe9684f83bb834c730859218e0d5a85d6b pw_status, pw_log: Support unified logging for pw::Status
ea169cc:https://pigweed.googlesource.com/pigweed/pigweed/+/ea169ccc32e283ed6080e26fb9ff4d578bee54ed pw_log, pw_enum: Support unified enum and custom status logging
becb566:https://pigweed.googlesource.com/pigweed/pigweed/+/becb5663d22f55904a5f32b3041fca6fea517cb4 pw_grpc: Cap ignored frame payload size
701de95:https://pigweed.googlesource.com/pigweed/pigweed/+/701de955b21ed784a0ae15a1471b97284fa1c5f1 pw_async2: Fix errors in agent skill
9ed9ca0:https://pigweed.googlesource.com/pigweed/pigweed/+/9ed9ca033cf42ec0a9d0d209901cbd66182ca9ca pw_async2: Make waking and removing tasks O(1)
00abc61:https://pigweed.googlesource.com/pigweed/pigweed/+/00abc61ab25adf6b69710ce1058cc44ae530f7f6 pw_grpc: Remove deprecated Connection constructor
ffd14af:https://pigweed.googlesource.com/pigweed/pigweed/+/ffd14af7cb40fded41193d5dfea0c75e53b4de86 pw_rpc2: Add asyncio Python client
2a138fb:https://pigweed.googlesource.com/pigweed/pigweed/+/2a138fb448080af55825ca9332e67a8db653592e pw_grpc: Unlock SharedState before OnCancel()
5b5a9af:https://pigweed.googlesource.com/pigweed/pigweed/+/5b5a9afc9cf3e8d7cd508dd6fd6ae288ea7f4142 pw_grpc: Run close callback once under lock
09e780a:https://pigweed.googlesource.com/pigweed/pigweed/+/09e780a92d59446ca2ce2f025714fb1b57c9db36 pw_bluetooth_sapphire: Rename AwaitingOutgoing to HasOutgoing
8717837:https://pigweed.googlesource.com/pigweed/pigweed/+/87178377d9186b9241b80fa81735e054b29fe66f pw_grpc: Guard last_stream_id in SharedState
e00b726:https://pigweed.googlesource.com/pigweed/pigweed/+/e00b726e6cb3979a82c1f1f632679f159fce4d7b pw_grpc: Drain async DATA tasks on teardown
fdddc93:https://pigweed.googlesource.com/pigweed/pigweed/+/fdddc93f569443e7a397665e9b9679b520e04c32 pw_bluetooth_sapphire: Fix SBC channel mode in A2DP offload
8e89158:https://pigweed.googlesource.com/pigweed/pigweed/+/8e89158d4324a4973f9193afc9f4b8fdf46dae54 pw_bluetooth_sapphire: Fix periodic sync on malformed Sync Established
45888a7:https://pigweed.googlesource.com/pigweed/pigweed/+/45888a761c1961f7db2341d7aa62c1f88c0ba7bf pw_tokenizer: Add PW_TOKENIZER_DEFINE_TOKEN_ALWAYS
8a67389:https://pigweed.googlesource.com/pigweed/pigweed/+/8a67389d185992f37b9d33479691b2fcfb73e4e2 pw_bluetooth_sapphire: Cancel in-progress SCO requests
4538d1d:https://pigweed.googlesource.com/pigweed/pigweed/+/4538d1dac64d0f1a419ffedd8875a91d94dd84b9 pw_transfer: Remove deprecated Android libraries
30104d9:https://pigweed.googlesource.com/pigweed/pigweed/+/30104d92fc73c96f1619662f9eb9edee9bc76bbf pw_grpc: Synchronize message_assembly_allocator
650af81:https://pigweed.googlesource.com/pigweed/pigweed/+/650af8135bead09224d71871f5efec967536b921 pw_file: Build against the user's pw_rpc instance
f654742:https://pigweed.googlesource.com/pigweed/pigweed/+/f6547428c90f52f0929543c078cfee8c5a85cbe3 pw_containers: Use ConstructFromTag for copy/move
3a3f5be:https://pigweed.googlesource.com/pigweed/pigweed/+/3a3f5beba0aab1b993aee420adfdc53367123f64 pw_tokenizer: Add bit field nested tokens
d3366b4:https://pigweed.googlesource.com/pigweed/pigweed/+/d3366b41466d01a8954a165e71424f2ecc254f8e pw_grpc: Bound inbound gRPC message_length
316ab8e:https://pigweed.googlesource.com/pigweed/pigweed/+/316ab8eefd665cc1253dabd081b117daa8e6c9a6 pw_tokenizer: Mark Entry::header_ [[maybe_unused]]
4091a46:https://pigweed.googlesource.com/pigweed/pigweed/+/4091a461817cca20cf02800b050626337e198086 pw_rpc2: Add Python client
3c37a97:https://pigweed.googlesource.com/pigweed/pigweed/+/3c37a973fae9f100f756827084f02a026142df81 pw_protobuf: Move perf_test_data header to private
abfcf8c:https://pigweed.googlesource.com/pigweed/pigweed/+/abfcf8c414a4e90a5ef933dcf4e86ca3a9e0aab6 pw_result: Migrate ResultData to special_members
409632e:https://pigweed.googlesource.com/pigweed/pigweed/+/409632ef5565a70f400558f53bc0376653f01e30 pw_ghish: Fetch the base branch in gh sense
3188feb:https://pigweed.googlesource.com/pigweed/pigweed/+/3188febfb667ee408f348f980062b86c1db7a32c pw_log, pw_log_tokenized: Fix and build the tokenized args tests
75009ce:https://pigweed.googlesource.com/pigweed/pigweed/+/75009ce76f45dcf3c905ff1ea3638405f268448e pw_allocator: Remove unused BucketTest::blocks_ field
74a7a6a:https://pigweed.googlesource.com/pigweed/pigweed/+/74a7a6ac29d6f67a5cf204ed60913f454a7cb055 pw_grpc: Drain sends in clear_connection()
b44b508:https://pigweed.googlesource.com/pigweed/pigweed/+/b44b50847ef9cebc82210cfa2aa90b8ac329b46f bazel: Roll rules_android, rules_java, and rules_jvm_external
349c92c:https://pigweed.googlesource.com/pigweed/pigweed/+/349c92c1689c76da8113d5b86c8dad02dde388f0 pw_grpc: Wake all writers blocked on send window
60c310c:https://pigweed.googlesource.com/pigweed/pigweed/+/60c310c5fff94c56c109080e7a307aa1d123e88c docs: Move dependent changes to their own page
6002e18:https://pigweed.googlesource.com/pigweed/pigweed/+/6002e18d51a5145a0b0e8231808e992ea0893d77 pw_async2: Modernize size report baselines
e34b130:https://pigweed.googlesource.com/pigweed/pigweed/+/e34b1308c7073a526aac70cff679e1713b75d0eb pw_ghish: Standardize on ghish and GHISH_* naming
f13882e:https://pigweed.googlesource.com/pigweed/pigweed/+/f13882e953022233ff87d460ab5a9b4f962eca57 pw_transfer: Allow building with custom pw_rpc flags
ae73ac5:https://pigweed.googlesource.com/pigweed/pigweed/+/ae73ac5bde5d8d074bf18d6d79264880bd3ac589 pw_grpc: Fix SendGoAway mutex self-deadlock
0ef2f06:https://pigweed.googlesource.com/pigweed/pigweed/+/0ef2f065d19955baa883f426952184bff775f4a5 pw_grpc: Account for message prefix in send window
46743a9:https://pigweed.googlesource.com/pigweed/pigweed/+/46743a9e3ba9f5a0109306a341fe5fe332d1136a pw_cpu_exception: Remove unused constraints
23618c7:https://pigweed.googlesource.com/pigweed/pigweed/+/23618c77bf1f5442e2da3ee59e59845fafe0378f pw_grpc: Add Connection unit tests
c688f9f:https://pigweed.googlesource.com/pigweed/pigweed/+/c688f9ffe79fdb03ec8cd4bfaa90678811453566 pw_bluetooth_proxy: Guard GetAclH4Packet release_fn against manager UAF
3357d5a:https://pigweed.googlesource.com/pigweed/pigweed/+/3357d5a9fe959cc724ae36c7ed3b87edcaf6ef2c pw_bluetooth_sapphire: Defer LE param reqs on init
155ce58:https://pigweed.googlesource.com/pigweed/pigweed/+/155ce58981ed1c5885b32d6a87af29acfd6c4e3c pw_bluetooth_sapphire: Check link security for inbound LE CoC
40cf541:https://pigweed.googlesource.com/pigweed/pigweed/+/40cf54185fe5b0dc6b3d88d4e68c15dfdc1aac8c pw_bluetooth_sapphire: Validate encryption disable and failure in hci
9154288:https://pigweed.googlesource.com/pigweed/pigweed/+/91542887ab9c793ab1817fbdfd7caf378a1a5568 pw_transport: Add ForwardingTransport
4a61c4a:https://pigweed.googlesource.com/pigweed/pigweed/+/4a61c4a805fa52ee9b7cc4d9ba7046fb61548c95 pw_rpc2: Document that sockets cannot be shared
eab1cf1:https://pigweed.googlesource.com/pigweed/pigweed/+/eab1cf183efb25518c8dee9b1247ea347d1ea7e4 pw_presubmit: Fix Sphinx nitpicky warnings in docs.rst
1f9b53b:https://pigweed.googlesource.com/pigweed/pigweed/+/1f9b53b2a31ff4068c79361e68c12c128751ed92 pw_ghish: Support targeting a specific commit in pr create
1026bb3:https://pigweed.googlesource.com/pigweed/pigweed/+/1026bb35f31c4556525c317661ba9c236efdc54c pw_ghish: Resolve commit SHAs and refs in ResolveTargetChangeID
c7508c5:https://pigweed.googlesource.com/pigweed/pigweed/+/c7508c553b430e2353196a2c7374f436bfa0e9c3 pw_ghish: Handle mixed stacks in pr create and pr push
0be2dee:https://pigweed.googlesource.com/pigweed/pigweed/+/0be2dee66018f945fbd43dc99597f147055d1a2a pw_ghish: Filter service accounts from formatted reviewer lists
f0335bf:https://pigweed.googlesource.com/pigweed/pigweed/+/f0335bf23911a1dd1575670781c4ecddc6079743 pw_ghish: Accept any stream in IsTTY
9773dfc:https://pigweed.googlesource.com/pigweed/pigweed/+/9773dfc0d1b12ef29c451cacf27580fa157d3c70 pw_*_zephyr: Require zephyr_autoconf_force_included
11e9434:https://pigweed.googlesource.com/pigweed/pigweed/+/11e94348af59b6d3dcac90bf27c7d8bee1ab8226 pw_bluetooth_sapphire: Handle LE param req event
bdd4d0e:https://pigweed.googlesource.com/pigweed/pigweed/+/bdd4d0e746593ca80492f9039694287c8b18450b pw_bluetooth_sapphire: Remove obsolete AdvertisedPeripheral TODO
6ed174e:https://pigweed.googlesource.com/pigweed/pigweed/+/6ed174e97a25bbdc3bf8dfeb40ee3ca3df403f9a pw_bluetooth_sapphire: Fake LE param req HCI cmds
80e6d0f:https://pigweed.googlesource.com/pigweed/pigweed/+/80e6d0fd0aac1846a05f51a03c821f95b61422e5 pw_bluetooth: Add LE Remote Conn Param Req packets
12fe7dc:https://pigweed.googlesource.com/pigweed/pigweed/+/12fe7dc8e84a06f21e66c1d263ae60f61514dec1 pw_dhalsim: Add new pw_dhalsim module
936f397:https://pigweed.googlesource.com/pigweed/pigweed/+/936f397c21ff8d119192efeba4c18e435cce5d91 pw_ghish: Extract isAlreadyReadyConflict and trim 409 matching
66d387e:https://pigweed.googlesource.com/pigweed/pigweed/+/66d387e8c42d3f68490e30f54fb7f8cac3512757 pw_ghish: Restrict numeric Gerrit change IDs to positive 1-9 digit ints
76d4776:https://pigweed.googlesource.com/pigweed/pigweed/+/76d4776fc3dc1cf7d294c042a3002d9ba1e7f73b pw_ghish: Share Gerrit magic-file filter across code_owners and diff
df075f0:https://pigweed.googlesource.com/pigweed/pigweed/+/df075f01baad38cb515c7e87d9f1f5cfeeb61c6e pw_ghish: Preserve HostFlag without mutating Config in ChangeContext
965b722:https://pigweed.googlesource.com/pigweed/pigweed/+/965b72211359b7695435b2cbe9efd65fa6630d1d pw_result: Clean up custom status tests in result_test.cc
d90e4e1:https://pigweed.googlesource.com/pigweed/pigweed/+/d90e4e103dbfdb170a2033e6b71f5ff9b1282691 pw_bluetooth_sapphire: Complete pairing on LE disconnect
fe91596:https://pigweed.googlesource.com/pigweed/pigweed/+/fe91596ff0ba52e43cbd390832302420a095f09f pw_ghish: Wire stranded push_memo_test.go into pw_ghish_test
b1d276e:https://pigweed.googlesource.com/pigweed/pigweed/+/b1d276e09874b8e3e250d755beb49ab49dda5911 pw_daq: Initial implementation of daq-cli
49e98e0:https://pigweed.googlesource.com/pigweed/pigweed/+/49e98e099c714b80bc7e392f1ccbbd08085574de pw_rpc2: Add max_write_size_bytes() to writers
b36d07c:https://pigweed.googlesource.com/pigweed/pigweed/+/b36d07c27d4aa67614693f97a9371505df12efa9 python: Fix type errors and enable pyrefly
c1c4053:https://pigweed.googlesource.com/pigweed/pigweed/+/c1c40536652584be4c986c06dcbd06c771dda14f pw_containers: Preserve triviality for trivially copyable OptionalTuple
7cb30ba:https://pigweed.googlesource.com/pigweed/pigweed/+/7cb30bac60f0d1f6f663ee3b46c0ca3e9c141ba8 pw_containers: Upgrade OptionalTuple using shared internal helpers
9ca868c:https://pigweed.googlesource.com/pigweed/pigweed/+/9ca868c2979b5007d816899b56052e639cc54061 pw_build: Add pyrefly support to GN and Bazel
abb9a2f:https://pigweed.googlesource.com/pigweed/pigweed/+/abb9a2f382b82935bd23e581954c98bfc51da4d8 pw_containers: Add special_members internal helper
d94813a:https://pigweed.googlesource.com/pigweed/pigweed/+/d94813ae3adab7d64cd480732704cf91138ec7f8 pw_grpc: Implement END_STREAM latching and fix kResponse leak
63baea7:https://pigweed.googlesource.com/pigweed/pigweed/+/63baea736f96e263ce094d21e035e607d48c59d6 pw_tokenizer: Significantly rework the Rust detokenizer
5a082c4:https://pigweed.googlesource.com/pigweed/pigweed/+/5a082c42c6d6b0729c2ed01d41fb096f839eb992 pw_format: Add support for parsing nested tokens
0f4d2e6:https://pigweed.googlesource.com/pigweed/pigweed/+/0f4d2e6a370de60a0e7f9a4ce68d3b392690a880 pw_rpc2: Add Python client connection
5f68244:https://pigweed.googlesource.com/pigweed/pigweed/+/5f6824460937523ad2f9453f9a0bd686bb5dc132 pw_system: Add perf_test_app and enable on stm32f429i_freertos
051af5b:https://pigweed.googlesource.com/pigweed/pigweed/+/051af5b45cfa084cb7c999d712ecf4f2050221a9 pw_format: Flesh out printf style formatting to be more complete
983f35f:https://pigweed.googlesource.com/pigweed/pigweed/+/983f35f138347dc12da896a4e34fd0c93fa7c7e5 pw_format: Refactor Rust implementation
82f5ff9:https://pigweed.googlesource.com/pigweed/pigweed/+/82f5ff904590f8a1a32612655144b591f06dc9bf pw_protobuf: Export internal/codegen.h in .pwpb.h
79a293f:https://pigweed.googlesource.com/pigweed/pigweed/+/79a293f1a2ab65775b77e67b4fad29f525d72489 pw_log: Make tokenized_args.h usable from C
0d62fa3:https://pigweed.googlesource.com/pigweed/pigweed/+/0d62fa3d4dd25e354caddaf59443734bde75674f pw_protobuf: Expand perf tests and add decoding benchmarks
1b5f6ae:https://pigweed.googlesource.com/pigweed/pigweed/+/1b5f6ae990a3ef8c100ec05da6541e8f0c53eaba pw_rpc2: Add Python client call state and handles
e1bde76:https://pigweed.googlesource.com/pigweed/pigweed/+/e1bde7641a8d249b6c9f9fbd933bd8b6a4f21301 pw_*: Use new AsBytes API for void*/size_t across Pigweed
e759248:https://pigweed.googlesource.com/pigweed/pigweed/+/e759248e5aad44198e244d0e7a14cf38ac5f9a70 pw_log, pw_enum: Log only the enumerator for versioned enums
02726dc:https://pigweed.googlesource.com/pigweed/pigweed/+/02726dc50aca95196205cb6bcc63bf4b674ba465 pw_ghish: Make help text project-neutral
a33b69b:https://pigweed.googlesource.com/pigweed/pigweed/+/a33b69ba0582f6f39bc9b114a81a8268d37157b7 pw_enum: Make generated status functions noexcept
c917443:https://pigweed.googlesource.com/pigweed/pigweed/+/c9174437f47c28f60d4b1a14ad9835049b5782dc pw_build: Add mix-in build configs to workflows
1cb2b14:https://pigweed.googlesource.com/pigweed/pigweed/+/1cb2b14305adc47413a4144ab5bfea13f9d0c84a pw_containers: Add pack_indexing internal helper
ff6dbca:https://pigweed.googlesource.com/pigweed/pigweed/+/ff6dbca30a463bd011da9e81b5a1d53a93dcf179 pw_ghish: Mark agent-written Buganizer text
648d281:https://pigweed.googlesource.com/pigweed/pigweed/+/648d281bf700b540b14d25707421c61e2f6542c7 agents: Keep crank on current main
960b045:https://pigweed.googlesource.com/pigweed/pigweed/+/960b0454a4f3270b736092547c4af69514536c4b pw_bluetooth_sapphire: Bound SDP reassembly
f4cdd25:https://pigweed.googlesource.com/pigweed/pigweed/+/f4cdd252a1f507a831b40b09abd15278c2fa241a pw_preprocessor: Add PW_HAS_BUILTIN macro
08f0524:https://pigweed.googlesource.com/pigweed/pigweed/+/08f0524f713c39d15e04539a2df0e952a888fd6b pw_async2: Migrate SelectFutureUnion to Maybe<Tuple>
39c2f2e:https://pigweed.googlesource.com/pigweed/pigweed/+/39c2f2e77dbc4e6a590c703ed43598cdb8e3a324 pw_bluetooth_proxy: Fix stale wakeup in test dispatcher
c0a9881:https://pigweed.googlesource.com/pigweed/pigweed/+/c0a988104b479823ae761417446d4784e9afbfdb pw_bluetooth_proxy: Synchronize async client channel disconnect
6c4594f:https://pigweed.googlesource.com/pigweed/pigweed/+/6c4594f1a8bbd5800f884162cbe35f49e70c0e29 pw_daq: Implement daq-lib, common, and DaqBackend
e78ed78:https://pigweed.googlesource.com/pigweed/pigweed/+/e78ed783203a5e4fe437368b88307c598db65d58 pw_ghish: Retry scheduling flows after a push
64971ea:https://pigweed.googlesource.com/pigweed/pigweed/+/64971ea30fb3db047852bead37bd82f2eb189e94 pw_bluetooth_proxy: Don't reap channels with running callbacks
8f44961:https://pigweed.googlesource.com/pigweed/pigweed/+/8f449619f72a46706cdc0ca08402430c79ae8827 docs: Recommend focused unit tests to agents
a214253:https://pigweed.googlesource.com/pigweed/pigweed/+/a21425376a1baad0ea71ffcb8c03cfdb3fdc32fe pw_status, pw_rpc, pw_transfer: Add StatusFromCodeOrUnknown
f905a80:https://pigweed.googlesource.com/pigweed/pigweed/+/f905a80e003244482d4148a34e85abf39854a444 pw_bluetooth_proxy: Synchronize client channel disconnect with callbacks
d36b1e1:https://pigweed.googlesource.com/pigweed/pigweed/+/d36b1e1ab583bb22c86ea48c2902492f00a62455 pw_module: Expand Python test coverage
12d7c07:https://pigweed.googlesource.com/pigweed/pigweed/+/12d7c075c3c149b654ae6948622688a7b4282da2 roll: go

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: 30a6a905b25486..910bad222100e8
Roll-Count: 1
Roller-URL: https://cr-buildbucket.appspot.com/build/8664386291601450385
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I03f09de3e2906a6cf813bc756a9352a749db8bcc
Reviewed-on: https://pigweed-review.googlesource.com/c/open-dice/+/536204
1 file changed
tree: e4ae461a50b00ab861147a6a795ca1588be249c9
  1. build_overrides/
  2. docs/
  3. dpe-rs/
  4. images/
  5. include/
  6. src/
  7. third_party/
  8. toolchains/
  9. tools/
  10. .clang-format
  11. .gitignore
  12. .gitmodules
  13. .gn
  14. banner.txt
  15. bootstrap.sh
  16. BUILD.gn
  17. BUILDCONFIG.gn
  18. generate_test_values.py
  19. LICENSE
  20. navbar.md
  21. OWNERS
  22. pigweed.json
  23. pyproject.toml
  24. README.md
  25. run_fuzzer.sh
  26. rustfmt.toml
README.md

Open Profile for DICE

This repository contains the specification for the Open Profile for DICE along with production-quality code. This profile is a specialization of the Hardware Requirements for a Device Identifier Composition Engine and DICE Layering Architecture specifications published by the Trusted Computing Group (TCG). For readers already familiar with those specs, notable distinctives of this profile include:

  • Separate CDIs for attestation and sealing use cases
  • Categorized inputs, including values related to verified boot
  • Certified UDS values
  • X.509 or CBOR certificates

Mailing List

You can find us (and join us!) at https://groups.google.com/g/open-profile-for-dice. We're happy to answer questions and discuss proposed changes or features.

Specification

The specification can be found here. It is versioned using a major.minor scheme. Compatibility is maintained across minor versions but not necessarily across major versions.

Code

Production quality, portable C code is included. The main code is in dice.h and dice.c. Cryptographic and certificate generation operations are injected via a set of callbacks. Multiple implementations of these operations are provided, all equally acceptable. Integrators should choose just one of these, or write their own.

Tests are included for all code and the build files in this repository can be used to build and run these tests.

Disclaimer: This is not an officially supported Google product.

Thirdparty Dependencies

Different implementations use different third party libraries. The third_party directory contains build files and git submodules for each of these. The submodules must be initialized once after cloning the repo, using git submodule update --init, and updated after pulling commits that roll the submodules using git submodule update.

Building and Running Tests

Quick setup

To setup the build environment the first time:

$ git submodule update --init --recursive
$ source bootstrap.sh
$ gn gen out

To build and run tests:

$ ninja -C out

More details

The easiest way, and currently the only supported way, to build and run tests is from a Pigweed environment on Linux. Pigweed does support other host platforms so it shouldn't be too hard to get this running on Windows for example, but we use Linux.

There are two scripts to help set this up:

  • bootstrap.sh will initialize submodules, bootstrap a Pigweed environment, and generate build files. This can take some time and may download on the order of 1GB of dependencies so the normal workflow is to just do this once.

  • activate.sh quickly reactivates an environment that has been previously bootstrapped.

These scripts must be sourced into the current session: source activate.sh.

In the environment, from the base directory of the dice-profile checkout, run ninja -C out to build everything and run all tests. You can also run pw watch which will build, run tests, and continue to watch for changes.

This will build and run tests on the host using the clang toolchain. Pigweed makes it easy to configure other targets and toolchains. See toolchains/BUILD.gn and the Pigweed documentation.

Porting

The code is designed to be portable and should work with a variety of modern toolchains and in a variety of environments. The main code in dice.h and dice.c is C99; it uses uint8_t, size_t, and memcpy from the C standard library. The various ops implementations are as portable as their dependencies (often not C99 but still very portable). Notably, this code uses designated initializers for readability. This is a feature available in C since C99 but missing from C++ until C++20 where it appears in a stricter form.

Style

The Google C++ Style Guide is used. A .clang-format file is provided for convenience.

Incorporating

To incorporate the code into another project, there are a few options:

  • Copy only the necessary code. For example:

    1. Take the main code as is: include/dice/dice.h, src/dice.c

    2. Choose an implementation for crypto and certificate generation or choose to write your own. If you choose the boringssl implementation, for example, take include/dice/utils.h, include/dice/boringssl_ops.h, src/utils.c, and src/boringssl_ops.c. Taking a look at the library targets in BUILD.gn may be helpful.

  • Add this repository as a git submodule and integrate into the project build, optionally using the gn library targets provided.

  • Integrate into a project already using Pigweed using the gn build files provided.

Size Reports

The build reports code size using Bloaty McBloatface via the pw_bloat Pigweed module. There are two reports generated:

  • Library sizes - This report includes just the library code in this repository. It shows the baseline DICE code with no ops selected, and it shows the delta introduced by choosing various ops implementations. This report does not include the size of the third party dependencies.

  • Executable sizes - This report includes sizes for the library code in this repository plus all dependencies linked into a simple main function which makes a single DICE call with all-zero input. It shows the baseline DICE code with no ops (and therefore no dependencies other than libc), and it shows the delta introduced by choosing various ops implementations. This report does include the size of the third party dependencies. Note that rows specialized from ‘Boringssl Ops’ use that as a baseline for sizing.

The reports will be in the build output, but you can also find the reports in .txt files in the build output. For example, cat out/host_optimized/gen/*.txt | less will display all reports.

Thread Safety

This code does not itself use mutable global variables, or any other type of shared data structure so there is no thread-safety concerns. However, additional care is needed to ensure dependencies are configured to be thread-safe. For example, the current boringssl configuration defines OPENSSL_NO_THREADS_CORRUPT_MEMORY_AND_LEAK_SECRETS_IF_THREADED, and that would need to be changed before running in a threaded environment.

Clearing Sensitive Data

This code makes a reasonable effort to clear memory holding sensitive data. This may help with a broader strategy to clear sensitive data but it is not sufficient on its own. Here are a few things to consider.

  • The caller of this code is responsible for buffers they own (of course).
  • The ops implementations need to clear any copies they make of sensitive data. Both boringssl and mbedtls attempt to zeroize but this may need additional care to integrate correctly. For example, boringssl skips optimization prevention when OPENSSL_NO_ASM is defined (and it is currently defined).
  • Sensitive data may remain in cache.
  • Sensitive data may have been swapped out.
  • Sensitive data may be included in a crash dump.