-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from microsoft/users/edwinlantigua/cmd-cds-val…
…idation Command Line Validation of Indirect Signatures
- Loading branch information
Showing
13 changed files
with
333 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
namespace CoseX509; | ||
|
||
/// <summary> | ||
/// A set of COSE content validation types. Content validation refers to the method used to validate | ||
/// that the payload has not been modified. | ||
/// </summary> | ||
public enum ContentValidationType | ||
{ | ||
/// <summary> | ||
/// Indicates that validation on the content was not performed. | ||
/// </summary> | ||
ContentValidationNotPerformed = 0, | ||
|
||
/// <summary> | ||
/// Indicates validation using a detached payload. The payload is not included in the message. | ||
/// </summary> | ||
Detached = 1, | ||
|
||
/// <summary> | ||
/// Indicates validation using an embedded payload. The payload is included in the message. | ||
/// </summary> | ||
Embedded = 2, | ||
|
||
/// <summary> | ||
/// Indicates validation using an indirect payload. The payload is hashed using the algorithm in the COSE message | ||
/// and then the payload hash is compared to the embedded content. | ||
/// </summary> | ||
Indirect = 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.