From 215db1de522a98ede8adbd3f86ef3b280b658635 Mon Sep 17 00:00:00 2001 From: Jannik Date: Sat, 20 May 2023 00:00:09 +0200 Subject: [PATCH 01/34] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab60687..af18409 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ Library version 0.7.0 introduces a normal mode and a legacy mode for secrets. Th *Why was the normal mode introduced?* -The normal mode supports positive secret values and also negative secret values like negative integer numbers or byte arrays with most significant byte greater than 0x7F. The legacy mode generates shares that can't be used to reconstruct negative secret values. So the original secret and the reconstructed secret aren't identical for negative secret values (e.g. `BigInetger secret = -2000`). The legacy mode only returns correct results for positive secret values. +The normal mode supports positive secret values and also negative secret values like negative integer numbers or byte arrays with most significant byte greater than 0x7F. The legacy mode generates shares that can't be used to reconstruct negative secret values. So the original secret and the reconstructed secret aren't identical for negative secret values (e.g. `BigInteger secret = -2000`). The legacy mode only returns correct results for positive secret values. *Mode overview* From ab1e694352fd5774a935325699789fe3b1be69bb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 May 2023 14:15:32 +0000 Subject: [PATCH 02/34] Bump Microsoft.TestPlatform.ObjectModel from 17.5.0 to 17.6.0 Bumps [Microsoft.TestPlatform.ObjectModel](https://github.com/microsoft/vstest) from 17.5.0 to 17.6.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.5.0...v17.6.0) --- updated-dependencies: - dependency-name: Microsoft.TestPlatform.ObjectModel dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNetTest.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index b19dd97..550da4e 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -11,7 +11,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive From f4302e998bd60a59be06bcd28ba1a077c2fcf784 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 May 2023 17:39:32 +0000 Subject: [PATCH 03/34] Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.5.0 to 17.6.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.5.0...v17.6.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNet6Test.csproj | 2 +- tests/SecretSharingDotNet7Test.csproj | 2 +- tests/SecretSharingDotNetTest.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SecretSharingDotNet6Test.csproj b/tests/SecretSharingDotNet6Test.csproj index eda411f..c600b52 100644 --- a/tests/SecretSharingDotNet6Test.csproj +++ b/tests/SecretSharingDotNet6Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNet7Test.csproj b/tests/SecretSharingDotNet7Test.csproj index 7feda12..d833272 100644 --- a/tests/SecretSharingDotNet7Test.csproj +++ b/tests/SecretSharingDotNet7Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 550da4e..afe4ec6 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -10,7 +10,7 @@ - + From 549a8285d57c5a072fad6950e8d30ae463d6e600 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 May 2023 14:03:47 +0000 Subject: [PATCH 04/34] Bump actions/setup-dotnet from 3.0.3 to 3.2.0 Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3.0.3 to 3.2.0. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](https://github.com/actions/setup-dotnet/compare/v3.0.3...v3.2.0) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/dotnet.yml | 2 +- .github/workflows/dotnetall.yml | 4 ++-- .github/workflows/publishing.yml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2e17263..d1b3378 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,12 +42,12 @@ jobs: uses: actions/checkout@v3 - name: Setup .NET 6 - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3.2.0 with: dotnet-version: 6.0.100 - name: Setup .NET 7 - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3.2.0 with: dotnet-version: 7.0.100 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index baebc4c..d8bf20c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,7 +23,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Setup .NET Core - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3.2.0 with: dotnet-version: ${{ matrix.dotnet }} - name: Build with dotnet SDK v6.0 diff --git a/.github/workflows/dotnetall.yml b/.github/workflows/dotnetall.yml index dab1890..4293d36 100644 --- a/.github/workflows/dotnetall.yml +++ b/.github/workflows/dotnetall.yml @@ -19,12 +19,12 @@ jobs: - uses: actions/checkout@v3 - name: Setup .NET 6 - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3.2.0 with: dotnet-version: 6.0.100 - name: Setup .NET 7 - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3.2.0 with: dotnet-version: 7.0.100 diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml index b84e712..15c32a8 100644 --- a/.github/workflows/publishing.yml +++ b/.github/workflows/publishing.yml @@ -17,12 +17,12 @@ jobs: - uses: actions/checkout@v3 - name: Setup .NET 6 - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3.2.0 with: dotnet-version: 6.0.100 - name: Setup .NET 7 - uses: actions/setup-dotnet@v3.0.3 + uses: actions/setup-dotnet@v3.2.0 with: dotnet-version: 7.0.100 From ebb68a12a6b9fcca3975f05b573a99a0f9c2cafc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 13:46:22 +0000 Subject: [PATCH 05/34] Bump xunit.analyzers from 1.1.0 to 1.2.0 Bumps [xunit.analyzers](https://github.com/xunit/xunit.analyzers) from 1.1.0 to 1.2.0. - [Commits](https://github.com/xunit/xunit.analyzers/compare/1.1.0...1.2.0) --- updated-dependencies: - dependency-name: xunit.analyzers dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNetFx4.6.2Test.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SecretSharingDotNetFx4.6.2Test.csproj b/tests/SecretSharingDotNetFx4.6.2Test.csproj index 86ac62d..11a3946 100644 --- a/tests/SecretSharingDotNetFx4.6.2Test.csproj +++ b/tests/SecretSharingDotNetFx4.6.2Test.csproj @@ -1,4 +1,4 @@ - + @@ -73,7 +73,7 @@ 2.4.2 - 1.1.0 + 1.2.0 2.4.2 From 07cf51fba67310a7549e0d3c58e8de53ce887bb6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Jul 2023 21:52:00 +0000 Subject: [PATCH 06/34] Bump xunit.runner.console from 2.4.2 to 2.5.0 Bumps [xunit.runner.console](https://github.com/xunit/xunit) from 2.4.2 to 2.5.0. - [Commits](https://github.com/xunit/xunit/compare/2.4.2...2.5.0) --- updated-dependencies: - dependency-name: xunit.runner.console dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNetFx4.6.2Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetFx4.6.2Test.csproj b/tests/SecretSharingDotNetFx4.6.2Test.csproj index 11a3946..b058438 100644 --- a/tests/SecretSharingDotNetFx4.6.2Test.csproj +++ b/tests/SecretSharingDotNetFx4.6.2Test.csproj @@ -76,7 +76,7 @@ 1.2.0 - 2.4.2 + 2.5.0 runtime; build; native; contentfiles; analyzers; buildtransitive all From 88813edeeb51c0f71d8b0733306bc16d95736579 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sat, 29 Jul 2023 00:22:30 +0200 Subject: [PATCH 07/34] SecretSharingDotNetFx4.6.2Test.csproj: Fix XunitConsole462Path Resolves: No entry --- tests/SecretSharingDotNetFx4.6.2Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetFx4.6.2Test.csproj b/tests/SecretSharingDotNetFx4.6.2Test.csproj index b058438..2636478 100644 --- a/tests/SecretSharingDotNetFx4.6.2Test.csproj +++ b/tests/SecretSharingDotNetFx4.6.2Test.csproj @@ -12,7 +12,7 @@ v4.6.2 512 true - $(NuGetPackageRoot)xunit.runner.console\2.4.2\tools\net462\xunit.console.x86.exe + $(NuGetPackageRoot)xunit.runner.console\2.5.0\tools\net462\xunit.console.x86.exe "$(XunitConsole462Path)" From 70b370511b06b07678814fdf0e6b4e3c3e15f186 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Jul 2023 22:39:25 +0000 Subject: [PATCH 08/34] Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.5 to 2.5.0. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/v2.4.5...2.5.0) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNet6Test.csproj | 2 +- tests/SecretSharingDotNet7Test.csproj | 2 +- tests/SecretSharingDotNetFx4.6.2Test.csproj | 2 +- tests/SecretSharingDotNetTest.csproj | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/SecretSharingDotNet6Test.csproj b/tests/SecretSharingDotNet6Test.csproj index c600b52..e69302f 100644 --- a/tests/SecretSharingDotNet6Test.csproj +++ b/tests/SecretSharingDotNet6Test.csproj @@ -12,7 +12,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/SecretSharingDotNet7Test.csproj b/tests/SecretSharingDotNet7Test.csproj index d833272..00da0fe 100644 --- a/tests/SecretSharingDotNet7Test.csproj +++ b/tests/SecretSharingDotNet7Test.csproj @@ -12,7 +12,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/SecretSharingDotNetFx4.6.2Test.csproj b/tests/SecretSharingDotNetFx4.6.2Test.csproj index 2636478..c7d3069 100644 --- a/tests/SecretSharingDotNetFx4.6.2Test.csproj +++ b/tests/SecretSharingDotNetFx4.6.2Test.csproj @@ -81,7 +81,7 @@ all - 2.4.5 + 2.5.0 runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index afe4ec6..d1bf3eb 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -13,7 +13,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all From b7c3213b9facf602331147cfe4c9ff566abb8167 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Jul 2023 22:49:23 +0000 Subject: [PATCH 09/34] Bump Microsoft.TestPlatform.ObjectModel from 17.6.0 to 17.6.3 Bumps [Microsoft.TestPlatform.ObjectModel](https://github.com/microsoft/vstest) from 17.6.0 to 17.6.3. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.6.0...v17.6.3) --- updated-dependencies: - dependency-name: Microsoft.TestPlatform.ObjectModel dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNetTest.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index d1bf3eb..66ee80d 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -11,7 +11,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive From 29f54c832f97e7be834d8ad064c5b909aa94ae80 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Jul 2023 22:56:00 +0000 Subject: [PATCH 10/34] Bump Microsoft.NET.Test.Sdk from 17.6.0 to 17.6.3 Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.6.0 to 17.6.3. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.6.0...v17.6.3) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNet6Test.csproj | 2 +- tests/SecretSharingDotNet7Test.csproj | 2 +- tests/SecretSharingDotNetTest.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SecretSharingDotNet6Test.csproj b/tests/SecretSharingDotNet6Test.csproj index e69302f..afb5755 100644 --- a/tests/SecretSharingDotNet6Test.csproj +++ b/tests/SecretSharingDotNet6Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNet7Test.csproj b/tests/SecretSharingDotNet7Test.csproj index 00da0fe..2a4b77a 100644 --- a/tests/SecretSharingDotNet7Test.csproj +++ b/tests/SecretSharingDotNet7Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 66ee80d..075a966 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -10,7 +10,7 @@ - + From 920a61cf6f562766f6f762eb1871fc1049ea7ec0 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sat, 29 Jul 2023 01:17:16 +0200 Subject: [PATCH 11/34] SecretSharingDotNet*Test.csproj: Update Xunit version to 2.5.0 Resolves: No entry --- tests/SecretSharingDotNet6Test.csproj | 2 +- tests/SecretSharingDotNet7Test.csproj | 2 +- tests/SecretSharingDotNetTest.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SecretSharingDotNet6Test.csproj b/tests/SecretSharingDotNet6Test.csproj index afb5755..46cf824 100644 --- a/tests/SecretSharingDotNet6Test.csproj +++ b/tests/SecretSharingDotNet6Test.csproj @@ -11,7 +11,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/SecretSharingDotNet7Test.csproj b/tests/SecretSharingDotNet7Test.csproj index 2a4b77a..26d4432 100644 --- a/tests/SecretSharingDotNet7Test.csproj +++ b/tests/SecretSharingDotNet7Test.csproj @@ -11,7 +11,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 075a966..619abe9 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -12,7 +12,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all From 337ff2c29ee7f69de5ef7740d5cc4d7eb4d713c5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 13:52:56 +0000 Subject: [PATCH 12/34] Bump xunit from 2.4.2 to 2.5.0 Bumps [xunit](https://github.com/xunit/xunit) from 2.4.2 to 2.5.0. - [Commits](https://github.com/xunit/xunit/compare/2.4.2...2.5.0) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNetFx4.6.2Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetFx4.6.2Test.csproj b/tests/SecretSharingDotNetFx4.6.2Test.csproj index c7d3069..34a6773 100644 --- a/tests/SecretSharingDotNetFx4.6.2Test.csproj +++ b/tests/SecretSharingDotNetFx4.6.2Test.csproj @@ -70,7 +70,7 @@ - 2.4.2 + 2.5.0 1.2.0 From ce9d622c019876ecb33931299bca1379af03aa56 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Aug 2023 13:18:02 +0000 Subject: [PATCH 13/34] Bump Microsoft.TestPlatform.ObjectModel from 17.6.3 to 17.7.0 Bumps [Microsoft.TestPlatform.ObjectModel](https://github.com/microsoft/vstest) from 17.6.3 to 17.7.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.6.3...v17.7.0) --- updated-dependencies: - dependency-name: Microsoft.TestPlatform.ObjectModel dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNetTest.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 619abe9..178804c 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -11,7 +11,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive From 6a24d47b7811f20aa541c13d5d5f0ec64db8374d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Aug 2023 19:32:43 +0000 Subject: [PATCH 14/34] Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.0 Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.6.3 to 17.7.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.6.3...v17.7.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNet6Test.csproj | 2 +- tests/SecretSharingDotNet7Test.csproj | 2 +- tests/SecretSharingDotNetTest.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SecretSharingDotNet6Test.csproj b/tests/SecretSharingDotNet6Test.csproj index 46cf824..c662410 100644 --- a/tests/SecretSharingDotNet6Test.csproj +++ b/tests/SecretSharingDotNet6Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNet7Test.csproj b/tests/SecretSharingDotNet7Test.csproj index 26d4432..0ef7388 100644 --- a/tests/SecretSharingDotNet7Test.csproj +++ b/tests/SecretSharingDotNet7Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 178804c..e26f09d 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -10,7 +10,7 @@ - + From d5eb809dd047f57ea6a1148320f50b91dc9b8984 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sat, 27 May 2023 19:02:13 +0200 Subject: [PATCH 15/34] FinitePoint: Maintenance Modernize FinitePoint class code for usage with .NET 6 or higher. Resolves: No entry --- .../{FinitePoint.cs => FinitePoint`1.cs} | 56 +++++++++++++-- src/Cryptography/SharedSeparator.cs | 47 +++++++++++++ src/SecretSharingDotNetFx4.6.2.csproj | 3 +- tests/FinitePointTest.cs | 69 ++++++++++++++++--- 4 files changed, 158 insertions(+), 17 deletions(-) rename src/Cryptography/{FinitePoint.cs => FinitePoint`1.cs} (86%) create mode 100644 src/Cryptography/SharedSeparator.cs diff --git a/src/Cryptography/FinitePoint.cs b/src/Cryptography/FinitePoint`1.cs similarity index 86% rename from src/Cryptography/FinitePoint.cs rename to src/Cryptography/FinitePoint`1.cs index 327aabb..39540ef 100644 --- a/src/Cryptography/FinitePoint.cs +++ b/src/Cryptography/FinitePoint`1.cs @@ -1,9 +1,9 @@ // ---------------------------------------------------------------------------- -// -// Copyright (c) 2019 All Rights Reserved +// +// Copyright (c) 2023 All Rights Reserved // // Sebastian Walther -// 04/20/2019 10:52:28 PM +// 05/27/2023 06:05:12 PM // ---------------------------------------------------------------------------- #region License @@ -36,7 +36,11 @@ namespace SecretSharingDotNet.Cryptography using System.Collections.Generic; using System.Globalization; using System.Linq; +#if !NET6_0_OR_GREATER using System.Text; +#else + using System.Runtime.CompilerServices; +#endif /// /// Represents the support point of the polynomial @@ -73,17 +77,33 @@ public FinitePoint(Calculator x, ICollection> polyn /// /// string representation of the struct /// is +#if NET6_0_OR_GREATER + public FinitePoint(ReadOnlySpan serialized) +#else public FinitePoint(string serialized) +#endif { +#if NET6_0_OR_GREATER + if (serialized == null || serialized.IsEmpty) +#else if (string.IsNullOrWhiteSpace(serialized)) +#endif { throw new ArgumentNullException(nameof(serialized)); } - string[] s = serialized.Split('-'); +#if NET6_0_OR_GREATER + var xReadOnlySpan = serialized[..serialized.IndexOf(SharedSeparator.CoordinateSeparator)]; + var yReadOnlySpan = serialized[(serialized.IndexOf(SharedSeparator.CoordinateSeparator) + 1)..]; + var numberType = typeof(TNumber); + this.x = Calculator.Create(ToByteArray(xReadOnlySpan), numberType) as Calculator; + this.y = Calculator.Create(ToByteArray(yReadOnlySpan), numberType) as Calculator; +#else + string[] s = serialized.Split(SharedSeparator.CoordinateSeparatorArray); var numberType = typeof(TNumber); this.x = Calculator.Create(ToByteArray(s[0]), numberType) as Calculator; this.y = Calculator.Create(ToByteArray(s[1]), numberType) as Calculator; +#endif } /// @@ -95,6 +115,16 @@ public FinitePoint(string serialized) [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x")] public FinitePoint(Calculator x, Calculator y) { + if (x == null) + { + throw new ArgumentNullException(nameof(x)); + } + + if (y == null) + { + throw new ArgumentNullException(nameof(y)); + } + this.x = x; this.y = y; } @@ -196,7 +226,7 @@ public override bool Equals(object obj) /// Returns the string representation of the structure. /// /// - public override string ToString() => string.Format(CultureInfo.InvariantCulture, "{0}-{1}", ToHexString(this.x.ByteRepresentation), ToHexString(this.y.ByteRepresentation)); + public override string ToString() => string.Format(CultureInfo.InvariantCulture, "{0}{1}{2}", ToHexString(this.x.ByteRepresentation), SharedSeparator.CoordinateSeparator.ToString(), ToHexString(this.y.ByteRepresentation)); /// /// Evaluates polynomial (coefficient tuple) at x, used to generate a shamir pool. @@ -225,8 +255,14 @@ private static Calculator Evaluate(IEnumerable> pol /// /// Based on discussion on stackoverflow /// +#if NET6_0_OR_GREATER + [MethodImpl(MethodImplOptions.AggressiveInlining)] +#endif private static string ToHexString(IEnumerable bytes) { +#if NET6_0_OR_GREATER + return Convert.ToHexString(bytes as byte[] ?? bytes.ToArray()); +#else byte[] byteArray = bytes as byte[] ?? bytes.ToArray(); var hexRepresentation = new StringBuilder(byteArray.Length * 2); foreach (byte b in byteArray) @@ -236,6 +272,7 @@ private static string ToHexString(IEnumerable bytes) } return hexRepresentation.ToString(); +#endif } /// @@ -243,8 +280,16 @@ private static string ToHexString(IEnumerable bytes) /// /// hexadecimal string /// Returns a byte array +#if NET6_0_OR_GREATER + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static byte[] ToByteArray(ReadOnlySpan hexString) +#else private static byte[] ToByteArray(string hexString) +#endif { +#if NET6_0_OR_GREATER + return Convert.FromHexString(hexString); +#else byte[] bytes = new byte[hexString.Length / 2]; var hexValues = Array.AsReadOnly(new[] { @@ -280,6 +325,7 @@ private static byte[] ToByteArray(string hexString) } return bytes; +#endif } } } diff --git a/src/Cryptography/SharedSeparator.cs b/src/Cryptography/SharedSeparator.cs new file mode 100644 index 0000000..7b387ae --- /dev/null +++ b/src/Cryptography/SharedSeparator.cs @@ -0,0 +1,47 @@ +// ---------------------------------------------------------------------------- +// +// Copyright (c) 2023 All Rights Reserved +// +// Sebastian Walther +// 05/27/2023 06:05:12 PM +// ---------------------------------------------------------------------------- + +#region License +// ---------------------------------------------------------------------------- +// Copyright 2019 Sebastian Walther +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +#endregion + +namespace SecretSharingDotNet.Cryptography +{ + internal static class SharedSeparator + { + /// + /// The separator between the X and Y coordinate + /// + internal const char CoordinateSeparator = '-'; + + /// + /// Separator array for method usage to avoid allocation of a new array. + /// + internal static readonly char[] CoordinateSeparatorArray = { CoordinateSeparator }; + } + +} \ No newline at end of file diff --git a/src/SecretSharingDotNetFx4.6.2.csproj b/src/SecretSharingDotNetFx4.6.2.csproj index f63ac0e..f6e3671 100644 --- a/src/SecretSharingDotNetFx4.6.2.csproj +++ b/src/SecretSharingDotNetFx4.6.2.csproj @@ -44,11 +44,12 @@ - + + diff --git a/tests/FinitePointTest.cs b/tests/FinitePointTest.cs index b18ed8a..a9a8d28 100644 --- a/tests/FinitePointTest.cs +++ b/tests/FinitePointTest.cs @@ -1,9 +1,9 @@ // ---------------------------------------------------------------------------- // -// Copyright (c) 2019 All Rights Reserved +// Copyright (c) 2023 All Rights Reserved // // Sebastian Walther -// 04/20/2019 10:52:28 PM +// 05/27/2023 06:05:12 PM // ---------------------------------------------------------------------------- #region License @@ -31,26 +31,73 @@ namespace SecretSharingDotNet.Test { - using System.Linq; using System.Numerics; using Cryptography; - using Math; using Xunit; public class FinitePointTest { + private const string FinitePointTextRepresentation1 = "01-2929AA3E809003D578AA69B1C3E6F62C517437FEFBAD5BFBB240"; + private const string FinitePointTextRepresentation2 = "02-665C74ED38FDFF095B2FC9319A272A75"; + /// /// Check to conversion and vice vera. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")] + [Theory] + [InlineData(FinitePointTextRepresentation1, FinitePointTextRepresentation1)] + [InlineData(FinitePointTextRepresentation2, FinitePointTextRepresentation2)] + public void ToString_FromValidFinitePoint_ReturnsCoordinatesSeparatedWithMinus(string input, string expected) + { + // Arrange + var finitePointUnderTest = new FinitePoint(input); + + // Act + string actual = finitePointUnderTest.ToString(); + + // Assert + Assert.Equal(expected, actual); + } + + [Fact] + public void CompareTo_BigFinitePointToSmallFinitePoint_ReturnsOne() + { + // Arrange + var finitePointUnder1Test = new FinitePoint(FinitePointTextRepresentation1); + var finitePointUnder2Test = new FinitePoint(FinitePointTextRepresentation2); + + // Act + int actual = finitePointUnder1Test.CompareTo(finitePointUnder2Test); + + // Assert + Assert.Equal(1, actual); + } + + [Fact] + public void CompareTo_SmallFinitePointToBigFinitePoint_ReturnsMinusOne() + { + // Arrange + var finitePointUnder1Test = new FinitePoint(FinitePointTextRepresentation1); + var finitePointUnder2Test = new FinitePoint(FinitePointTextRepresentation2); + + // Act + int actual = finitePointUnder2Test.CompareTo(finitePointUnder1Test); + + // Assert + Assert.Equal(-1, actual); + } + [Fact] - public void FinitePointToString() + public void CompareTo_FinitePointToSameFinitePoint_ReturnsZero() { - var split = new ShamirsSecretSharing(new ExtendedEuclideanAlgorithm()); - FinitePoint fp = split.MakeShares(3, 7, 500).First(); - string s1 = fp.ToString(); - string s2 = new FinitePoint(s1).ToString(); - Assert.Equal(s1, s2); + // Arrange + var finitePointUnderTest = new FinitePoint(FinitePointTextRepresentation1); + + // Act + int actual = finitePointUnderTest.CompareTo(finitePointUnderTest); + + // Assert + Assert.Equal(0, actual); } } -} \ No newline at end of file +} From 3f529384f7f6646f9ffc8809de014a691460bc1b Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sun, 30 Jul 2023 20:47:06 +0200 Subject: [PATCH 16/34] FinitePointTest: Extends Unit-Test ... to cover the Equals methods. Resolves: No entry --- tests/FinitePointTest.cs | 71 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/tests/FinitePointTest.cs b/tests/FinitePointTest.cs index a9a8d28..4d47475 100644 --- a/tests/FinitePointTest.cs +++ b/tests/FinitePointTest.cs @@ -7,6 +7,7 @@ // ---------------------------------------------------------------------------- #region License + // ---------------------------------------------------------------------------- // Copyright 2019 Sebastian Walther // @@ -27,6 +28,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. + #endregion namespace SecretSharingDotNet.Test @@ -99,5 +101,74 @@ public void CompareTo_FinitePointToSameFinitePoint_ReturnsZero() // Assert Assert.Equal(0, actual); } + + [Fact] + public void Equals_FinitePointToSameFinitePoint_ReturnsTrue() + { + // Arrange + var finitePointUnderTest1 = new FinitePoint(FinitePointTextRepresentation1); + var finitePointUnderTest2 = new FinitePoint(FinitePointTextRepresentation1); + + // Act + bool actual = finitePointUnderTest1.Equals(finitePointUnderTest2); + + // Assert + Assert.True(actual); + } + + [Fact] + public void Equals_FinitePointToDifferentFinitePoint_ReturnsFalse() + { + // Arrange + var finitePointUnderTest1 = new FinitePoint(FinitePointTextRepresentation1); + var finitePointUnderTest2 = new FinitePoint(FinitePointTextRepresentation2); + + // Act + bool actual = finitePointUnderTest1.Equals(finitePointUnderTest2); + + // Assert + Assert.False(actual); + } + + [Fact] + public void Equals_FinitePointToNull_ReturnsFalse() + { + // Arrange + var finitePointUnderTest1 = new FinitePoint(FinitePointTextRepresentation1); + + // Act + bool actual = finitePointUnderTest1.Equals(null); + + // Assert + Assert.False(actual); + } + + [Fact] + public void Equals_FinitePointToSameFinitePointAsObject_ReturnsTrue() + { + // Arrange + var finitePointUnderTest1 = new FinitePoint(FinitePointTextRepresentation1); + object finitePointUnderTest2 = finitePointUnderTest1; + + // Act + bool actual = finitePointUnderTest1.Equals(finitePointUnderTest2); + + // Assert + Assert.True(actual); + } + + [Fact] + public void Equals_FinitePointToDifferentFinitePointAsObject_ReturnsFalse() + { + // Arrange + var finitePointUnderTest1 = new FinitePoint(FinitePointTextRepresentation1); + object finitePointUnderTest2 = new FinitePoint(FinitePointTextRepresentation2); + + // Act + bool actual = finitePointUnderTest1.Equals(finitePointUnderTest2); + + // Assert + Assert.False(actual); + } } } From b13dddad4102328a67070b2f93182f527a5aaeeb Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Fri, 11 Aug 2023 22:45:40 +0200 Subject: [PATCH 17/34] CHANGELOG.md: Section Changed, FinitePoint uses ReadOnlySpan Resolves: No entry --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8f5651..b24741a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Changed +- FinitePoint: Use `ReadOnlySpan` for `string` parameters in ctor and methods. + ## [0.10.1] - 2023-05-08 ### Fixed - Fixed BigIntCalculator's Equals method to avoid timing attacks. The slow equal implementation is used now. From 627b92f2e2227d5246a13e64e03d46e8b75b89bc Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Fri, 11 Aug 2023 23:33:36 +0200 Subject: [PATCH 18/34] FinitePoint`1.cs: Modification based on review Resolves: No entry --- src/Cryptography/FinitePoint`1.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Cryptography/FinitePoint`1.cs b/src/Cryptography/FinitePoint`1.cs index 39540ef..f6b5d9a 100644 --- a/src/Cryptography/FinitePoint`1.cs +++ b/src/Cryptography/FinitePoint`1.cs @@ -282,14 +282,10 @@ private static string ToHexString(IEnumerable bytes) /// Returns a byte array #if NET6_0_OR_GREATER [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static byte[] ToByteArray(ReadOnlySpan hexString) + private static byte[] ToByteArray(ReadOnlySpan hexString) => Convert.FromHexString(hexString); #else private static byte[] ToByteArray(string hexString) -#endif { -#if NET6_0_OR_GREATER - return Convert.FromHexString(hexString); -#else byte[] bytes = new byte[hexString.Length / 2]; var hexValues = Array.AsReadOnly(new[] { @@ -325,7 +321,7 @@ private static byte[] ToByteArray(string hexString) } return bytes; -#endif } +#endif } } From fb001db74e9740a1121380f0e61b74f303fe35bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20M?= Date: Mon, 21 Aug 2023 15:41:40 +0200 Subject: [PATCH 19/34] Fix NETSDK1187 warning --- .../{ErrorMessages.de-de.resx => ErrorMessages.de-DE.resx} | 0 src/SecretSharingDotNetFx4.6.2.csproj | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/Resources/{ErrorMessages.de-de.resx => ErrorMessages.de-DE.resx} (100%) diff --git a/src/Resources/ErrorMessages.de-de.resx b/src/Resources/ErrorMessages.de-DE.resx similarity index 100% rename from src/Resources/ErrorMessages.de-de.resx rename to src/Resources/ErrorMessages.de-DE.resx diff --git a/src/SecretSharingDotNetFx4.6.2.csproj b/src/SecretSharingDotNetFx4.6.2.csproj index f6e3671..415ebf8 100644 --- a/src/SecretSharingDotNetFx4.6.2.csproj +++ b/src/SecretSharingDotNetFx4.6.2.csproj @@ -72,7 +72,7 @@ - + From 2a6e94406b1a22725b6f2a53a9e9ded168ef9a23 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 20:46:20 +0000 Subject: [PATCH 20/34] Bump Microsoft.TestPlatform.ObjectModel from 17.7.0 to 17.7.1 Bumps [Microsoft.TestPlatform.ObjectModel](https://github.com/microsoft/vstest) from 17.7.0 to 17.7.1. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.7.0...v17.7.1) --- updated-dependencies: - dependency-name: Microsoft.TestPlatform.ObjectModel dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNetTest.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index e26f09d..819aa7b 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -11,7 +11,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive From 227cd6c209b275750d3e1e6e7579d217f7309961 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 20:53:40 +0000 Subject: [PATCH 21/34] Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.1 Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.7.0 to 17.7.1. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.7.0...v17.7.1) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNet6Test.csproj | 2 +- tests/SecretSharingDotNet7Test.csproj | 2 +- tests/SecretSharingDotNetTest.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SecretSharingDotNet6Test.csproj b/tests/SecretSharingDotNet6Test.csproj index c662410..5476b58 100644 --- a/tests/SecretSharingDotNet6Test.csproj +++ b/tests/SecretSharingDotNet6Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNet7Test.csproj b/tests/SecretSharingDotNet7Test.csproj index 0ef7388..83b1de3 100644 --- a/tests/SecretSharingDotNet7Test.csproj +++ b/tests/SecretSharingDotNet7Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 819aa7b..4ca399f 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -10,7 +10,7 @@ - + From b15360cfaa4f6fac115ab6a2e5534bc3cbb49d0f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:17:27 +0000 Subject: [PATCH 22/34] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/dotnet.yml | 2 +- .github/workflows/dotnetall.yml | 2 +- .github/workflows/dotnetfx.yml | 2 +- .github/workflows/publishing.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d1b3378..1d4d2c1 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d8bf20c..f7824c7 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,7 +21,7 @@ jobs: name: Dotnet ${{ matrix.dotnet }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET Core uses: actions/setup-dotnet@v3.2.0 with: diff --git a/.github/workflows/dotnetall.yml b/.github/workflows/dotnetall.yml index 4293d36..25dc0da 100644 --- a/.github/workflows/dotnetall.yml +++ b/.github/workflows/dotnetall.yml @@ -16,7 +16,7 @@ jobs: env: DOTNET_CLI_TELEMETRY_OPTOUT: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 diff --git a/.github/workflows/dotnetfx.yml b/.github/workflows/dotnetfx.yml index 31c074c..3cf39c0 100644 --- a/.github/workflows/dotnetfx.yml +++ b/.github/workflows/dotnetfx.yml @@ -16,7 +16,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Nuget.exe uses: nuget/setup-nuget@v1.2.0 diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml index 15c32a8..d6ab123 100644 --- a/.github/workflows/publishing.yml +++ b/.github/workflows/publishing.yml @@ -14,7 +14,7 @@ jobs: env: DOTNET_CLI_TELEMETRY_OPTOUT: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 From 35028fb16fd86956a9ee35b7ff5bce9d5f2c59d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:25:46 +0000 Subject: [PATCH 23/34] Bump Microsoft.TestPlatform.ObjectModel from 17.7.1 to 17.7.2 Bumps [Microsoft.TestPlatform.ObjectModel](https://github.com/microsoft/vstest) from 17.7.1 to 17.7.2. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.7.1...v17.7.2) --- updated-dependencies: - dependency-name: Microsoft.TestPlatform.ObjectModel dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNetTest.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 4ca399f..c29b108 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -11,7 +11,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive From 84b990bc83720eb069ae4376cd1bb2960f1d432d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:26:02 +0000 Subject: [PATCH 24/34] Bump Microsoft.NET.Test.Sdk from 17.7.1 to 17.7.2 Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.7.1 to 17.7.2. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.7.1...v17.7.2) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tests/SecretSharingDotNet6Test.csproj | 2 +- tests/SecretSharingDotNet7Test.csproj | 2 +- tests/SecretSharingDotNetTest.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SecretSharingDotNet6Test.csproj b/tests/SecretSharingDotNet6Test.csproj index 5476b58..de5b0b6 100644 --- a/tests/SecretSharingDotNet6Test.csproj +++ b/tests/SecretSharingDotNet6Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNet7Test.csproj b/tests/SecretSharingDotNet7Test.csproj index 83b1de3..6cec265 100644 --- a/tests/SecretSharingDotNet7Test.csproj +++ b/tests/SecretSharingDotNet7Test.csproj @@ -10,7 +10,7 @@ - + all diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 4ca399f..ff76174 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -10,7 +10,7 @@ - + From 86fa87fec80d5145e09d563c21314595c12a228e Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sat, 9 Sep 2023 21:35:54 +0200 Subject: [PATCH 25/34] SecretSharingDotNetTest.csproj: TargetFrameworks w/o .NET FX Workaround for the following issues with the Microsoft.TestPlatform.ObjectModel package: - https://github.com/microsoft/vstest/issues/4549 - https://github.com/microsoft/vstest/issues/4671 - https://github.com/microsoft/vstest/issues/4627 Resolves: No entry --- tests/SecretSharingDotNetTest.csproj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index b64e0d6..3d94c3e 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -1,7 +1,12 @@ - net462;net47;net471;net472;net48;net6.0;net7.0 + net6.0;net7.0 + + + + + ..\src\SecretSharingDotNet.snk True false From 369954502d2f02a23830f20fa7cb09e4dc4b2ea2 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Fri, 8 Sep 2023 23:56:22 +0200 Subject: [PATCH 26/34] *.yml: Upodate .NET version 6.0.100 to 6.0.413 Resolves: No entry --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/dotnet.yml | 6 +++--- .github/workflows/dotnetall.yml | 4 ++-- .github/workflows/publishing.yml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 1d4d2c1..4c1f1c9 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -44,7 +44,7 @@ jobs: - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 6.0.100 + dotnet-version: 6.0.413 - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 @@ -53,7 +53,7 @@ jobs: - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.100/6.0.100}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.100/6.0.413}/* $DOTNET_ROOT/ # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f7824c7..8651b35 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,7 +17,7 @@ jobs: DOTNET_CLI_TELEMETRY_OPTOUT: true strategy: matrix: - dotnet: [ '6.0.100', '7.0.100' ] + dotnet: [ '6.0.413', '7.0.100' ] name: Dotnet ${{ matrix.dotnet }} steps: @@ -27,10 +27,10 @@ jobs: with: dotnet-version: ${{ matrix.dotnet }} - name: Build with dotnet SDK v6.0 - if: matrix.dotnet == '6.0.100' + if: matrix.dotnet == '6.0.413' run: dotnet build --configuration Release SecretSharingDotNet6.sln - name: Test with dotnet SDK v6.0 - if: matrix.dotnet == '6.0.100' + if: matrix.dotnet == '6.0.413' run: dotnet test --configuration Release SecretSharingDotNet6.sln - name: Build with dotnet SDK v7.0 if: matrix.dotnet == '7.0.100' diff --git a/.github/workflows/dotnetall.yml b/.github/workflows/dotnetall.yml index 25dc0da..377d7c2 100644 --- a/.github/workflows/dotnetall.yml +++ b/.github/workflows/dotnetall.yml @@ -21,7 +21,7 @@ jobs: - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 6.0.100 + dotnet-version: 6.0.413 - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 @@ -30,7 +30,7 @@ jobs: - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.100/6.0.100}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.100/6.0.413}/* $DOTNET_ROOT/ - name: Restore run: dotnet restore SecretSharingDotNet.sln diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml index d6ab123..0b52641 100644 --- a/.github/workflows/publishing.yml +++ b/.github/workflows/publishing.yml @@ -19,7 +19,7 @@ jobs: - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 6.0.100 + dotnet-version: 6.0.413 - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 @@ -28,7 +28,7 @@ jobs: - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.100/6.0.100}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.100/6.0.413}/* $DOTNET_ROOT/ - name: Decrypt large secret run: ./.github/secrets/decrypt_publisher_snk.sh From fe8d525838b9d4bc8629e13042271378eb54196e Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Fri, 8 Sep 2023 23:56:22 +0200 Subject: [PATCH 27/34] *.yml: Upodate .NET version 7.0.100 to 7.0.400 Resolves: No entry --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/dotnet.yml | 6 +++--- .github/workflows/dotnetall.yml | 4 ++-- .github/workflows/publishing.yml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4c1f1c9..2e89db2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -49,11 +49,11 @@ jobs: - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 7.0.100 + dotnet-version: 7.0.400 - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.100/6.0.413}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.400/6.0.413}/* $DOTNET_ROOT/ # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 8651b35..dceac2e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,7 +17,7 @@ jobs: DOTNET_CLI_TELEMETRY_OPTOUT: true strategy: matrix: - dotnet: [ '6.0.413', '7.0.100' ] + dotnet: [ '6.0.413', '7.0.400' ] name: Dotnet ${{ matrix.dotnet }} steps: @@ -33,8 +33,8 @@ jobs: if: matrix.dotnet == '6.0.413' run: dotnet test --configuration Release SecretSharingDotNet6.sln - name: Build with dotnet SDK v7.0 - if: matrix.dotnet == '7.0.100' + if: matrix.dotnet == '7.0.400' run: dotnet build --configuration Release SecretSharingDotNet7.sln - name: Test with dotnet SDK v7.0 - if: matrix.dotnet == '7.0.100' + if: matrix.dotnet == '7.0.400' run: dotnet test --configuration Release SecretSharingDotNet7.sln diff --git a/.github/workflows/dotnetall.yml b/.github/workflows/dotnetall.yml index 377d7c2..16a732b 100644 --- a/.github/workflows/dotnetall.yml +++ b/.github/workflows/dotnetall.yml @@ -26,11 +26,11 @@ jobs: - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 7.0.100 + dotnet-version: 7.0.400 - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.100/6.0.413}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.400/6.0.413}/* $DOTNET_ROOT/ - name: Restore run: dotnet restore SecretSharingDotNet.sln diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml index 0b52641..1de7bd1 100644 --- a/.github/workflows/publishing.yml +++ b/.github/workflows/publishing.yml @@ -24,11 +24,11 @@ jobs: - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 7.0.100 + dotnet-version: 7.0.400 - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.100/6.0.413}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.400/6.0.413}/* $DOTNET_ROOT/ - name: Decrypt large secret run: ./.github/secrets/decrypt_publisher_snk.sh From c387535c10d4455a345cab7f50dd706ec706e624 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Wed, 6 Sep 2023 21:14:45 +0200 Subject: [PATCH 28/34] SecretSharingDotNet*.csproj: Set LangVersion to 'latest' Resolves: No entry --- src/SecretSharingDotNet.csproj | 1 + src/SecretSharingDotNet6.csproj | 1 + src/SecretSharingDotNet7.csproj | 1 + tests/SecretSharingDotNet6Test.csproj | 1 + tests/SecretSharingDotNet7Test.csproj | 1 + tests/SecretSharingDotNetTest.csproj | 1 + 6 files changed, 6 insertions(+) diff --git a/src/SecretSharingDotNet.csproj b/src/SecretSharingDotNet.csproj index 65d0fa5..25a5074 100644 --- a/src/SecretSharingDotNet.csproj +++ b/src/SecretSharingDotNet.csproj @@ -4,6 +4,7 @@ SecretSharingDotNet SecretSharingDotNet Library + latest netstandard2.0;netstandard2.1;net462;net47;net471;net472;net48;net6.0;net7.0 SecretSharingDotNet.snk True diff --git a/src/SecretSharingDotNet6.csproj b/src/SecretSharingDotNet6.csproj index 71dccaa..4a17ee4 100644 --- a/src/SecretSharingDotNet6.csproj +++ b/src/SecretSharingDotNet6.csproj @@ -4,6 +4,7 @@ SecretSharingDotNetCore SecretSharingDotNet Library + latest net6.0 SecretSharingDotNet.snk True diff --git a/src/SecretSharingDotNet7.csproj b/src/SecretSharingDotNet7.csproj index 0b899da..62df2f2 100644 --- a/src/SecretSharingDotNet7.csproj +++ b/src/SecretSharingDotNet7.csproj @@ -4,6 +4,7 @@ SecretSharingDotNetCore SecretSharingDotNet Library + latest net7.0 SecretSharingDotNet.snk True diff --git a/tests/SecretSharingDotNet6Test.csproj b/tests/SecretSharingDotNet6Test.csproj index de5b0b6..6a27664 100644 --- a/tests/SecretSharingDotNet6Test.csproj +++ b/tests/SecretSharingDotNet6Test.csproj @@ -1,6 +1,7 @@ + latest net6.0 ..\src\SecretSharingDotNet.snk True diff --git a/tests/SecretSharingDotNet7Test.csproj b/tests/SecretSharingDotNet7Test.csproj index 6cec265..9c12872 100644 --- a/tests/SecretSharingDotNet7Test.csproj +++ b/tests/SecretSharingDotNet7Test.csproj @@ -1,6 +1,7 @@ + latest net7.0 ..\src\SecretSharingDotNet.snk True diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 3d94c3e..563ea62 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -1,6 +1,7 @@ + latest net6.0;net7.0 From d35e2e33aae99b4161049e0e7d64e53b0be88944 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sat, 16 Sep 2023 19:15:36 +0200 Subject: [PATCH 29/34] SecretSharingDotNetTest.csproj: Remove workaround for vstest issue #4671 Resolves: No entry --- tests/SecretSharingDotNetTest.csproj | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/SecretSharingDotNetTest.csproj b/tests/SecretSharingDotNetTest.csproj index 563ea62..7d4e333 100644 --- a/tests/SecretSharingDotNetTest.csproj +++ b/tests/SecretSharingDotNetTest.csproj @@ -3,11 +3,7 @@ latest net6.0;net7.0 - - - - - + net462;net47;net471;net472;net48;net6.0;net7.0 ..\src\SecretSharingDotNet.snk True false From ed58f22815d99a8159e3a9963ce58203f56144ec Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sat, 16 Sep 2023 19:21:31 +0200 Subject: [PATCH 30/34] *.yml: Update .NET version to 6.0.414 and 7.0.401 The new versions fix the issue #4671: https://github.com/microsoft/vstest/issues/4671 Resolves: No enty --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/dotnet.yml | 10 +++++----- .github/workflows/dotnetall.yml | 6 +++--- .github/workflows/publishing.yml | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2e89db2..b9adb03 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -44,16 +44,16 @@ jobs: - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 6.0.413 + dotnet-version: 6.0.414 - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 7.0.400 + dotnet-version: 7.0.401 - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.400/6.0.413}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.401/6.0.414}/* $DOTNET_ROOT/ # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index dceac2e..755ac79 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,7 +17,7 @@ jobs: DOTNET_CLI_TELEMETRY_OPTOUT: true strategy: matrix: - dotnet: [ '6.0.413', '7.0.400' ] + dotnet: [ '6.0.414', '7.0.401' ] name: Dotnet ${{ matrix.dotnet }} steps: @@ -27,14 +27,14 @@ jobs: with: dotnet-version: ${{ matrix.dotnet }} - name: Build with dotnet SDK v6.0 - if: matrix.dotnet == '6.0.413' + if: matrix.dotnet == '6.0.414' run: dotnet build --configuration Release SecretSharingDotNet6.sln - name: Test with dotnet SDK v6.0 - if: matrix.dotnet == '6.0.413' + if: matrix.dotnet == '6.0.414' run: dotnet test --configuration Release SecretSharingDotNet6.sln - name: Build with dotnet SDK v7.0 - if: matrix.dotnet == '7.0.400' + if: matrix.dotnet == '7.0.401' run: dotnet build --configuration Release SecretSharingDotNet7.sln - name: Test with dotnet SDK v7.0 - if: matrix.dotnet == '7.0.400' + if: matrix.dotnet == '7.0.401' run: dotnet test --configuration Release SecretSharingDotNet7.sln diff --git a/.github/workflows/dotnetall.yml b/.github/workflows/dotnetall.yml index 16a732b..12ed35b 100644 --- a/.github/workflows/dotnetall.yml +++ b/.github/workflows/dotnetall.yml @@ -21,16 +21,16 @@ jobs: - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 6.0.413 + dotnet-version: 6.0.414 - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 7.0.400 + dotnet-version: 7.0.401 - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.400/6.0.413}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.401/6.0.414}/* $DOTNET_ROOT/ - name: Restore run: dotnet restore SecretSharingDotNet.sln diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml index 1de7bd1..14e2fad 100644 --- a/.github/workflows/publishing.yml +++ b/.github/workflows/publishing.yml @@ -19,16 +19,16 @@ jobs: - name: Setup .NET 6 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 6.0.413 + dotnet-version: 6.0.414 - name: Setup .NET 7 uses: actions/setup-dotnet@v3.2.0 with: - dotnet-version: 7.0.400 + dotnet-version: 7.0.401 - name: .NET Core SxS run: | - rsync -a ${DOTNET_ROOT/7.0.400/6.0.413}/* $DOTNET_ROOT/ + rsync -a ${DOTNET_ROOT/7.0.401/6.0.414}/* $DOTNET_ROOT/ - name: Decrypt large secret run: ./.github/secrets/decrypt_publisher_snk.sh From 4f3160a1763dd07aa018f56ceb8261c1d736cd99 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sat, 9 Sep 2023 00:20:46 +0200 Subject: [PATCH 31/34] Secret.cs: Mark legacy mode as obsolete Resolves: No entry --- src/Cryptography/Secret.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Cryptography/Secret.cs b/src/Cryptography/Secret.cs index de8f722..ff69b5b 100644 --- a/src/Cryptography/Secret.cs +++ b/src/Cryptography/Secret.cs @@ -47,6 +47,7 @@ public class Secret /// Gets or sets the legacy mode on () or to be compatible with /// v0.6.0 or older. /// + [Obsolete("Legacy mode is deprecated and will be removed in the next versions.")] public static readonly ThreadLocal LegacyMode = new ThreadLocal {Value = false}; /// @@ -118,6 +119,7 @@ internal static Secret CreateRandom(Calculator prime) /// /// Creates an array from a base64 string as in version 0.6.0 or older /// + [Obsolete("Legacy mode is deprecated and will be removed in the next versions.")] protected static readonly Func FromBase64Legacy = base64 => { var bytes = Convert.FromBase64String(base64).ToList(); From 02f56515c83240193ab846ea0d4ebcc30bd43029 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sun, 10 Sep 2023 21:34:51 +0200 Subject: [PATCH 32/34] CHANGELOG.md: Section Deprecated, Secret Legacy Mode Resolves: No entry --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b24741a..62f3ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - FinitePoint: Use `ReadOnlySpan` for `string` parameters in ctor and methods. +### Deprecated +- The Secret Legacy Mode is marked as deprecated and will be removed in one of the next releases. + ## [0.10.1] - 2023-05-08 ### Fixed - Fixed BigIntCalculator's Equals method to avoid timing attacks. The slow equal implementation is used now. From c9942120ee88e3585f275e9873f47a74ad57dcd3 Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sun, 10 Sep 2023 21:38:13 +0200 Subject: [PATCH 33/34] README.md: Mark Secret Legacy Mode as deprecated Resolves: No entry --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index af18409..80f71dc 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Afterwards, use the function `Reconstruction` to re-construct the original secre The length of the shares is based on the security level. It's possible to pre-define a security level by `ctor` or the `SecurityLevel` property. The pre-defined security level will be overriden, if the secret size is greater than the Mersenne prime, which is calculated by means of the security level. It is not necessary to define a security level for a re-construction. -## Attention: Breaking change - Normal and legacy mode in v0.7.0 +## Attention: Breaking change - Normal and legacy mode in v0.7.0 [Deprecated] Library version 0.7.0 introduces a normal mode and a legacy mode for secrets. The normal mode is the new and default mode. The legacy mode is for backward compatibility. From e63a63fa37e0de4bd67b4c6a242a22d6fb98428f Mon Sep 17 00:00:00 2001 From: Sebastian Walther Date: Sat, 16 Sep 2023 20:49:18 +0200 Subject: [PATCH 34/34] Bump version to v0.10.2 Resolves: No entry --- CHANGELOG.md | 6 +++++- README.md | 12 ++++++------ src/Properties/AssemblyInfo.cs | 4 ++-- src/SecretSharingDotNet.csproj | 4 ++-- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62f3ff3..7674059 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.10.2] - 2023-09-16 ### Changed - FinitePoint: Use `ReadOnlySpan` for `string` parameters in ctor and methods. ### Deprecated - The Secret Legacy Mode is marked as deprecated and will be removed in one of the next releases. +### Fixed +- Fixed NETSDK1187 warning (see #151). Locale 'de-de' is normalized to the standard locale 'de-DE'. + ## [0.10.1] - 2023-05-08 ### Fixed - Fixed BigIntCalculator's Equals method to avoid timing attacks. The slow equal implementation is used now. @@ -189,6 +192,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `LICENSE.md` - Added `README.md` +[0.10.2]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.10.1...v0.10.2 [0.10.1]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.10.0...v0.10.1 [0.10.0]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.9.0...v0.10.0 [0.9.0]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.8.0...v0.9.0 diff --git a/README.md b/README.md index 80f71dc..0c6f1a5 100644 --- a/README.md +++ b/README.md @@ -74,9 +74,9 @@ An C# implementation of Shamir's Secret Sharing. - SecretSharingDotNet NuGet - NuGet Version 0.10.1 - Tag + SecretSharingDotNet NuGet + NuGet Version 0.10.2 + Tag Standard 2.0 @@ -110,10 +110,10 @@ An C# implementation of Shamir's Secret Sharing. 1. Open a console and switch to the directory, containing your project file. -2. Use the following command to install version 0.10.1 of the SecretSharingDotNet package: +2. Use the following command to install version 0.10.2 of the SecretSharingDotNet package: ```dotnetcli - dotnet add package SecretSharingDotNet -v 0.10.1 -f + dotnet add package SecretSharingDotNet -v 0.10.2 -f ``` 3. After the completition of the command, look at the project file to make sure that the package is successfuly installed. @@ -122,7 +122,7 @@ An C# implementation of Shamir's Secret Sharing. ```xml - + ``` ## Remove SecretSharingDotNet package diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index 47f45aa..873a112 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -15,8 +15,8 @@ [assembly: Guid("1c21b99c-2de4-4ca5-b4ce-bc95cf89369e")] -[assembly: AssemblyVersion("0.10.1")] -[assembly: AssemblyFileVersion("0.10.1")] +[assembly: AssemblyVersion("0.10.2")] +[assembly: AssemblyFileVersion("0.10.2")] [assembly: NeutralResourcesLanguage("en")] [assembly: System.CLSCompliant(true)] diff --git a/src/SecretSharingDotNet.csproj b/src/SecretSharingDotNet.csproj index 25a5074..6eea3a0 100644 --- a/src/SecretSharingDotNet.csproj +++ b/src/SecretSharingDotNet.csproj @@ -11,14 +11,14 @@ false SecretSharingDotNet MIT - Changelog: https://github.com/shinji-san/SecretSharingDotNet/blob/v0.10.1/CHANGELOG.md + Changelog: https://github.com/shinji-san/SecretSharingDotNet/blob/v0.10.2/CHANGELOG.md An C# implementation of Shamir's Secret Sharing README.md secret sharing;shamir secret sharing;cryptography https://github.com/shinji-san/SecretSharingDotNet https://github.com/shinji-san/SecretSharingDotNet git - 0.10.1 + 0.10.2 Sebastian Walther Private Person true