From c8bfaffb4245ed712088cd90d1207f3d1a0ee370 Mon Sep 17 00:00:00 2001 From: Alexandru Macocian Date: Mon, 15 Nov 2021 22:04:18 +0100 Subject: [PATCH] Fix namespaces --- .../AesEncrypterTests.cs | 2 +- .../Sha256HashingServiceTests.cs | 2 +- .../Encryption/AesEncrypter.cs | 7 +++---- .../Encryption/ISymmetricEncrypter.cs | 2 +- .../Hashing/IHashingService.cs | 2 +- .../Hashing/Sha256HashingService.cs | 5 ++--- .../SystemExtensions.NetStandard.Security.csproj | 2 +- .../Utilities/NotClosingCryptoStream.cs | 2 +- 8 files changed, 11 insertions(+), 13 deletions(-) diff --git a/SystemExtensions.NetStandard.Security.Tests/AesEncrypterTests.cs b/SystemExtensions.NetStandard.Security.Tests/AesEncrypterTests.cs index 875dc46..bf5b5e3 100644 --- a/SystemExtensions.NetStandard.Security.Tests/AesEncrypterTests.cs +++ b/SystemExtensions.NetStandard.Security.Tests/AesEncrypterTests.cs @@ -3,9 +3,9 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.IO; using System.Security.Cryptography; +using System.Security.Encryption; using System.Text; using System.Threading.Tasks; -using SystemExtensions.NetStandard.Security.Encryption; namespace SystemExtensions.NetStandard.Security.Tests { diff --git a/SystemExtensions.NetStandard.Security.Tests/Sha256HashingServiceTests.cs b/SystemExtensions.NetStandard.Security.Tests/Sha256HashingServiceTests.cs index c0ab393..ef8eaa2 100644 --- a/SystemExtensions.NetStandard.Security.Tests/Sha256HashingServiceTests.cs +++ b/SystemExtensions.NetStandard.Security.Tests/Sha256HashingServiceTests.cs @@ -2,9 +2,9 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.IO; +using System.Security.Hashing; using System.Text; using System.Threading.Tasks; -using SystemExtensions.NetStandard.Security.Hashing; namespace SystemExtensions.NetStandard.Security.Tests { diff --git a/SystemExtensions.NetStandard.Security/Encryption/AesEncrypter.cs b/SystemExtensions.NetStandard.Security/Encryption/AesEncrypter.cs index d804e90..95cb23b 100644 --- a/SystemExtensions.NetStandard.Security/Encryption/AesEncrypter.cs +++ b/SystemExtensions.NetStandard.Security/Encryption/AesEncrypter.cs @@ -1,11 +1,10 @@ -using System; -using System.IO; +using System.IO; using System.Linq; using System.Security.Cryptography; using System.Threading.Tasks; -using SystemExtensions.NetStandard.Security.Utilities; +using System.Security.Utilities; -namespace SystemExtensions.NetStandard.Security.Encryption +namespace System.Security.Encryption { public sealed class AesEncrypter : ISymmetricEncrypter { diff --git a/SystemExtensions.NetStandard.Security/Encryption/ISymmetricEncrypter.cs b/SystemExtensions.NetStandard.Security/Encryption/ISymmetricEncrypter.cs index aa22f92..e3a7bab 100644 --- a/SystemExtensions.NetStandard.Security/Encryption/ISymmetricEncrypter.cs +++ b/SystemExtensions.NetStandard.Security/Encryption/ISymmetricEncrypter.cs @@ -1,7 +1,7 @@ using System.IO; using System.Threading.Tasks; -namespace SystemExtensions.NetStandard.Security.Encryption +namespace System.Security.Encryption { public interface ISymmetricEncrypter { diff --git a/SystemExtensions.NetStandard.Security/Hashing/IHashingService.cs b/SystemExtensions.NetStandard.Security/Hashing/IHashingService.cs index 08637e8..dce5596 100644 --- a/SystemExtensions.NetStandard.Security/Hashing/IHashingService.cs +++ b/SystemExtensions.NetStandard.Security/Hashing/IHashingService.cs @@ -1,7 +1,7 @@ using System.IO; using System.Threading.Tasks; -namespace SystemExtensions.NetStandard.Security.Hashing +namespace System.Security.Hashing { public interface IHashingService { diff --git a/SystemExtensions.NetStandard.Security/Hashing/Sha256HashingService.cs b/SystemExtensions.NetStandard.Security/Hashing/Sha256HashingService.cs index da50fbb..d03ac76 100644 --- a/SystemExtensions.NetStandard.Security/Hashing/Sha256HashingService.cs +++ b/SystemExtensions.NetStandard.Security/Hashing/Sha256HashingService.cs @@ -1,9 +1,8 @@ -using System; -using System.IO; +using System.IO; using System.Security.Cryptography; using System.Threading.Tasks; -namespace SystemExtensions.NetStandard.Security.Hashing +namespace System.Security.Hashing { public sealed class Sha256HashingService : IHashingService { diff --git a/SystemExtensions.NetStandard.Security/SystemExtensions.NetStandard.Security.csproj b/SystemExtensions.NetStandard.Security/SystemExtensions.NetStandard.Security.csproj index 16141a2..d063654 100644 --- a/SystemExtensions.NetStandard.Security/SystemExtensions.NetStandard.Security.csproj +++ b/SystemExtensions.NetStandard.Security/SystemExtensions.NetStandard.Security.csproj @@ -7,7 +7,7 @@ LICENSE true System - 1.2.0 + 1.2.1 Alexandru Macocian https://github.com/AlexMacocian/SystemExtensions diff --git a/SystemExtensions.NetStandard.Security/Utilities/NotClosingCryptoStream.cs b/SystemExtensions.NetStandard.Security/Utilities/NotClosingCryptoStream.cs index 862feb8..f166b59 100644 --- a/SystemExtensions.NetStandard.Security/Utilities/NotClosingCryptoStream.cs +++ b/SystemExtensions.NetStandard.Security/Utilities/NotClosingCryptoStream.cs @@ -1,7 +1,7 @@ using System.IO; using System.Security.Cryptography; -namespace SystemExtensions.NetStandard.Security.Utilities +namespace System.Security.Utilities { internal sealed class NotClosingCryptoStream : CryptoStream {