Add a size parameter

PiperOrigin-RevId: 403214414
This commit is contained in:
Chong Cai
2021-10-14 16:27:07 -07:00
committed by gVisor bot
parent 81f284f9d4
commit 6f4fcc4bac
+7 -3
View File
@@ -180,8 +180,12 @@ var (
// to get quote.
const SizeOfQuoteInputData = 64
// SignReport is a struct that gets signed quote from input data.
// SignReport is a struct that gets signed quote from input data. The
// serialized quote is copied to buf.
// size is an input that specifies the size of buf. When returned, it's updated
// to the size of quote.
type SignReport struct {
data [64]byte
quote []byte
data [64]byte
size uint32
buf []byte
}