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)
540
int encodedLength = CoseHelpers.GetCoseSignEncodedLengthMinusSignature(_isTagged, MultiSignSizeOfCborTag,
_protectedHeaderAsBstr
.Length, UnprotectedHeaders, _content);
598
writer.WriteByteString(
_protectedHeaderAsBstr
);
773
_protectedHeaderAsBstr
.Length,
788
AppendToBeSigned(bufferSpan, toBeSignedBuilder, SigStructureContext.Signature,
_protectedHeaderAsBstr
, encodedSignProtected, associatedData, contentBytes, contentStream);
849
_protectedHeaderAsBstr
.Length,
861
await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature,
_protectedHeaderAsBstr
, encodedSignProtected, associatedData, content, cancellationToken).ConfigureAwait(false);
System\Security\Cryptography\Cose\CoseSign1Message.cs (6)
791
_protectedHeaderAsBstr
.Length,
799
AppendToBeSigned(buffer, toBeSignedBuilder, SigStructureContext.Signature1,
_protectedHeaderAsBstr
, ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream);
944
_protectedHeaderAsBstr
.Length,
950
await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature1,
_protectedHeaderAsBstr
, ReadOnlyMemory<byte>.Empty, associatedData, content, cancellationToken).ConfigureAwait(false);
990
CoseHelpers.GetCoseSignEncodedLengthMinusSignature(_isTagged, Sign1SizeOfCborTag,
_protectedHeaderAsBstr
.Length, UnprotectedHeaders, _content) +
1024
writer.WriteByteString(
_protectedHeaderAsBstr
);