3 instantiations of CoseSignature
System.Security.Cryptography.Cose (3)
System\Security\Cryptography\Cose\CoseMessage.cs (1)
381
return new
CoseSignature
(protectedHeaders, unprotectedHeaders, signProtected, signatureBytes);
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (2)
807
_signatures.Add(new
CoseSignature
(this, signProtectedHeaders, signer.UnprotectedHeaders, encodedSignProtected, signature));
880
_signatures.Add(new
CoseSignature
(this, signProtectedHeaders, signer.UnprotectedHeaders, encodedSignProtected, signature));
14 references to CoseSignature
System.Security.Cryptography.Cose (14)
System\Security\Cryptography\Cose\CoseMessage.cs (6)
245
List<
CoseSignature
> signatures = DecodeCoseSignaturesArray(reader);
335
private static List<
CoseSignature
> DecodeCoseSignaturesArray(CborReader reader)
338
List<
CoseSignature
> signatures = new List<
CoseSignature
>(signaturesLength.GetValueOrDefault());
342
CoseSignature
signature = DecodeCoseSignature(reader.ReadEncodedValue());
356
private static
CoseSignature
DecodeCoseSignature(ReadOnlyMemory<byte> coseSignature)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (8)
24
private readonly List<
CoseSignature
> _signatures;
30
public ReadOnlyCollection<
CoseSignature
> Signatures { get; }
32
internal CoseMultiSignMessage(CoseHeaderMap protectedHeader, CoseHeaderMap unprotectedHeader, byte[]? content, List<
CoseSignature
> signatures, byte[] encodedProtectedHeader, bool isTagged)
35
foreach (
CoseSignature
s in signatures)
40
Signatures = new ReadOnlyCollection<
CoseSignature
>(signatures);
546
foreach (
CoseSignature
signature in Signatures)
608
foreach (
CoseSignature
signature in Signatures)
892
public void RemoveSignature(
CoseSignature
signature)