4 instantiations of AttributeAsn
System.Security.Cryptography (4)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
48
AttributeAsn newAttr = new
AttributeAsn
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
633
return new
AttributeAsn
645
return new
AttributeAsn
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
65
attributes[i] = new
AttributeAsn
(Attributes[i]);
68 references to AttributeAsn
System.Security.Cryptography (68)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (16)
37
internal static List<
AttributeAsn
> BuildAttributes(CryptographicAttributeObjectCollection? attributes)
39
List<
AttributeAsn
> signedAttrs = new List<
AttributeAsn
>();
48
AttributeAsn
newAttr = new AttributeAsn
257
internal static CryptographicAttributeObjectCollection MakeAttributeCollection(
AttributeAsn
[]? attributes)
264
foreach (
AttributeAsn
attribute in attributes)
272
internal static CryptographicAttributeObject MakeAttribute(
AttributeAsn
attribute)
356
public static
AttributeAsn
[] NormalizeAttributeSet(
AttributeAsn
[] setItems) =>
359
public static
AttributeAsn
[] NormalizeAttributeSet(
360
AttributeAsn
[] setItems,
368
foreach (
AttributeAsn
item in setItems)
382
AttributeAsn
[] decodedSet = new
AttributeAsn
[setItems.Length];
386
AttributeAsn
.Decode(ref setReader, normalizedValue, out
AttributeAsn
item);
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (6)
53
internal static
AttributeAsn
Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
58
internal static
AttributeAsn
Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
64
DecodeCore(ref reader, expectedTag, encoded, out
AttributeAsn
decoded);
74
internal static void Decode(ref AsnValueReader reader, ReadOnlyMemory<byte> rebind, out
AttributeAsn
decoded)
79
internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out
AttributeAsn
decoded)
91
private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out
AttributeAsn
decoded)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (4)
17
internal System.Security.Cryptography.Asn1.
AttributeAsn
[]? BagAttributes;
124
var tmpList = new List<System.Security.Cryptography.Asn1.
AttributeAsn
>();
125
System.Security.Cryptography.Asn1.
AttributeAsn
tmpItem;
129
System.Security.Cryptography.Asn1.
AttributeAsn
.Decode(ref collectionReader, rebind, out tmpItem);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (4)
17
internal System.Security.Cryptography.Asn1.
AttributeAsn
[]? UnprotectedAttributes;
104
var tmpList = new List<System.Security.Cryptography.Asn1.
AttributeAsn
>();
105
System.Security.Cryptography.Asn1.
AttributeAsn
tmpItem;
109
System.Security.Cryptography.Asn1.
AttributeAsn
.Decode(ref collectionReader, rebind, out tmpItem);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (4)
21
internal System.Security.Cryptography.Asn1.
AttributeAsn
[]? UnsignedAttributes;
155
var tmpList = new List<System.Security.Cryptography.Asn1.
AttributeAsn
>();
156
System.Security.Cryptography.Asn1.
AttributeAsn
tmpItem;
160
System.Security.Cryptography.Asn1.
AttributeAsn
.Decode(ref collectionReader, rebind, out tmpItem);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (4)
18
internal System.Security.Cryptography.Asn1.
AttributeAsn
[]? Attributes;
119
var tmpList = new List<System.Security.Cryptography.Asn1.
AttributeAsn
>();
120
System.Security.Cryptography.Asn1.
AttributeAsn
tmpItem;
124
System.Security.Cryptography.Asn1.
AttributeAsn
.Decode(ref collectionReader, rebind, out tmpItem);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (2)
86
List<
AttributeAsn
> attrs = PkcsHelpers.BuildAttributes(_attributes);
90
foreach (
AttributeAsn
attr in attrs)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (16)
32
private static readonly
AttributeAsn
s_syntheticKspAttribute = BuildSyntheticKspAttribute();
33
private static readonly
AttributeAsn
s_syntheticCapiCspAttribute = BuildSyntheticCapiAttribute();
381
AttributeAsn
? providerName = null;
404
foreach (
AttributeAsn
attr in bag.BagAttributes ?? Array.Empty<
AttributeAsn
>())
436
private static void RejectDuplicateAttributes(
AttributeAsn
[] bagAttributes, HashSet<string> duplicateAttributeCheck)
440
foreach (
AttributeAsn
attrSet in bagAttributes)
474
AttributeAsn
attr = bag.BagAttributes[i];
628
private static
AttributeAsn
BuildSyntheticKspAttribute()
640
private static
AttributeAsn
BuildSyntheticCapiAttribute()
652
private static
AttributeAsn
? DetermineStorageProvider(
653
AttributeAsn
[]? bagAttributes,
702
static bool HasMachineKey(
AttributeAsn
[]? bagAttributes, X509KeyStorageFlags storageKind)
721
foreach (
AttributeAsn
attr in bagAttributes)
771
static bool HasCapiCsp(
AttributeAsn
[]? bagAttributes, out bool isRsa)
777
foreach (
AttributeAsn
attr in bagAttributes)
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
472
internal static AsnWriter WritePkcs8PrivateKey(ECParameters ecParameters,
AttributeAsn
[]? attributes = null)
490
private static AsnWriter? WritePrivateKeyInfoAttributes(
AttributeAsn
[]? attributes)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (4)
18
internal System.Security.Cryptography.Asn1.
AttributeAsn
[] Attributes;
119
var tmpList = new List<System.Security.Cryptography.Asn1.
AttributeAsn
>();
120
System.Security.Cryptography.Asn1.
AttributeAsn
tmpItem;
124
System.Security.Cryptography.Asn1.
AttributeAsn
.Decode(ref collectionReader, rebind, out tmpItem);
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
215
foreach (
AttributeAsn
attr in requestInfo.Attributes)
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
62
var attributes = new
AttributeAsn
[Attributes.Count];
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (4)
317
foreach (
AttributeAsn
attr in certBags[certBagIdx].BagAttributes ?? Array.Empty<
AttributeAsn
>())
414
foreach (
AttributeAsn
attr in keyBags[i].BagAttributes ?? Array.Empty<
AttributeAsn
>())