From ddb2379fd46f0171cb2527201f8d97f7c633c450 Mon Sep 17 00:00:00 2001 From: Jatin Rawat Date: Thu, 7 Sep 2023 05:07:26 +0000 Subject: [PATCH] Rename TdxVerify function to TdxQuote in server package. --- go.mod | 2 +- go.sum | 2 ++ server/verify_tdx.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 58813ad34..7e5f23e12 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/google/go-attestation v0.4.4-0.20230613144338-a9b6eb1eb888 github.com/google/go-cmp v0.5.9 github.com/google/go-sev-guest v0.7.0 - github.com/google/go-tdx-guest v0.2.0 + github.com/google/go-tdx-guest v0.2.1-0.20230907045450-944015509c84 github.com/google/go-tpm v0.9.0 github.com/google/logger v1.1.1 google.golang.org/protobuf v1.31.0 diff --git a/go.sum b/go.sum index 253e6dce9..6a0e79661 100644 --- a/go.sum +++ b/go.sum @@ -311,6 +311,8 @@ github.com/google/go-sev-guest v0.7.0 h1:DBCABhTo7WicP27ZH/hwcCdjcmxFkxxMOQXm5hF github.com/google/go-sev-guest v0.7.0/go.mod h1:UEi9uwoPbLdKGl1QHaq1G8pfCbQ4QP0swWX4J0k6r+Q= github.com/google/go-tdx-guest v0.2.0 h1:BjZ6fFZUpdOaDondyDML/I6FS5Z9xeCxerc6ZB5v5v4= github.com/google/go-tdx-guest v0.2.0/go.mod h1:a8EIh1l5x7jmIrrOuH//xWn6y4Sk4yupwmMcJE006RI= +github.com/google/go-tdx-guest v0.2.1-0.20230907045450-944015509c84 h1:XqVJa7fVU8b+Hlhcvw49qfg0+LYcRI+V+jYUrSek848= +github.com/google/go-tdx-guest v0.2.1-0.20230907045450-944015509c84/go.mod h1:a8EIh1l5x7jmIrrOuH//xWn6y4Sk4yupwmMcJE006RI= github.com/google/go-tpm v0.9.0 h1:sQF6YqWMi+SCXpsmS3fd21oPy/vSddwZry4JnmltHVk= github.com/google/go-tpm v0.9.0/go.mod h1:FkNVkc6C+IsvDI9Jw1OveJmxGZUUaKxtrpOS47QWKfU= github.com/google/go-tspi v0.3.0 h1:ADtq8RKfP+jrTyIWIZDIYcKOMecRqNJFOew2IT0Inus= diff --git a/server/verify_tdx.go b/server/verify_tdx.go index 6047dbb53..8867e4ed2 100644 --- a/server/verify_tdx.go +++ b/server/verify_tdx.go @@ -21,5 +21,5 @@ func TdxDefaultOptions() *VerifyTdxOpts { // VerifyTdxAttestation checks that the TDX attestation quote is valid func VerifyTdxAttestation(attestation *tpb.QuoteV4, opts *VerifyTdxOpts) error { // Check that the quote contains valid signature and certificates. Do not check revocations. - return tv.TdxVerify(attestation, opts.Verification) + return tv.TdxQuote(attestation, opts.Verification) }