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