commit | 801e6cb26d7a455a20efbbef698da5e4a5e310ab | [log] [tgz] |
---|---|---|
author | Howard Yang <[email protected]> | Fri May 24 06:43:12 2024 |
committer | Chromeos LUCI <[email protected]> | Wed May 29 04:44:37 2024 |
tree | 1068dd2539be3b254c3860fd77efb71d61a08470 | |
parent | a46e4bb80db8ac552f86453740485a5db3de29ba [diff] |
spdm: Make Crypto trait unsafe The Crypto trait implementations need to uphold the invariant that Out params should be initialized after successful (returns Ok) method calls, so it should be marked as unsafe. Add some guarantees for helper functions that have the same requirements as well. BUG=b:284394614 TEST=spdm unittests Change-Id: If03f917bc40708567c3aaa9590df73774dfc1f9e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/spdm/+/5568549 Reviewed-by: Vadim Sukhomlinov <[email protected]> Commit-Queue: Howard Yang <[email protected]> Tested-by: Howard Yang <[email protected]>