From e6ba63d74b5cc990e53b6fffc84a79628549f2f3 Mon Sep 17 00:00:00 2001 From: Roselyn Coales Date: Wed, 6 Nov 2024 23:42:46 +0000 Subject: [PATCH] Update stubs to match signature of actual methods Signed-off-by: Roselyn Coales --- signature/fulcio_cert_stub.go | 2 +- signature/internal/rekor_set_stub.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/signature/fulcio_cert_stub.go b/signature/fulcio_cert_stub.go index c0b48dafa7..c0dc7b232b 100644 --- a/signature/fulcio_cert_stub.go +++ b/signature/fulcio_cert_stub.go @@ -20,7 +20,7 @@ func (f *fulcioTrustRoot) validate() error { return errors.New("fulcio disabled at compile-time") } -func verifyRekorFulcio(rekorPublicKey *ecdsa.PublicKey, fulcioTrustRoot *fulcioTrustRoot, untrustedRekorSET []byte, +func verifyRekorFulcio(rekorPublicKeys []*ecdsa.PublicKey, fulcioTrustRoot *fulcioTrustRoot, untrustedRekorSET []byte, untrustedCertificateBytes []byte, untrustedIntermediateChainBytes []byte, untrustedBase64Signature string, untrustedPayloadBytes []byte) (crypto.PublicKey, error) { return nil, errors.New("fulcio disabled at compile-time") diff --git a/signature/internal/rekor_set_stub.go b/signature/internal/rekor_set_stub.go index 7c121cc2ee..2b20bbed2e 100644 --- a/signature/internal/rekor_set_stub.go +++ b/signature/internal/rekor_set_stub.go @@ -10,6 +10,6 @@ import ( // VerifyRekorSET verifies that unverifiedRekorSET is correctly signed by publicKey and matches the rest of the data. // Returns bundle upload time on success. -func VerifyRekorSET(publicKey *ecdsa.PublicKey, unverifiedRekorSET []byte, unverifiedKeyOrCertBytes []byte, unverifiedBase64Signature string, unverifiedPayloadBytes []byte) (time.Time, error) { +func VerifyRekorSET(publicKeys []*ecdsa.PublicKey, unverifiedRekorSET []byte, unverifiedKeyOrCertBytes []byte, unverifiedBase64Signature string, unverifiedPayloadBytes []byte) (time.Time, error) { return time.Time{}, NewInvalidSignatureError("rekor disabled at compile-time") }