Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ jobs:
dotnet test --no-restore CoseSign1.Headers.Tests/CoseSign1.Headers.Tests.csproj
dotnet test --no-restore CoseIndirectSignature.Tests/CoseIndirectSignature.Tests.csproj
dotnet test --no-restore CoseSign1.Transparent.Tests/CoseSign1.Transparent.Tests.csproj
dotnet test --no-restore CoseSign1.Transparent.CTS.Tests/CoseSign1.Transparent.CTS.Tests.csproj
dotnet test --no-restore CoseSign1.Transparent.MST.Tests/CoseSign1.Transparent.MST.Tests.csproj
dotnet test --no-restore CoseHandler.Tests/CoseHandler.Tests.csproj
dotnet test --no-restore CoseSignTool.Tests/CoseSignTool.Tests.csproj
dotnet test --no-restore CoseSignTool.Abstractions.Tests/CoseSignTool.Abstractions.Tests.csproj
dotnet test --no-restore CoseSignTool.CTS.Plugin.Tests/CoseSignTool.CTS.Plugin.Tests.csproj
dotnet test --no-restore CoseSignTool.MST.Plugin.Tests/CoseSignTool.MST.Plugin.Tests.csproj
dotnet test --no-restore CoseSignTool.IndirectSignature.Plugin.Tests/CoseSignTool.IndirectSignature.Plugin.Tests.csproj

# List the contents of the working directory to make sure all the artifacts are there.
Expand Down Expand Up @@ -348,7 +348,7 @@ jobs:
"CoseSign1.Certificates/CoseSign1.Certificates.csproj"
"CoseSign1.Headers/CoseSign1.Headers.csproj"
"CoseSign1.Transparent/CoseSign1.Transparent.csproj"
"CoseSign1.Transparent.CTS/CoseSign1.Transparent.CTS.csproj"
"CoseSign1.Transparent.MST/CoseSign1.Transparent.MST.csproj"
"CoseSignTool.Abstractions/CoseSignTool.Abstractions.csproj"
)

Expand Down
95 changes: 48 additions & 47 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# Changelog

## [Unreleased](https://github.com/microsoft/CoseSignTool/tree/HEAD)
## [v1.6.6](https://github.com/microsoft/CoseSignTool/tree/v1.6.6) (2025-11-25)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.6.3...HEAD)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.6.4...v1.6.6)

**Merged pull requests:**

