3 writes to _signedData
System.Security.Cryptography.Pkcs (3)
System\Security\Cryptography\Pkcs\SignedCms.cs (3)
173
_signedData
= SignedDataAsn.Decode(_heldData, AsnEncodingRules.BER);
356
_signedData
= new SignedDataAsn
670
return ref
_signedData
;
42 references to _signedData
System.Security.Cryptography.Pkcs (42)
System\Security\Cryptography\Pkcs\SignedCms.cs (42)
87
CertificateChoiceAsn[]? certChoices =
_signedData
.CertificateSet;
115
return new SignerInfoCollection(
_signedData
.SignerInfos, this);
129
_signedData
.Encode(writer);
143
SignedDataAsn copy =
_signedData
;
145
Debug.Assert(
_signedData
.EncapContentInfo.Content != null);
151
copy.EncapContentInfo.Content =
_signedData
.EncapContentInfo.Content;
174
_contentType =
_signedData
.EncapContentInfo.ContentType;
179
ReadOnlyMemory<byte>? content =
_signedData
.EncapContentInfo.Content;
209
Version =
_signedData
.Version;
370
_signedData
.EncapContentInfo.Content = writer.Encode();
376
int newIdx =
_signedData
.SignerInfos.Length;
377
Array.Resize(ref
_signedData
.SignerInfos, newIdx + 1);
378
_signedData
.SignerInfos[newIdx] = newSigner;
399
if (index < 0 || index >=
_signedData
.SignerInfos.Length)
404
AlgorithmIdentifierAsn signerAlgorithm =
_signedData
.SignerInfos[index].DigestAlgorithm;
405
PkcsHelpers.RemoveAt(ref
_signedData
.SignerInfos, index);
501
else if (
_signedData
.SignerInfos.Any(si => si.Version == 3))
507
_signedData
.Version = version;
512
int curLength =
_signedData
.DigestAlgorithms.Length;
516
ref AlgorithmIdentifierAsn alg = ref
_signedData
.DigestAlgorithms[i];
524
Array.Resize(ref
_signedData
.DigestAlgorithms, curLength + 1);
525
_signedData
.DigestAlgorithms[curLength] = candidate;
532
for (int i = 0; i <
_signedData
.SignerInfos.Length; i++)
534
ref AlgorithmIdentifierAsn signerAlg = ref
_signedData
.SignerInfos[i].DigestAlgorithm;
548
for (int i = 0; i <
_signedData
.DigestAlgorithms.Length; i++)
550
ref AlgorithmIdentifierAsn alg = ref
_signedData
.DigestAlgorithms[i];
554
PkcsHelpers.RemoveAt(ref
_signedData
.DigestAlgorithms, i);
567
int existingLength =
_signedData
.CertificateSet?.Length ?? 0;
590
if (
_signedData
.CertificateSet == null)
592
_signedData
.CertificateSet = new CertificateChoiceAsn[newCerts.Count];
596
Array.Resize(ref
_signedData
.CertificateSet, existingLength + newCerts.Count);
599
for (int i = existingLength; i <
_signedData
.CertificateSet.Length; i++)
601
_signedData
.CertificateSet[i] = new CertificateChoiceAsn
675
int existingLength =
_signedData
.CertificateSet?.Length ?? 0;
681
foreach (CertificateChoiceAsn cert in
_signedData
.CertificateSet!)
690
if (
_signedData
.CertificateSet == null)
692
_signedData
.CertificateSet = new CertificateChoiceAsn[1];
696
Array.Resize(ref
_signedData
.CertificateSet, existingLength + 1);
699
_signedData
.CertificateSet[existingLength] = new CertificateChoiceAsn
709
int existingLength =
_signedData
.CertificateSet?.Length ?? 0;
716
foreach (CertificateChoiceAsn cert in
_signedData
.CertificateSet!)
720
PkcsHelpers.RemoveAt(ref
_signedData
.CertificateSet, idx);