Table of Contents

Interface ISignatureVerifier

Namespace
Sigstore.Crypto
Assembly
Sigstore.dll

Artifact signature verification against a leaf certificate.

public interface ISignatureVerifier

Methods

VerifyArtifactSignature(X509Certificate2, ReadOnlySpan<byte>, ReadOnlySpan<byte>, HashAlgorithmName)

Verifies signature over artifact using the leaf certificate public key.

void VerifyArtifactSignature(X509Certificate2 leafCertificate, ReadOnlySpan<byte> artifact, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm)

Parameters

leafCertificate X509Certificate2

Leaf signing certificate.

artifact ReadOnlySpan<byte>

Raw artifact bytes.

signature ReadOnlySpan<byte>

Signature bytes from the bundle.

hashAlgorithm HashAlgorithmName

Hash algorithm used with the signature scheme.