commit | 32ed05582bef8318206fc393241e944f97197486 | [log] [tgz] |
---|---|---|
author | Bill Richardson <wfrichar@google.com> | Wed Dec 16 17:51:25 2020 -0600 |
committer | Joseph Jang <josephjang@google.com> | Thu Jan 07 03:57:47 2021 +0000 |
tree | e0fbd8ff0cca5855e11782d07353ce1e61a25946 | |
parent | c48902225432eea26d01c6fb12f1d1bffc2efe24 [diff] |
Limit MAC sizes for ICsetAuthTokenRequest in *.options If the request attempts to send us more data than the .mac and .verificationTokenMac fields can take, it will fail in pb_decode(). Bug: 174769927 Bug: 175262410 Bug: 175116439 Test: manual, release tests Change-Id: I73d246af9b9d7c6442b2f566755e8de3499a4933 Merged-In: I73d246af9b9d7c6442b2f566755e8de3499a4933 Signed-off-by: Bill Richardson <wfrichar@google.com> Reviewed-on: https://nugget-os-review.googlesource.com/c/host/generic/+/38467 Presubmit-Verified: TreeHugger Robot Reviewed-by: Tommy Chiu <tommychiu@google.com> (cherry picked from commit 9fdbf57d57bcdde5f3e4b607b32bb793f9729a97) Reviewed-on: https://nugget-os-review.googlesource.com/c/host/generic/+/38876 Reviewed-by: Joseph Jang <josephjang@google.com>
Nugget will be used in different contexts and with different hosts. This repo contains the components that can be shared between those hosts.
nugget
The nugget
directory contains items that are shared between the host and the firmware. Those include:
libnos
libnos
is a C++ library for communication with a Nugget device. It offers an interface to manage a connection and exchange data and a generator for RPC stubs based on service protos.
libnos_datagram
libnos_datagram
is a C library for exchanging datagrams with a Nugget device. This directory only contains the API of the library as the different platforms will need to implement it differently.
libnos_transport
libnos_transport
is a C library for communicating with a Nugget device via the transport API. This is built on top of the libnos_datagram
library for exchanging datagrams.