-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
CoseSignature.xml
505 lines (465 loc) · 33.2 KB
/
CoseSignature.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
<Type Name="CoseSignature" FullName="System.Security.Cryptography.Cose.CoseSignature">
<TypeSignature Language="C#" Value="public sealed class CoseSignature" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit CoseSignature extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Security.Cryptography.Cose.CoseSignature" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class CoseSignature" />
<TypeSignature Language="F#" Value="type CoseSignature = class" />
<TypeSignature Language="C++ CLI" Value="public ref class CoseSignature sealed" />
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(1)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents a COSE_Signature that carries one signature and information about that signature associated with a <see cref="T:System.Security.Cryptography.Cose.CoseMultiSignMessage" />.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="ProtectedHeaders">
<MemberSignature Language="C#" Value="public System.Security.Cryptography.Cose.CoseHeaderMap ProtectedHeaders { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Security.Cryptography.Cose.CoseHeaderMap ProtectedHeaders" />
<MemberSignature Language="DocId" Value="P:System.Security.Cryptography.Cose.CoseSignature.ProtectedHeaders" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ProtectedHeaders As CoseHeaderMap" />
<MemberSignature Language="F#" Value="member this.ProtectedHeaders : System.Security.Cryptography.Cose.CoseHeaderMap" Usage="System.Security.Cryptography.Cose.CoseSignature.ProtectedHeaders" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Security::Cryptography::Cose::CoseHeaderMap ^ ProtectedHeaders { System::Security::Cryptography::Cose::CoseHeaderMap ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Security.Cryptography.Cose.CoseHeaderMap</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the protected header parameters associated with this instance.</summary>
<value>A collection of protected header parameters associated with this instance.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="RawProtectedHeaders">
<MemberSignature Language="C#" Value="public ReadOnlyMemory<byte> RawProtectedHeaders { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.ReadOnlyMemory`1<unsigned int8> RawProtectedHeaders" />
<MemberSignature Language="DocId" Value="P:System.Security.Cryptography.Cose.CoseSignature.RawProtectedHeaders" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property RawProtectedHeaders As ReadOnlyMemory(Of Byte)" />
<MemberSignature Language="F#" Value="member this.RawProtectedHeaders : ReadOnlyMemory<byte>" Usage="System.Security.Cryptography.Cose.CoseSignature.RawProtectedHeaders" />
<MemberSignature Language="C++ CLI" Value="public:
 property ReadOnlyMemory<System::Byte> RawProtectedHeaders { ReadOnlyMemory<System::Byte> get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[get: System.Runtime.CompilerServices.NullableContext(0)]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.CompilerServices.NullableContext(0)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ReadOnlyMemory<System.Byte></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the raw bytes of the protected header parameters associated with this instance.</summary>
<value>A region of memory that contains the raw bytes of the protected header parameters associated with this instance.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Signature">
<MemberSignature Language="C#" Value="public ReadOnlyMemory<byte> Signature { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.ReadOnlyMemory`1<unsigned int8> Signature" />
<MemberSignature Language="DocId" Value="P:System.Security.Cryptography.Cose.CoseSignature.Signature" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Signature As ReadOnlyMemory(Of Byte)" />
<MemberSignature Language="F#" Value="member this.Signature : ReadOnlyMemory<byte>" Usage="System.Security.Cryptography.Cose.CoseSignature.Signature" />
<MemberSignature Language="C++ CLI" Value="public:
 property ReadOnlyMemory<System::Byte> Signature { ReadOnlyMemory<System::Byte> get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[get: System.Runtime.CompilerServices.NullableContext(0)]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.CompilerServices.NullableContext(0)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ReadOnlyMemory<System.Byte></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the digital signature.</summary>
<value>A region of memory that contains the digital signature.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="UnprotectedHeaders">
<MemberSignature Language="C#" Value="public System.Security.Cryptography.Cose.CoseHeaderMap UnprotectedHeaders { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Security.Cryptography.Cose.CoseHeaderMap UnprotectedHeaders" />
<MemberSignature Language="DocId" Value="P:System.Security.Cryptography.Cose.CoseSignature.UnprotectedHeaders" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property UnprotectedHeaders As CoseHeaderMap" />
<MemberSignature Language="F#" Value="member this.UnprotectedHeaders : System.Security.Cryptography.Cose.CoseHeaderMap" Usage="System.Security.Cryptography.Cose.CoseSignature.UnprotectedHeaders" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Security::Cryptography::Cose::CoseHeaderMap ^ UnprotectedHeaders { System::Security::Cryptography::Cose::CoseHeaderMap ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Security.Cryptography.Cose.CoseHeaderMap</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the unprotected header parameters associated with this instance.</summary>
<value>A collection of unprotected header parameters associated with this instance.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="VerifyDetached">
<MemberSignature Language="C#" Value="public bool VerifyDetached (System.Security.Cryptography.AsymmetricAlgorithm key, byte[] detachedContent, byte[]? associatedData = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool VerifyDetached(class System.Security.Cryptography.AsymmetricAlgorithm key, unsigned int8[] detachedContent, unsigned int8[] associatedData) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Security.Cryptography.Cose.CoseSignature.VerifyDetached(System.Security.Cryptography.AsymmetricAlgorithm,System.Byte[],System.Byte[])" />
<MemberSignature Language="VB.NET" Value="Public Function VerifyDetached (key As AsymmetricAlgorithm, detachedContent As Byte(), Optional associatedData As Byte() = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.VerifyDetached : System.Security.Cryptography.AsymmetricAlgorithm * byte[] * byte[] -> bool" Usage="coseSignature.VerifyDetached (key, detachedContent, associatedData)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Security.Cryptography.AsymmetricAlgorithm" />
<Parameter Name="detachedContent" Type="System.Byte[]" />
<Parameter Name="associatedData" Type="System.Byte[]">
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(2)>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="key">The private key used to sign the content.</param>
<param name="detachedContent">The content that was previously signed.</param>
<param name="associatedData">The extra data associated with the signature, which must match the value provided during signing.</param>
<summary>Verifies that the signature is valid for the message's content using the specified key.</summary>
<returns>
<see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="key" /> or <paramref name="detachedContent" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="key" /> is of an unsupported type.</exception>
<exception cref="T:System.InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">
<see cref="P:System.Security.Cryptography.Cose.CoseMessage.ProtectedHeaders" /> does not have a value for the <see cref="P:System.Security.Cryptography.Cose.CoseHeaderLabel.Algorithm" /> header.
-or-
The algorithm protected header was incorrectly formatted.
-or-
The algorithm protected header was not one of the values supported by this implementation.
-or-
The algorithm protected header doesn't match with the algorithms supported by the specified <paramref name="key" />.
</exception>
</Docs>
</Member>
<Member MemberName="VerifyDetached">
<MemberSignature Language="C#" Value="public bool VerifyDetached (System.Security.Cryptography.AsymmetricAlgorithm key, System.IO.Stream detachedContent, ReadOnlySpan<byte> associatedData = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool VerifyDetached(class System.Security.Cryptography.AsymmetricAlgorithm key, class System.IO.Stream detachedContent, valuetype System.ReadOnlySpan`1<unsigned int8> associatedData) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Security.Cryptography.Cose.CoseSignature.VerifyDetached(System.Security.Cryptography.AsymmetricAlgorithm,System.IO.Stream,System.ReadOnlySpan{System.Byte})" />
<MemberSignature Language="VB.NET" Value="Public Function VerifyDetached (key As AsymmetricAlgorithm, detachedContent As Stream, Optional associatedData As ReadOnlySpan(Of Byte) = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.VerifyDetached : System.Security.Cryptography.AsymmetricAlgorithm * System.IO.Stream * ReadOnlySpan<byte> -> bool" Usage="coseSignature.VerifyDetached (key, detachedContent, associatedData)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Security.Cryptography.AsymmetricAlgorithm" />
<Parameter Name="detachedContent" Type="System.IO.Stream" />
<Parameter Name="associatedData" Type="System.ReadOnlySpan<System.Byte>">
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="key">The private key used to sign the content.</param>
<param name="detachedContent">The content that was previously signed.</param>
<param name="associatedData">The extra data associated with the signature, which must match the value provided during signing.</param>
<summary>Verifies that the signature is valid for the message's content using the specified key.</summary>
<returns>
<see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="key" /> or <paramref name="detachedContent" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="key" /> is of an unsupported type.
-or-
<paramref name="detachedContent" /> does not support reading or seeking.
</exception>
<exception cref="T:System.InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">
<see cref="P:System.Security.Cryptography.Cose.CoseMessage.ProtectedHeaders" /> does not have a value for the <see cref="P:System.Security.Cryptography.Cose.CoseHeaderLabel.Algorithm" /> header.
-or-
The algorithm protected header was incorrectly formatted.
-or-
The algorithm protected header was not one of the values supported by this implementation.
-or-
The algorithm protected header doesn't match with the algorithms supported by the specified <paramref name="key" />.
</exception>
</Docs>
</Member>
<Member MemberName="VerifyDetached">
<MemberSignature Language="C#" Value="public bool VerifyDetached (System.Security.Cryptography.AsymmetricAlgorithm key, ReadOnlySpan<byte> detachedContent, ReadOnlySpan<byte> associatedData = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool VerifyDetached(class System.Security.Cryptography.AsymmetricAlgorithm key, valuetype System.ReadOnlySpan`1<unsigned int8> detachedContent, valuetype System.ReadOnlySpan`1<unsigned int8> associatedData) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Security.Cryptography.Cose.CoseSignature.VerifyDetached(System.Security.Cryptography.AsymmetricAlgorithm,System.ReadOnlySpan{System.Byte},System.ReadOnlySpan{System.Byte})" />
<MemberSignature Language="VB.NET" Value="Public Function VerifyDetached (key As AsymmetricAlgorithm, detachedContent As ReadOnlySpan(Of Byte), Optional associatedData As ReadOnlySpan(Of Byte) = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.VerifyDetached : System.Security.Cryptography.AsymmetricAlgorithm * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> bool" Usage="coseSignature.VerifyDetached (key, detachedContent, associatedData)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(0)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Security.Cryptography.AsymmetricAlgorithm">
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(1)>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="detachedContent" Type="System.ReadOnlySpan<System.Byte>" />
<Parameter Name="associatedData" Type="System.ReadOnlySpan<System.Byte>" />
</Parameters>
<Docs>
<param name="key">The private key used to sign the content.</param>
<param name="detachedContent">The content that was previously signed.</param>
<param name="associatedData">The extra data associated with the signature, which must match the value provided during signing.</param>
<summary>Verifies that the signature is valid for the message's content using the specified key.</summary>
<returns>
<see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="key" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="key" /> is of an unsupported type.</exception>
<exception cref="T:System.InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">
<see cref="P:System.Security.Cryptography.Cose.CoseMessage.ProtectedHeaders" /> does not have a value for the <see cref="P:System.Security.Cryptography.Cose.CoseHeaderLabel.Algorithm" /> header.
-or-
The algorithm protected header was incorrectly formatted.
-or-
The algorithm protected header was not one of the values supported by this implementation.
-or-
The algorithm protected header doesn't match with the algorithms supported by the specified <paramref name="key" />.
</exception>
</Docs>
</Member>
<Member MemberName="VerifyDetachedAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<bool> VerifyDetachedAsync (System.Security.Cryptography.AsymmetricAlgorithm key, System.IO.Stream detachedContent, ReadOnlyMemory<byte> associatedData = default, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<bool> VerifyDetachedAsync(class System.Security.Cryptography.AsymmetricAlgorithm key, class System.IO.Stream detachedContent, valuetype System.ReadOnlyMemory`1<unsigned int8> associatedData, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Security.Cryptography.Cose.CoseSignature.VerifyDetachedAsync(System.Security.Cryptography.AsymmetricAlgorithm,System.IO.Stream,System.ReadOnlyMemory{System.Byte},System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function VerifyDetachedAsync (key As AsymmetricAlgorithm, detachedContent As Stream, Optional associatedData As ReadOnlyMemory(Of Byte) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)" />
<MemberSignature Language="F#" Value="member this.VerifyDetachedAsync : System.Security.Cryptography.AsymmetricAlgorithm * System.IO.Stream * ReadOnlyMemory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>" Usage="coseSignature.VerifyDetachedAsync (key, detachedContent, associatedData, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<System.Boolean></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Security.Cryptography.AsymmetricAlgorithm" />
<Parameter Name="detachedContent" Type="System.IO.Stream" />
<Parameter Name="associatedData" Type="System.ReadOnlyMemory<System.Byte>">
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="key">The private key used to sign the content.</param>
<param name="detachedContent">The content that was previously signed.</param>
<param name="associatedData">The extra data associated with the signature, which must match the value provided during signing.</param>
<param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
<summary>Asynchronously verifies that the signature is valid for the message's content using the specified key.</summary>
<returns>A task whose <see cref="T:System.Threading.Tasks.Task`1" /> property is <see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="key" /> or <paramref name="detachedContent" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="key" /> is of an unsupported type.
-or-
<paramref name="detachedContent" /> does not support reading or seeking.
</exception>
<exception cref="T:System.InvalidOperationException">The content is embedded on the associated message, use an overload that uses embedded content.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">
<see cref="P:System.Security.Cryptography.Cose.CoseMessage.ProtectedHeaders" /> does not have a value for the <see cref="P:System.Security.Cryptography.Cose.CoseHeaderLabel.Algorithm" /> header.
-or-
The algorithm protected header was incorrectly formatted.
-or-
The algorithm protected header was not one of the values supported by this implementation.
-or-
The algorithm protected header doesn't match with the algorithms supported by the specified <paramref name="key" />.
</exception>
<exception cref="T:System.OperationCanceledException">The cancellation token was canceled. This exception is stored into the returned task.</exception>
</Docs>
</Member>
<Member MemberName="VerifyEmbedded">
<MemberSignature Language="C#" Value="public bool VerifyEmbedded (System.Security.Cryptography.AsymmetricAlgorithm key, byte[]? associatedData = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool VerifyEmbedded(class System.Security.Cryptography.AsymmetricAlgorithm key, unsigned int8[] associatedData) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Security.Cryptography.Cose.CoseSignature.VerifyEmbedded(System.Security.Cryptography.AsymmetricAlgorithm,System.Byte[])" />
<MemberSignature Language="VB.NET" Value="Public Function VerifyEmbedded (key As AsymmetricAlgorithm, Optional associatedData As Byte() = Nothing) As Boolean" />
<MemberSignature Language="F#" Value="member this.VerifyEmbedded : System.Security.Cryptography.AsymmetricAlgorithm * byte[] -> bool" Usage="coseSignature.VerifyEmbedded (key, associatedData)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Security.Cryptography.AsymmetricAlgorithm" />
<Parameter Name="associatedData" Type="System.Byte[]">
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(2)>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="key">The private key used to sign the content.</param>
<param name="associatedData">The extra data associated with the signature, which must match the value provided during signing.</param>
<summary>Verifies that the signature is valid for the message's content using the specified key.</summary>
<returns>
<see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="key" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="key" /> is of an unsupported type.</exception>
<exception cref="T:System.InvalidOperationException">The content is detached from the associated message, use an overload that accepts a detached content.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">
<see cref="P:System.Security.Cryptography.Cose.CoseMessage.ProtectedHeaders" /> does not have a value for the <see cref="P:System.Security.Cryptography.Cose.CoseHeaderLabel.Algorithm" /> header.
-or-
The algorithm protected header was incorrectly formatted.
-or-
The algorithm protected header was not one of the values supported by this implementation.
-or-
The algorithm protected header doesn't match with the algorithms supported by the specified <paramref name="key" />.
</exception>
</Docs>
</Member>
<Member MemberName="VerifyEmbedded">
<MemberSignature Language="C#" Value="public bool VerifyEmbedded (System.Security.Cryptography.AsymmetricAlgorithm key, ReadOnlySpan<byte> associatedData);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool VerifyEmbedded(class System.Security.Cryptography.AsymmetricAlgorithm key, valuetype System.ReadOnlySpan`1<unsigned int8> associatedData) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Security.Cryptography.Cose.CoseSignature.VerifyEmbedded(System.Security.Cryptography.AsymmetricAlgorithm,System.ReadOnlySpan{System.Byte})" />
<MemberSignature Language="VB.NET" Value="Public Function VerifyEmbedded (key As AsymmetricAlgorithm, associatedData As ReadOnlySpan(Of Byte)) As Boolean" />
<MemberSignature Language="F#" Value="member this.VerifyEmbedded : System.Security.Cryptography.AsymmetricAlgorithm * ReadOnlySpan<byte> -> bool" Usage="coseSignature.VerifyEmbedded (key, associatedData)" />
<MemberSignature Language="C++ CLI" Value="public:
 bool VerifyEmbedded(System::Security::Cryptography::AsymmetricAlgorithm ^ key, ReadOnlySpan<System::Byte> associatedData);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Security.Cryptography.Cose</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(0)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Security.Cryptography.AsymmetricAlgorithm">
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(1)>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="associatedData" Type="System.ReadOnlySpan<System.Byte>" />
</Parameters>
<Docs>
<param name="key">The private key used to sign the content.</param>
<param name="associatedData">The extra data associated with the signature, which must match the value provided during signing.</param>
<summary>Verifies that the signature is valid for the message's content using the specified key.</summary>
<returns>
<see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="key" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="key" /> is of an unsupported type.</exception>
<exception cref="T:System.InvalidOperationException">The content is detached from the associated message, use an overload that accepts a detached content.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">
<see cref="P:System.Security.Cryptography.Cose.CoseMessage.ProtectedHeaders" /> does not have a value for the <see cref="P:System.Security.Cryptography.Cose.CoseHeaderLabel.Algorithm" /> header.
-or-
The algorithm protected header was incorrectly formatted.
-or-
The algorithm protected header was not one of the values supported by this implementation.
-or-
The algorithm protected header doesn't match with the algorithms supported by the specified <paramref name="key" />.
</exception>
</Docs>
</Member>
</Members>
</Type>