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