CcfReceiptVerifier.Verify Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Verify(Byte[], Byte[], CodeTransparencyVerificationKey) |
Verifies a CCF SCITT receipt against a signed statement using the supplied verification key. If verification fails, an exception is thrown explaining which step failed. #1 Reference: https://datatracker.ietf.org/doc/draft-ietf-scitt-architecture/ #2 Reference: https://datatracker.ietf.org/doc/draft-birkholz-cose-receipts-ccf-profile/ |
| Verify(Byte[], Byte[], CodeTransparencyVerificationKeySet) |
Verifies a CCF SCITT receipt against a signed statement. The key ID is extracted from the receipt and matched, case-sensitively, against the supplied key set. |
| Verify(Byte[], Byte[], String, ECDsa) |
Verifies a CCF SCITT receipt against a signed statement using a caller-owned ECDsa key. The supplied key ID must match the key ID in the receipt. |
Verify(Byte[], Byte[], CodeTransparencyVerificationKey)
- Source:
- CcfReceiptVerifier.cs
Verifies a CCF SCITT receipt against a signed statement using the supplied verification key. If verification fails, an exception is thrown explaining which step failed. #1 Reference: https://datatracker.ietf.org/doc/draft-ietf-scitt-architecture/ #2 Reference: https://datatracker.ietf.org/doc/draft-birkholz-cose-receipts-ccf-profile/
public static void Verify(byte[] receiptCoseSign1Bytes, byte[] signedStatementCoseSign1Bytes, Azure.Security.CodeTransparency.CodeTransparencyVerificationKey verificationKey);
static member Verify : byte[] * byte[] * Azure.Security.CodeTransparency.CodeTransparencyVerificationKey -> unit
Public Shared Sub Verify (receiptCoseSign1Bytes As Byte(), signedStatementCoseSign1Bytes As Byte(), verificationKey As CodeTransparencyVerificationKey)
Parameters
- receiptCoseSign1Bytes
- Byte[]
Receipt in COSE_Sign1 CBOR bytes.
- signedStatementCoseSign1Bytes
- Byte[]
The input signed statement bytes.
- verificationKey
- CodeTransparencyVerificationKey
The service public key used to verify the receipt.
Exceptions
verificationKey is null.
Thrown when the verification fails.
Applies to
Verify(Byte[], Byte[], CodeTransparencyVerificationKeySet)
- Source:
- CcfReceiptVerifier.cs
Verifies a CCF SCITT receipt against a signed statement. The key ID is extracted from the receipt and matched, case-sensitively, against the supplied key set.
public static void Verify(byte[] receiptCoseSign1Bytes, byte[] signedStatementCoseSign1Bytes, Azure.Security.CodeTransparency.CodeTransparencyVerificationKeySet verificationKeys);
static member Verify : byte[] * byte[] * Azure.Security.CodeTransparency.CodeTransparencyVerificationKeySet -> unit
Public Shared Sub Verify (receiptCoseSign1Bytes As Byte(), signedStatementCoseSign1Bytes As Byte(), verificationKeys As CodeTransparencyVerificationKeySet)
Parameters
- receiptCoseSign1Bytes
- Byte[]
Receipt in COSE_Sign1 CBOR bytes.
- signedStatementCoseSign1Bytes
- Byte[]
The input signed statement bytes.
- verificationKeys
- CodeTransparencyVerificationKeySet
The service public keys used to verify the receipt.
Exceptions
verificationKeys is null.
Thrown when the verification fails or no matching key is found.
Applies to
Verify(Byte[], Byte[], String, ECDsa)
- Source:
- CcfReceiptVerifier.cs
Verifies a CCF SCITT receipt against a signed statement using a caller-owned ECDsa key. The supplied key ID must match the key ID in the receipt.
public static void Verify(byte[] receiptCoseSign1Bytes, byte[] signedStatementCoseSign1Bytes, string keyId, System.Security.Cryptography.ECDsa publicKey);
static member Verify : byte[] * byte[] * string * System.Security.Cryptography.ECDsa -> unit
Public Shared Sub Verify (receiptCoseSign1Bytes As Byte(), signedStatementCoseSign1Bytes As Byte(), keyId As String, publicKey As ECDsa)
Parameters
- receiptCoseSign1Bytes
- Byte[]
Receipt in COSE_Sign1 CBOR bytes.
- signedStatementCoseSign1Bytes
- Byte[]
The input signed statement bytes.
- keyId
- String
The case-sensitive key ID that identifies publicKey.
- publicKey
- ECDsa
The caller-owned ECDSA public key used to verify the receipt.
Exceptions
keyId is null or empty.
publicKey is null.
Thrown when the verification fails.