@@ -8,6 +8,8 @@ namespace System.Security.Cryptography.Cose
8
8
{
9
9
public readonly partial struct CoseHeaderLabel : System . IEquatable < System . Security . Cryptography . Cose . CoseHeaderLabel >
10
10
{
11
+ private readonly object _dummy ;
12
+ private readonly int _dummyPrimitive ;
11
13
public CoseHeaderLabel ( int label ) { throw null ; }
12
14
public CoseHeaderLabel ( string label ) { throw null ; }
13
15
public static System . Security . Cryptography . Cose . CoseHeaderLabel Algorithm { get { throw null ; } }
@@ -42,6 +44,8 @@ public void SetValue(System.Security.Cryptography.Cose.CoseHeaderLabel label, st
42
44
public bool TryGetEncodedValue ( System . Security . Cryptography . Cose . CoseHeaderLabel label , out System . ReadOnlyMemory < byte > encodedValue ) { throw null ; }
43
45
public partial struct Enumerator : System . Collections . Generic . IEnumerator < ( System . Security . Cryptography . Cose . CoseHeaderLabel Label , System . ReadOnlyMemory < byte > EncodedValue ) > , System . Collections . IEnumerator , System . IDisposable
44
46
{
47
+ private object _dummy ;
48
+ private int _dummyPrimitive ;
45
49
public readonly ( System . Security . Cryptography . Cose . CoseHeaderLabel Label , System . ReadOnlyMemory < byte > EncodedValue ) Current { get { throw null ; } }
46
50
object System . Collections . IEnumerator . Current { get { throw null ; } }
47
51
public void Dispose ( ) { }
@@ -56,28 +60,22 @@ internal CoseMessage() { }
56
60
public System . Security . Cryptography . Cose . CoseHeaderMap ProtectedHeaders { get { throw null ; } }
57
61
public System . Security . Cryptography . Cose . CoseHeaderMap UnprotectedHeaders { get { throw null ; } }
58
62
public static System . Security . Cryptography . Cose . CoseSign1Message DecodeSign1 ( byte [ ] cborPayload ) { throw null ; }
59
- public static System . Security . Cryptography . Cose . CoseSign1Message DecodeSign1 ( ReadOnlySpan < byte > cborPayload ) { throw null ; }
63
+ public static System . Security . Cryptography . Cose . CoseSign1Message DecodeSign1 ( System . ReadOnlySpan < byte > cborPayload ) { throw null ; }
60
64
}
61
65
public sealed partial class CoseSign1Message : System . Security . Cryptography . Cose . CoseMessage
62
66
{
63
67
internal CoseSign1Message ( ) { }
64
68
[ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
65
- public static byte [ ] Sign ( ReadOnlySpan < 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 ; }
66
- [ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
67
69
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 ; }
68
70
[ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
69
- public static byte [ ] Sign ( byte [ ] content , System . Security . Cryptography . ECDsa key , System . Security . Cryptography . HashAlgorithmName hashAlgorithm , bool isDetached = false ) { throw null ; }
70
- [ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
71
- public static byte [ ] Sign ( byte [ ] content , System . Security . Cryptography . RSA key , System . Security . Cryptography . HashAlgorithmName hashAlgorithm , bool isDetached = false ) { throw null ; }
72
- [ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
73
- public static bool TrySign ( ReadOnlySpan < byte > content , Span < byte > 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 ; }
71
+ public static byte [ ] Sign ( System . ReadOnlySpan < 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 ; }
74
72
[ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
75
- public bool Verify ( System . Security . Cryptography . ECDsa key ) { throw null ; }
73
+ public static bool TrySign ( System . ReadOnlySpan < byte > content , System . Span < byte > 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 ; }
76
74
[ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
77
- public bool Verify ( System . Security . Cryptography . ECDsa key , System . ReadOnlySpan < byte > content ) { throw null ; }
75
+ public bool Verify ( System . Security . Cryptography . AsymmetricAlgorithm key ) { throw null ; }
78
76
[ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
79
- public bool Verify ( System . Security . Cryptography . RSA key ) { throw null ; }
77
+ public bool Verify ( System . Security . Cryptography . AsymmetricAlgorithm key , byte [ ] content ) { throw null ; }
80
78
[ System . Runtime . Versioning . UnsupportedOSPlatformAttribute ( "browser" ) ]
81
- public bool Verify ( System . Security . Cryptography . RSA key , System . ReadOnlySpan < byte > content ) { throw null ; }
79
+ public bool Verify ( System . Security . Cryptography . AsymmetricAlgorithm key , System . ReadOnlySpan < byte > content ) { throw null ; }
82
80
}
83
81
}
0 commit comments