* API Diff .NET 9.0 -> 10.0 * Remove System.Threading.AccessControl from notes * Move files up one level
1.6 KiB
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>));
}
}