Skip to content

Commit

Permalink
Move more things under S.S.Cryptography.
Browse files Browse the repository at this point in the history
  • Loading branch information
vcsjones committed Feb 14, 2022
1 parent bc29dda commit ae24a8f
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System.Linq;
using Internal.Cryptography;
using Xunit;

namespace System.Security.Cryptography.X509Certificates.Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
<Compile Include="CertificateCreation\DSAX509SignatureGenerator.cs" />
<Compile Include="CertificateCreation\EccTestData.cs" />
<Compile Include="CertificateCreation\ECDsaX509SignatureGeneratorTests.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\PemEnumerator.cs"
Link="Common\Internal\Cryptography\PemEnumerator.cs" />
<Compile Include="CertificateCreation\PrivateKeyAssociationTests.cs" />
<Compile Include="CertificateCreation\RSAPkcs1X509SignatureGeneratorTests.cs" />
<Compile Include="CertificateCreation\RSAPssX509SignatureGeneratorTests.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,10 @@
Link="Common\DisableRuntimeMarshalling.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\AsymmetricAlgorithmHelpers.Der.cs"
Link="Common\Internal\Cryptography\AsymmetricAlgorithmHelpers.Der.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\BasicSymmetricCipher.cs"
Link="Common\Internal\Cryptography\BasicSymmetricCipher.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\HashProvider.cs"
Link="Common\Internal\Cryptography\HashProvider.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\Helpers.cs"
Link="Common\Internal\Cryptography\Helpers.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\PemEnumerator.cs"
Link="Common\Internal\Cryptography\PemEnumerator.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\PemKeyHelpers.cs"
Link="Common\Internal\Cryptography\PemKeyHelpers.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\ILiteSymmetricCipher.cs"
Link="Common\Internal\Cryptography\ILiteSymmetricCipher.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\SymmetricPadding.cs"
Link="Common\Internal\Cryptography\SymmetricPadding.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\UniversalCryptoTransform.cs"
Link="Common\Internal\Cryptography\UniversalCryptoTransform.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\UniversalCryptoEncryptor.cs"
Link="Common\Internal\Cryptography\UniversalCryptoEncryptor.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\UniversalCryptoDecryptor.cs"
Link="Common\Internal\Cryptography\UniversalCryptoDecryptor.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\UniversalCryptoOneShot.cs"
Link="Common\Internal\Cryptography\UniversalCryptoOneShot.cs" />
<Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHandleCache.cs"
Link="Common\Microsoft\Win32\SafeHandles\SafeHandleCache.cs" />
<Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeX509ChainHandle.cs"
Expand Down Expand Up @@ -294,6 +276,7 @@
<Compile Include="System\Security\Cryptography\AsymmetricSignatureDeformatter.cs" />
<Compile Include="System\Security\Cryptography\AsymmetricSignatureFormatter.cs" />
<Compile Include="System\Security\Cryptography\Base64Transforms.cs" />
<Compile Include="System\Security\Cryptography\BasicSymmetricCipher.cs" />
<Compile Include="System\Security\Cryptography\ChaCha20Poly1305.cs" />
<Compile Include="System\Security\Cryptography\CipherMode.cs" />
<Compile Include="System\Security\Cryptography\CngAlgorithm.cs" />
Expand Down Expand Up @@ -357,6 +340,7 @@
<Compile Include="System\Security\Cryptography\HMACSHA512.cs" />
<Compile Include="System\Security\Cryptography\ICryptoTransform.cs" />
<Compile Include="System\Security\Cryptography\ICspAsymmetricAlgorithm.cs" />
<Compile Include="System\Security\Cryptography\ILiteSymmetricCipher.cs" />
<Compile Include="System\Security\Cryptography\IncrementalHash.cs" />
<Compile Include="System\Security\Cryptography\KeyedHashAlgorithm.cs" />
<Compile Include="System\Security\Cryptography\KeyNumber.cs" />
Expand All @@ -375,7 +359,9 @@
<Compile Include="System\Security\Cryptography\PbeEncryptionAlgorithm.cs" />
<Compile Include="System\Security\Cryptography\PbeParameters.cs" />
<Compile Include="System\Security\Cryptography\PemEncoding.cs" />
<Compile Include="System\Security\Cryptography\PemEnumerator.cs" />
<Compile Include="System\Security\Cryptography\PemFields.cs" />
<Compile Include="System\Security\Cryptography\PemKeyHelpers.cs" />
<Compile Include="System\Security\Cryptography\PKCS1MaskGenerationMethod.cs" />
<Compile Include="System\Security\Cryptography\RandomNumberGenerator.cs" />
<Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.cs" />
Expand Down Expand Up @@ -414,8 +400,13 @@
<Compile Include="System\Security\Cryptography\SHA512Managed.cs" />
<Compile Include="System\Security\Cryptography\SignatureDescription.cs" />
<Compile Include="System\Security\Cryptography\SymmetricAlgorithm.cs" />
<Compile Include="System\Security\Cryptography\SymmetricPadding.cs" />
<Compile Include="System\Security\Cryptography\TripleDES.cs" />
<Compile Include="System\Security\Cryptography\TripleDesImplementation.cs" />
<Compile Include="System\Security\Cryptography\UniversalCryptoTransform.cs" />
<Compile Include="System\Security\Cryptography\UniversalCryptoEncryptor.cs" />
<Compile Include="System\Security\Cryptography\UniversalCryptoDecryptor.cs" />
<Compile Include="System\Security\Cryptography\UniversalCryptoOneShot.cs" />
<Compile Include="System\Security\Cryptography\XmlKeyHelper.cs" />
<Compile Include="System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs" />
<Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.cs" />
Expand Down Expand Up @@ -1331,10 +1322,6 @@
<Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.iOS.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'">
<Compile Include="$(CommonPath)Internal\Cryptography\BasicSymmetricCipherBCrypt.cs"
Link="Common\Internal\Cryptography\BasicSymmetricCipherBCrypt.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\BasicSymmetricCipherLiteBCrypt.cs"
Link="Common\Internal\Cryptography\BasicSymmetricCipherLiteBCrypt.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\CngCommon.Hash.cs"
Link="Common\Internal\Cryptography\CngCommon.Hash.cs" />
<Compile Include="$(CommonPath)Internal\Cryptography\CngCommon.SignVerify.cs"
Expand Down Expand Up @@ -1723,7 +1710,9 @@
<Compile Include="System\Security\Cryptography\AesImplementation.Windows.cs" />
<Compile Include="System\Security\Cryptography\AsnFormatter.Windows.cs" />
<Compile Include="System\Security\Cryptography\BasicSymmetricCipherCsp.cs" />
<Compile Include="System\Security\Cryptography\BasicSymmetricCipherBCrypt.cs" />
<Compile Include="System\Security\Cryptography\BasicSymmetricCipherNCrypt.cs" />
<Compile Include="System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs" />
<Compile Include="System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs" />
<Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" />
<Compile Include="System\Security\Cryptography\CapiHelper.DSA.Windows.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

