3 writes to _protectedHeaders
System.Security.Cryptography.Cose (3)
System\Security\Cryptography\Cose\CoseSigner.cs (3)
76
_protectedHeaders
= protectedHeaders;
116
_protectedHeaders
= protectedHeaders;
126
public CoseHeaderMap ProtectedHeaders =>
_protectedHeaders
??= new CoseHeaderMap();
12 references to _protectedHeaders
System.Security.Cryptography.Cose (12)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (5)
424
if (ContainDuplicateLabels(signer.
_protectedHeaders
, signer._unprotectedHeaders))
434
if (MissingCriticalHeaders(signer.
_protectedHeaders
, out string? labelName))
457
int signProtectedBytesWritten = CoseHelpers.WriteHeaderMap(buffer, writer, signer.
_protectedHeaders
, isProtected: true, signer._algHeaderValueToSlip);
485
int signProtectedBytesWritten = CoseHelpers.WriteHeaderMap(buffer.AsSpan(start), writer, signer.
_protectedHeaders
, isProtected: true, signer._algHeaderValueToSlip);
530
encodedSize += CoseHelpers.GetByteStringEncodedSize(CoseHeaderMap.ComputeEncodedSize(signer.
_protectedHeaders
, signer._algHeaderValueToSlip));
System\Security\Cryptography\Cose\CoseSign1Message.cs (5)
310
if (ContainDuplicateLabels(signer.
_protectedHeaders
, signer._unprotectedHeaders))
315
if (MissingCriticalHeaders(signer.
_protectedHeaders
, out string? labelName))
327
int protectedMapBytesWritten = CoseHelpers.WriteHeaderMap(buffer, writer, signer.
_protectedHeaders
, isProtected: true, signer._algHeaderValueToSlip);
350
int protectedMapBytesWritten = CoseHelpers.WriteHeaderMap(buffer, writer, signer.
_protectedHeaders
, isProtected: true, signer._algHeaderValueToSlip);
768
CoseHelpers.GetByteStringEncodedSize(CoseHeaderMap.ComputeEncodedSize(signer.
_protectedHeaders
, signer._algHeaderValueToSlip)) +
System\Security\Cryptography\Cose\CoseSigner.cs (2)
140
if (
_protectedHeaders
!= null &&
_protectedHeaders
.TryGetValue(CoseHeaderLabel.Algorithm, out CoseHeaderValue value))