diff --git a/src/libraries/System.Security.Cryptography.Cose/ref/System.Security.Cryptography.Cose.cs b/src/libraries/System.Security.Cryptography.Cose/ref/System.Security.Cryptography.Cose.cs index 4772bc005e51c..40d22f92d88dc 100644 --- a/src/libraries/System.Security.Cryptography.Cose/ref/System.Security.Cryptography.Cose.cs +++ b/src/libraries/System.Security.Cryptography.Cose/ref/System.Security.Cryptography.Cose.cs @@ -56,17 +56,22 @@ internal CoseMessage() { } public System.Security.Cryptography.Cose.CoseHeaderMap ProtectedHeaders { get { throw null; } } public System.Security.Cryptography.Cose.CoseHeaderMap UnprotectedHeaders { get { throw null; } } public static System.Security.Cryptography.Cose.CoseSign1Message DecodeSign1(byte[] cborPayload) { throw null; } + public static System.Security.Cryptography.Cose.CoseSign1Message DecodeSign1(ReadOnlySpan cborPayload) { throw null; } } public sealed partial class CoseSign1Message : System.Security.Cryptography.Cose.CoseMessage { internal CoseSign1Message() { } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] + public static byte[] Sign(ReadOnlySpan content, System.Security.Cryptography.AsymmetricAlgorithm key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.Cose.CoseHeaderMap? protectedHeaders = null, System.Security.Cryptography.Cose.CoseHeaderMap? unprotectedHeaders = null, bool isDetached = false) { throw null; } + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] public static byte[] Sign(byte[] content, System.Security.Cryptography.AsymmetricAlgorithm key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.Cose.CoseHeaderMap? protectedHeaders = null, System.Security.Cryptography.Cose.CoseHeaderMap? unprotectedHeaders = null, bool isDetached = false) { throw null; } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] public static byte[] Sign(byte[] content, System.Security.Cryptography.ECDsa key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, bool isDetached = false) { throw null; } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] public static byte[] Sign(byte[] content, System.Security.Cryptography.RSA key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, bool isDetached = false) { throw null; } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] + public static bool TrySign(ReadOnlySpan content, Span destination, System.Security.Cryptography.AsymmetricAlgorithm key!!, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten, System.Security.Cryptography.Cose.CoseHeaderMap? protectedHeaders = null, System.Security.Cryptography.Cose.CoseHeaderMap? unprotectedHeaders = null, bool isDetached = false) { throw null; } + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] public bool Verify(System.Security.Cryptography.ECDsa key) { throw null; } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] public bool Verify(System.Security.Cryptography.ECDsa key, System.ReadOnlySpan content) { throw null; } diff --git a/src/libraries/System.Security.Cryptography.Cose/src/System.Security.Cryptography.Cose.csproj b/src/libraries/System.Security.Cryptography.Cose/src/System.Security.Cryptography.Cose.csproj index 13814baf6096a..3db497d878879 100644 --- a/src/libraries/System.Security.Cryptography.Cose/src/System.Security.Cryptography.Cose.csproj +++ b/src/libraries/System.Security.Cryptography.Cose/src/System.Security.Cryptography.Cose.csproj @@ -1,6 +1,7 @@ $(NetCoreAppCurrent);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum) + true enable true