using System;
using System.Diagnostics;
using System.Security.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
//
// Represents a symmetric reusable cipher encryptor or decryptor. Underlying technology may be CNG or OpenSSL or anything else.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Internal.Cryptography;
using Internal.NativeCrypto;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
internal sealed class BasicSymmetricCipherBCrypt : BasicSymmetricCipher
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Internal.NativeCrypto;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
internal sealed class BasicSymmetricCipherLiteBCrypt : ILiteSymmetricCipher
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Diagnostics;
using System.Security.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
internal interface ILiteSymmetricCipher : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Diagnostics;
using System.Security.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
internal readonly ref struct PemEnumerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Diagnostics;
using System.Security.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
internal static class PemKeyHelpers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

using System;
using System.Diagnostics;
using System.Security.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
internal static class SymmetricPadding
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Internal.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
//
// A cross-platform ICryptoTransform implementation for decryption.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Internal.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
//
// A cross-platform ICryptoTransform implementation for encryption.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Internal.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
internal static class UniversalCryptoOneShot
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Internal.Cryptography;

namespace Internal.Cryptography
namespace System.Security.Cryptography
{
//
// The common base class for the cross-platform CreateEncryptor()/CreateDecryptor() implementations.
Expand Down

0 comments on commit ae24a8f

Please sign in to comment.