10 writes to UnsignedAttributes
System.Security.Cryptography.Pkcs (10)
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (1)
164decoded.UnsignedAttributes = tmpList.ToArray();
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
286newSignerInfo.UnsignedAttributes = PkcsHelpers.NormalizeAttributeSet(attrs.ToArray());
System\Security\Cryptography\Pkcs\SignerInfo.cs (8)
133ref AttributeAsn[] unsignedAttrs = ref parentData.UnsignedAttributes!; 191mySigner.UnsignedAttributes = new AttributeAsn[1]; 196Array.Resize(ref mySigner.UnsignedAttributes, newAttributeIdx + 1); 230PkcsHelpers.RemoveAt(ref mySigner.UnsignedAttributes!, outerIndex); 313mySigner.UnsignedAttributes = new AttributeAsn[1]; 319Array.Resize(ref mySigner.UnsignedAttributes, newExtensionIdx + 1); 395myData.UnsignedAttributes = null; 399PkcsHelpers.RemoveAt(ref myData.UnsignedAttributes, removeAttrIdx);
18 references to UnsignedAttributes
System.Security.Cryptography.Pkcs (18)
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (3)
60if (UnsignedAttributes != null) 64for (int i = 0; i < UnsignedAttributes.Length; i++) 66UnsignedAttributes[i].Encode(writer);
System\Security\Cryptography\Pkcs\SignerInfo.cs (15)
46_unsignedAttributes = parsedData.UnsignedAttributes; 128if (parentData.UnsignedAttributes == null) 180int existingAttribute = mySigner.UnsignedAttributes == null ? -1 : FindAttributeIndexByOid(mySigner.UnsignedAttributes, unsignedAttribute.Oid!); 188if (mySigner.UnsignedAttributes == null) 195newAttributeIdx = mySigner.UnsignedAttributes.Length; 199mySigner.UnsignedAttributes[newAttributeIdx] = newUnsignedAttr; 204ref AttributeAsn modifiedAttr = ref mySigner.UnsignedAttributes![existingAttribute]; 221(int outerIndex, int innerIndex) = FindAttributeLocation(mySigner.UnsignedAttributes, unsignedAttribute, out bool isOnlyValue); 234PkcsHelpers.RemoveAt(ref mySigner.UnsignedAttributes![outerIndex].AttrValues, innerIndex); 311if (mySigner.UnsignedAttributes == null) 318newExtensionIdx = mySigner.UnsignedAttributes.Length; 322mySigner.UnsignedAttributes[newExtensionIdx] = newUnsignedAttr; 351if (myData.UnsignedAttributes == null) 361AttributeAsn[] unsignedAttrs = myData.UnsignedAttributes;