diff --git a/src/libraries/System.Security.Cryptography/src/System.Security.Cryptography.csproj b/src/libraries/System.Security.Cryptography/src/System.Security.Cryptography.csproj index cf25738f6e7bab9111f99b5cf8a34860189e4edb..996f80f668780f62fd22df4c04c3ec57732f9e92 100644 --- a/src/libraries/System.Security.Cryptography/src/System.Security.Cryptography.csproj +++ b/src/libraries/System.Security.Cryptography/src/System.Security.Cryptography.csproj @@ -576,7 +576,7 @@ - + diff --git a/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/Pbkdf2Implementation.Browser.cs b/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/Pbkdf2Implementation.Browser.cs deleted file mode 100644 index b5a59ab8d81c1643b3f92b9250c8f44a6547c6d8..0000000000000000000000000000000000000000 --- a/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/Pbkdf2Implementation.Browser.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Diagnostics; -using Internal.Cryptography; - -namespace System.Security.Cryptography -{ - internal static partial class Pbkdf2Implementation - { - public static void Fill( - ReadOnlySpan password, - ReadOnlySpan salt, - int iterations, - HashAlgorithmName hashAlgorithmName, - Span destination) - { - Debug.Assert(!destination.IsEmpty); - Debug.Assert(hashAlgorithmName.Name is not null); - - FillManaged(password, salt, iterations, hashAlgorithmName, destination); - } - - private static void FillManaged( - ReadOnlySpan password, - ReadOnlySpan salt, - int iterations, - HashAlgorithmName hashAlgorithmName, - Span destination) - { - using (Rfc2898DeriveBytes deriveBytes = new Rfc2898DeriveBytes( - password, - salt, - iterations, - hashAlgorithmName)) - { - deriveBytes.GetBytes(destination); - } - } - } -}