1 write to _protectedHeaderAsBstr
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMessage.cs (1)
58
_protectedHeaderAsBstr
= encodedProtectedHeader;
13 references to _protectedHeaderAsBstr
System.Security.Cryptography.Cose (13)
System\Security\Cryptography\Cose\CoseMessage.cs (1)
53
public ReadOnlyMemory<byte> RawProtectedHeaders =>
_protectedHeaderAsBstr
;
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (6)
535
int encodedLength = CoseHelpers.GetCoseSignEncodedLengthMinusSignature(_isTagged, MultiSignSizeOfCborTag,
_protectedHeaderAsBstr
.Length, UnprotectedHeaders, _content);
593
writer.WriteByteString(
_protectedHeaderAsBstr
);
768
_protectedHeaderAsBstr
.Length,
783
AppendToBeSigned(bufferSpan, hasher, SigStructureContext.Signature,
_protectedHeaderAsBstr
, encodedSignProtected, associatedData, contentBytes, contentStream);
841
_protectedHeaderAsBstr
.Length,
853
await AppendToBeSignedAsync(buffer, hasher, SigStructureContext.Signature,
_protectedHeaderAsBstr
, encodedSignProtected, associatedData, content, cancellationToken).ConfigureAwait(false);
System\Security\Cryptography\Cose\CoseSign1Message.cs (6)
589
_protectedHeaderAsBstr
.Length,
597
AppendToBeSigned(buffer, hasher, SigStructureContext.Signature1,
_protectedHeaderAsBstr
, ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream);
684
_protectedHeaderAsBstr
.Length,
690
await AppendToBeSignedAsync(buffer, hasher, SigStructureContext.Signature1,
_protectedHeaderAsBstr
, ReadOnlyMemory<byte>.Empty, associatedData, content, cancellationToken).ConfigureAwait(false);
748
CoseHelpers.GetCoseSignEncodedLengthMinusSignature(_isTagged, Sign1SizeOfCborTag,
_protectedHeaderAsBstr
.Length, UnprotectedHeaders, _content) +
782
writer.WriteByteString(
_protectedHeaderAsBstr
);