1
0
mirror of synced 2025-12-19 18:06:02 -05:00
Files
core/release-notes/10.0/api-diff/Microsoft.WindowsDesktop.App/10.0.0_System.Security.Cryptography.ProtectedData.md
Pranav Senthilnathan bbe69a494d API Diff .NET 9.0 -> 10.0 (#10147)
* API Diff .NET 9.0 -> 10.0

* Remove System.Threading.AccessControl from notes

* Move files up one level
2025-12-02 15:35:35 -08:00

1.6 KiB

System.Security.Cryptography.ProtectedData

  namespace System.Security.Cryptography
  {
      public static class ProtectedData
      {
+         public static byte[] Protect(System.ReadOnlySpan<byte> userData, System.Security.Cryptography.DataProtectionScope scope, System.ReadOnlySpan<byte> optionalEntropy = default(System.ReadOnlySpan<byte>));
+         public static int Protect(System.ReadOnlySpan<byte> userData, System.Security.Cryptography.DataProtectionScope scope, System.Span<byte> destination, System.ReadOnlySpan<byte> optionalEntropy = default(System.ReadOnlySpan<byte>));
+         public static bool TryProtect(System.ReadOnlySpan<byte> userData, System.Security.Cryptography.DataProtectionScope scope, System.Span<byte> destination, out int bytesWritten, System.ReadOnlySpan<byte> optionalEntropy = default(System.ReadOnlySpan<byte>));
+         public static bool TryUnprotect(System.ReadOnlySpan<byte> encryptedData, System.Security.Cryptography.DataProtectionScope scope, System.Span<byte> destination, out int bytesWritten, System.ReadOnlySpan<byte> optionalEntropy = default(System.ReadOnlySpan<byte>));
+         public static byte[] Unprotect(System.ReadOnlySpan<byte> encryptedData, System.Security.Cryptography.DataProtectionScope scope, System.ReadOnlySpan<byte> optionalEntropy = default(System.ReadOnlySpan<byte>));
+         public static int Unprotect(System.ReadOnlySpan<byte> encryptedData, System.Security.Cryptography.DataProtectionScope scope, System.Span<byte> destination, System.ReadOnlySpan<byte> optionalEntropy = default(System.ReadOnlySpan<byte>));
      }
  }