src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs (1)
42AsnEncodingRules.DER,
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (14)
34reader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER);
38reader = new AsnValueReader(DefaultMaskGenAlgorithm, AsnEncodingRules.DER);
42reader = new AsnValueReader(DefaultSaltLength, AsnEncodingRules.DER);
51reader = new AsnValueReader(DefaultTrailerField, AsnEncodingRules.DER);
74AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
88AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
103AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
118AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
132internal static PssParamsAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
137internal static PssParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
186defaultReader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER);
199defaultReader = new AsnValueReader(DefaultMaskGenAlgorithm, AsnEncodingRules.DER);
217defaultReader = new AsnValueReader(DefaultSaltLength, AsnEncodingRules.DER);
240defaultReader = new AsnValueReader(DefaultTrailerField, AsnEncodingRules.DER);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (14)
140AsnDecoder.ReadSequence(data.Span, AsnEncodingRules.BER, out _, out _, out int trimLength);
143PfxAsn pfxAsn = PfxAsn.Decode(data, AsnEncodingRules.BER);
188AsnValueReader outer = new AsnValueReader(authSafeContents, AsnEncodingRules.BER);
277AsnValueReader outer = new AsnValueReader(contentData.Span, AsnEncodingRules.BER);
294CertBagAsn certBag = CertBagAsn.Decode(bag.BagValue, AsnEncodingRules.BER);
341AsnEncodingRules.BER);
461EncryptedDataAsn.Decode(safeContentsAsn.Content, AsnEncodingRules.BER);
536AsnEncodingRules.BER);
542AsnEncodingRules.BER);
559AsnEncodingRules.BER);
695AsnEncodingRules.BER);
805AsnValueReader reader = new AsnValueReader(decrypted, AsnEncodingRules.BER);
833AsnValueReader reader = new AsnValueReader(decrypted, AsnEncodingRules.BER);
894AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (8)
67if (!AsnDecoder.TryReadEncodedValue(source, AsnEncodingRules.BER, out _, out _, out _, out int consumed) ||
77AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
87byte[] ret = AsnDecoder.ReadOctetString(encodedOctets.Span, AsnEncodingRules.BER, out int consumed);
115AsnEncodingRules.BER,
169AsnEncodingRules.BER,
186byte[] ret = AsnDecoder.ReadOctetString(input, AsnEncodingRules.BER, out consumed);
279AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
311AsnEncodingRules.BER,
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (14)
34reader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER);
38reader = new AsnValueReader(DefaultMaskGenAlgorithm, AsnEncodingRules.DER);
42reader = new AsnValueReader(DefaultSaltLength, AsnEncodingRules.DER);
51reader = new AsnValueReader(DefaultTrailerField, AsnEncodingRules.DER);
74AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
88AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER);
103AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
118AsnWriter tmp = new AsnWriter(AsnEncodingRules.DER, initialCapacity: AsnManagedIntegerDerMaxEncodeSize);
132internal static PssParamsAsn Decode(ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
137internal static PssParamsAsn Decode(Asn1Tag expectedTag, ReadOnlyMemory<byte> encoded, AsnEncodingRules ruleSet)
186defaultReader = new AsnValueReader(DefaultHashAlgorithm, AsnEncodingRules.DER);
199defaultReader = new AsnValueReader(DefaultMaskGenAlgorithm, AsnEncodingRules.DER);
217defaultReader = new AsnValueReader(DefaultSaltLength, AsnEncodingRules.DER);
240defaultReader = new AsnValueReader(DefaultTrailerField, AsnEncodingRules.DER);