mirror of
https://github.com/containers/image.git
synced 2025-04-18 19:44:05 +03:00
15 lines
533 B
Go
15 lines
533 B
Go
//go:build containers_image_rekor_stub
|
|
|
|
package internal
|
|
|
|
import (
|
|
"crypto/ecdsa"
|
|
"time"
|
|
)
|
|
|
|
// VerifyRekorSET verifies that unverifiedRekorSET is correctly signed by publicKey and matches the rest of the data.
|
|
// Returns bundle upload time on success.
|
|
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")
|
|
}
|