Skip to content

Commit c875b73

Browse files
committed
Update dependencies:
* .NET 10.0 * .NET SDK 10.0.100-rc.1.25451.107 * C# 14.0 * BenchmarkDotNet 0.15.4 * Microsoft.NET.Test.Sdk 18.0.0 * System.Formats.Asn1 10.0.0-rc.1.25451.107 * System.Security.Cryptography.Xml 10.0.0-rc.1.25451.107 * xunit.v3 3.1.0 * xunit.runner.visualstudio 3.1.5
1 parent 2239181 commit c875b73

10 files changed

Lines changed: 15 additions & 23 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup .NET
2121
uses: actions/setup-dotnet@v5
2222
with:
23-
dotnet-version: 9.0.x
23+
dotnet-version: 10.0.x
2424
- name: Restore dependencies
2525
run: dotnet restore
2626
- name: Build

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Sergey Zhigunov</Authors>
55
<Copyright>Copyright © 2016 Sergey Zhigunov</Copyright>
66
<NeutralLanguage>en-US</NeutralLanguage>
7-
<LangVersion>13.0</LangVersion>
7+
<LangVersion>14.0</LangVersion>
88
<Nullable>enable</Nullable>
99
<ImplicitUsings>enable</ImplicitUsings>
1010
<VersionPrefix>0.2.2</VersionPrefix>

benchmarks/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="BenchmarkDotNet" Version="0.15.2" />
10+
<PackageReference Include="BenchmarkDotNet" Version="0.15.4" />
1111
</ItemGroup>
1212

1313
</Project>

benchmarks/OpenGost.Security.Cryptography.Benchmarks/OpenGost.Security.Cryptography.Benchmarks.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
</PropertyGroup>
77

8-
<ItemGroup>
9-
<PackageReference Include="System.Formats.Asn1" Version="9.0.4" />
10-
</ItemGroup>
11-
128
<ItemGroup>
139
<ProjectReference Include="..\..\src\OpenGost.Security.Cryptography\OpenGost.Security.Cryptography.csproj" />
1410
</ItemGroup>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.300",
3+
"version": "10.0.100-rc.1.25451.107",
44
"rollForward": "latestMinor"
55
}
66
}

src/OpenGost.Security.Cryptography/CMAC.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,8 @@ protected CMAC()
127127
/// </summary>
128128
public override void Initialize()
129129
{
130-
if (_encryptor != null)
131-
{
132-
_encryptor.Dispose();
133-
_encryptor = null;
134-
}
130+
_encryptor?.Dispose();
131+
_encryptor = null;
135132

136133
CryptoUtils.EraseData(ref _subkey1);
137134
CryptoUtils.EraseData(ref _subkey2);

src/OpenGost.Security.Cryptography/GostECDsaCertificateExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private static bool IsGostECDsa(X509Certificate2 certificate)
108108

109109
private static ECParameters ReadParameters(PublicKey publicKey)
110110
{
111-
var curve = ReadCurve(publicKey.EncodedParameters.RawData);
111+
var curve = ReadCurve(publicKey.EncodedParameters!.RawData);
112112
var publicPoint = ReadPublicKey(publicKey.EncodedKeyValue.RawData);
113113
return new ECParameters { Curve = curve, Q = publicPoint };
114114
}

src/OpenGost.Security.Cryptography/OpenGost.Security.Cryptography.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0</TargetFrameworks>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<Description>An open-source .NET library providing the modern Russian national standard cryptographic algorithms</Description>
77
<PackageReleaseNotes>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)ReleaseNotes.txt'))</PackageReleaseNotes>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="System.Formats.Asn1" Version="9.0.0" />
11+
<PackageReference Include="System.Formats.Asn1" Version="10.0.0-rc.1.25451.107" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

tests/Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
11-
<PackageReference Include="xunit.v3" Version="3.0.0" />
12-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.3">
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
11+
<PackageReference Include="xunit.v3" Version="3.1.0" />
12+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>

tests/OpenGost.Security.Cryptography.Tests/OpenGost.Security.Cryptography.Tests.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
@@ -10,8 +10,7 @@
1010
</ItemGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="System.Formats.Asn1" Version="9.0.8" />
14-
<PackageReference Include="System.Security.Cryptography.Xml" Version="9.0.8" />
13+
<PackageReference Include="System.Security.Cryptography.Xml" Version="10.0.0-rc.1.25451.107" />
1514
</ItemGroup>
1615

1716
<ItemGroup>

0 commit comments

Comments
 (0)