- Users/jstatia/azure trusted signing [\#148](https://github.com/microsoft/CoseSignTool/pull/148) ([JeromySt](https://github.com/JeromySt))
- Users/jstatia/package upgrades [\#145](https://github.com/microsoft/CoseSignTool/pull/145) ([JeromySt](https://github.com/JeromySt))

## [v1.6.3](https://github.com/microsoft/CoseSignTool/tree/v1.6.3) (2025-08-05)
## [v1.6.4](https://github.com/microsoft/CoseSignTool/tree/v1.6.4) (2025-08-05)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.6.5...v1.6.3)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.6.5...v1.6.4)

## [v1.6.5](https://github.com/microsoft/CoseSignTool/tree/v1.6.5) (2025-08-05)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.6.4...v1.6.5)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.6.3...v1.6.5)

## [v1.6.4](https://github.com/microsoft/CoseSignTool/tree/v1.6.4) (2025-08-05)
## [v1.6.3](https://github.com/microsoft/CoseSignTool/tree/v1.6.3) (2025-08-05)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.4-pre4...v1.6.4)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.4-pre4...v1.6.3)

## [v1.5.4-pre4](https://github.com/microsoft/CoseSignTool/tree/v1.5.4-pre4) (2025-08-05)

Expand Down Expand Up @@ -80,19 +81,19 @@

## [v1.5.4-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.5.4-pre1) (2025-07-15)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.3-pre2...v1.5.4-pre1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.4...v1.5.4-pre1)

**Merged pull requests:**

- Add KeyChain property to ICoseSigningKeyProvider and implement related concrete implementations and tests [\#136](https://github.com/microsoft/CoseSignTool/pull/136) ([JeromySt](https://github.com/JeromySt))

## [v1.5.3-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.5.3-pre2) (2025-06-05)
## [v1.5.4](https://github.com/microsoft/CoseSignTool/tree/v1.5.4) (2025-06-05)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.4...v1.5.3-pre2)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.3-pre2...v1.5.4)

## [v1.5.4](https://github.com/microsoft/CoseSignTool/tree/v1.5.4) (2025-06-05)
## [v1.5.3-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.5.3-pre2) (2025-06-05)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.3-pre1...v1.5.4)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.3-pre1...v1.5.3-pre2)

**Merged pull requests:**

Expand All @@ -112,19 +113,19 @@

## [v1.5.2-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.5.2-pre1) (2025-05-30)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.1-pre1...v1.5.2-pre1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.2...v1.5.2-pre1)

**Merged pull requests:**

- Add optional header extender support to IndirectSignatureFactory methods [\#131](https://github.com/microsoft/CoseSignTool/pull/131) ([JeromySt](https://github.com/JeromySt))

## [v1.5.1-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.5.1-pre1) (2025-05-29)
## [v1.5.2](https://github.com/microsoft/CoseSignTool/tree/v1.5.2) (2025-05-29)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.2...v1.5.1-pre1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.1-pre1...v1.5.2)

## [v1.5.2](https://github.com/microsoft/CoseSignTool/tree/v1.5.2) (2025-05-29)
## [v1.5.1-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.5.1-pre1) (2025-05-29)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.1...v1.5.2)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.5.1...v1.5.1-pre1)

**Merged pull requests:**

Expand Down Expand Up @@ -240,19 +241,19 @@

## [v1.2.8-pre3](https://github.com/microsoft/CoseSignTool/tree/v1.2.8-pre3) (2024-10-15)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.8-pre2...v1.2.8-pre3)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.8-pre1...v1.2.8-pre3)

**Merged pull requests:**

- Increase timeout for checking for empty streams [\#113](https://github.com/microsoft/CoseSignTool/pull/113) ([lemccomb](https://github.com/lemccomb))

## [v1.2.8-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.2.8-pre2) (2024-09-25)
## [v1.2.8-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.8-pre1) (2024-09-25)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.8-pre1...v1.2.8-pre2)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.8-pre2...v1.2.8-pre1)

## [v1.2.8-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.8-pre1) (2024-09-25)
## [v1.2.8-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.2.8-pre2) (2024-09-25)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.6-pre2...v1.2.8-pre1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.6-pre2...v1.2.8-pre2)

**Merged pull requests:**

Expand Down Expand Up @@ -434,15 +435,15 @@

## [v1.2.exeTest](https://github.com/microsoft/CoseSignTool/tree/v1.2.exeTest) (2024-03-06)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8-pre1...v1.2.exeTest)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.0...v1.2.exeTest)

## [v1.1.8-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.8-pre1) (2024-03-04)
## [v1.2.0](https://github.com/microsoft/CoseSignTool/tree/v1.2.0) (2024-03-04)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.0...v1.1.8-pre1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8-pre1...v1.2.0)

## [v1.2.0](https://github.com/microsoft/CoseSignTool/tree/v1.2.0) (2024-03-04)
## [v1.1.8-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.8-pre1) (2024-03-04)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8...v1.2.0)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8...v1.1.8-pre1)

**Merged pull requests:**

Expand Down Expand Up @@ -490,19 +491,19 @@

## [v1.1.6](https://github.com/microsoft/CoseSignTool/tree/v1.1.6) (2024-02-07)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.5...v1.1.6)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.4-pre1...v1.1.6)

**Merged pull requests:**

- Only hit iterator once [\#75](https://github.com/microsoft/CoseSignTool/pull/75) ([JeromySt](https://github.com/JeromySt))

## [v1.1.5](https://github.com/microsoft/CoseSignTool/tree/v1.1.5) (2024-01-31)
## [v1.1.4-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.4-pre1) (2024-01-31)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.4-pre1...v1.1.5)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.5...v1.1.4-pre1)

## [v1.1.4-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.4-pre1) (2024-01-31)
## [v1.1.5](https://github.com/microsoft/CoseSignTool/tree/v1.1.5) (2024-01-31)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.3-pre1...v1.1.4-pre1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.3-pre1...v1.1.5)

**Merged pull requests:**

Expand All @@ -514,19 +515,19 @@

## [v1.1.4](https://github.com/microsoft/CoseSignTool/tree/v1.1.4) (2024-01-26)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.2-pre1...v1.1.4)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.3...v1.1.4)

**Merged pull requests:**

- Adding Validation Option to Output Certificate Chain [\#73](https://github.com/microsoft/CoseSignTool/pull/73) ([elantiguamsft](https://github.com/elantiguamsft))

## [v1.1.2-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.2-pre1) (2024-01-24)
## [v1.1.3](https://github.com/microsoft/CoseSignTool/tree/v1.1.3) (2024-01-24)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.3...v1.1.2-pre1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.2-pre1...v1.1.3)

## [v1.1.3](https://github.com/microsoft/CoseSignTool/tree/v1.1.3) (2024-01-24)
## [v1.1.2-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.2-pre1) (2024-01-24)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.2...v1.1.3)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.2...v1.1.2-pre1)

**Merged pull requests:**

Expand All @@ -546,19 +547,19 @@

## [v1.1.1-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1-pre1) (2024-01-17)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1...v1.1.1-pre1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre7...v1.1.1-pre1)

**Merged pull requests:**

- Move CreateChangelog to after build in PR build [\#70](https://github.com/microsoft/CoseSignTool/pull/70) ([lemccomb](https://github.com/lemccomb))

## [v1.1.1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1) (2024-01-12)
## [v1.1.0-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.1.0-pre7) (2024-01-12)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre7...v1.1.1)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1...v1.1.0-pre7)

## [v1.1.0-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.1.0-pre7) (2024-01-12)
## [v1.1.1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1) (2024-01-12)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre6...v1.1.0-pre7)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre6...v1.1.1)

**Merged pull requests:**

Expand Down Expand Up @@ -623,7 +624,7 @@

## [v0.3.1-pre.10](https://github.com/microsoft/CoseSignTool/tree/v0.3.1-pre.10) (2023-10-10)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.1-pre.9...v0.3.1-pre.10)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.2...v0.3.1-pre.10)

**Merged pull requests:**

Expand All @@ -633,13 +634,13 @@
- Port changes from ADO repo to GitHub repo [\#46](https://github.com/microsoft/CoseSignTool/pull/46) ([lemccomb](https://github.com/lemccomb))
- Re-enable CodeQL [\#45](https://github.com/microsoft/CoseSignTool/pull/45) ([lemccomb](https://github.com/lemccomb))

## [v0.3.1-pre.9](https://github.com/microsoft/CoseSignTool/tree/v0.3.1-pre.9) (2023-09-28)
## [v0.3.2](https://github.com/microsoft/CoseSignTool/tree/v0.3.2) (2023-09-28)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.2...v0.3.1-pre.9)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.1-pre.9...v0.3.2)

## [v0.3.2](https://github.com/microsoft/CoseSignTool/tree/v0.3.2) (2023-09-28)
## [v0.3.1-pre.9](https://github.com/microsoft/CoseSignTool/tree/v0.3.1-pre.9) (2023-09-28)

[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.1-pre.8...v0.3.2)
[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.1-pre.8...v0.3.1-pre.9)

**Merged pull requests:**

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Transparent.CTS.Tests;
namespace CoseSign1.Transparent.MST.Tests;

using System.Formats.Cbor;
using CoseSign1.Transparent.CTS.Extensions;
using CoseSign1.Transparent.MST.Extensions;

/// <summary>
/// Unit tests for the <see cref="BinaryDataExtensions"/> class.
Expand All @@ -14,85 +14,85 @@ namespace CoseSign1.Transparent.CTS.Tests;
public class BinaryDataExtensionsTests
{
/// <summary>
/// Tests the <see cref="BinaryDataExtensions.TryGetCtsEntryId"/> method for null input.
/// Tests the <see cref="BinaryDataExtensions.TryGetMstEntryId"/> method for null input.
/// </summary>
[Test]
public void TryGetCtsEntryId_ReturnsFalse_WhenBinaryDataIsNull()
public void TryGetMstEntryId_ReturnsFalse_WhenBinaryDataIsNull()
{
// Arrange
BinaryData binaryData = null;

// Act
bool result = binaryData.TryGetCtsEntryId(out string? entryId);
bool result = binaryData.TryGetMstEntryId(out string? entryId);

// Assert
Assert.That(result, Is.False);
Assert.That(entryId, Is.EqualTo(string.Empty));
}

/// <summary>
/// Tests the <see cref="BinaryDataExtensions.TryGetCtsEntryId"/> method for valid CBOR data containing "EntryId".
/// Tests the <see cref="BinaryDataExtensions.TryGetMstEntryId"/> method for valid CBOR data containing "EntryId".
/// </summary>
[Test]
public void TryGetCtsEntryId_ReturnsTrue_WhenEntryIdIsPresent()
public void TryGetMstEntryId_ReturnsTrue_WhenEntryIdIsPresent()
{
// Arrange
string expectedEntryId = "12345";
BinaryData binaryData = CreateCborBinaryDataWithEntryId(expectedEntryId);

// Act
bool result = binaryData.TryGetCtsEntryId(out string? entryId);
bool result = binaryData.TryGetMstEntryId(out string? entryId);

// Assert
Assert.That(result, Is.True);
Assert.That(entryId, Is.EqualTo(expectedEntryId));
}

/// <summary>
/// Tests the <see cref="BinaryDataExtensions.TryGetCtsEntryId"/> method for valid CBOR data without "EntryId".
/// Tests the <see cref="BinaryDataExtensions.TryGetMstEntryId"/> method for valid CBOR data without "EntryId".
/// </summary>
[Test]
public void TryGetCtsEntryId_ReturnsFalse_WhenEntryIdIsNotPresent()
public void TryGetMstEntryId_ReturnsFalse_WhenEntryIdIsNotPresent()
{
// Arrange
BinaryData binaryData = CreateCborBinaryDataWithoutEntryId();

// Act
bool result = binaryData.TryGetCtsEntryId(out string? entryId);
bool result = binaryData.TryGetMstEntryId(out string? entryId);

// Assert
Assert.That(result, Is.False);
Assert.That(entryId, Is.EqualTo(string.Empty));
}

/// <summary>
/// Tests the <see cref="BinaryDataExtensions.TryGetCtsEntryId"/> method for invalid CBOR data.
/// Tests the <see cref="BinaryDataExtensions.TryGetMstEntryId"/> method for invalid CBOR data.
/// </summary>
[Test]
public void TryGetCtsEntryId_ReturnsFalse_WhenCborDataIsInvalid()
public void TryGetMstEntryId_ReturnsFalse_WhenCborDataIsInvalid()
{
// Arrange
BinaryData binaryData = BinaryData.FromBytes(new byte[] { 0xFF, 0xFF, 0xFF });

// Act
bool result = binaryData.TryGetCtsEntryId(out string? entryId);
bool result = binaryData.TryGetMstEntryId(out string? entryId);

// Assert
Assert.That(result, Is.False);
Assert.That(entryId, Is.EqualTo(string.Empty));
}

/// <summary>
/// Tests the <see cref="BinaryDataExtensions.TryGetCtsEntryId"/> method for CBOR data with unexpected structure.
/// Tests the <see cref="BinaryDataExtensions.TryGetMstEntryId"/> method for CBOR data with unexpected structure.
/// </summary>
[Test]
public void TryGetCtsEntryId_ReturnsFalse_WhenCborDataHasUnexpectedStructure()
public void TryGetMstEntryId_ReturnsFalse_WhenCborDataHasUnexpectedStructure()
{
// Arrange
BinaryData binaryData = CreateCborBinaryDataWithUnexpectedStructure();

// Act
bool result = binaryData.TryGetCtsEntryId(out string? entryId);
bool result = binaryData.TryGetMstEntryId(out string? entryId);

// Assert
Assert.That(result, Is.False);
Expand Down Expand Up @@ -142,3 +142,4 @@ private static BinaryData CreateCborBinaryDataWithUnexpectedStructure()
return BinaryData.FromBytes(cborWriter.Encode());
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<ItemGroup>
<ProjectReference Include="..\CoseSign1.Certificates\CoseSign1.Certificates.csproj" />
<ProjectReference Include="..\CoseSign1.Tests.Common\CoseSign1.Tests.Common.csproj" />
<ProjectReference Include="..\CoseSign1.Transparent.CTS\CoseSign1.Transparent.CTS.csproj" />
<ProjectReference Include="..\CoseSign1.Transparent.MST\CoseSign1.Transparent.MST.csproj" />
<ProjectReference Include="..\CoseSign1\CoseSign1.csproj" />
</ItemGroup>

Expand Down
Loading
Loading