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);
Internal\Cryptography\PkcsHelpers.cs (15)
160AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
175AsnValueReader reader = new AsnValueReader(normalizedValue, AsnEncodingRules.DER);
197AsnEncodingRules ruleSet = AsnEncodingRules.DER)
468if (!AsnDecoder.TryReadEncodedValue(source, AsnEncodingRules.BER, out _, out _, out _, out int consumed) ||
477if (!AsnDecoder.TryReadEncodedValue(source, AsnEncodingRules.BER, out _, out _, out _, out int consumed))
493AsnEncodingRules.BER,
510byte[] ret = AsnDecoder.ReadOctetString(input, AsnEncodingRules.BER, out consumed);
530byte[] ret = AsnDecoder.ReadOctetString(encodedOctets.Span, AsnEncodingRules.BER, out int consumed);
548AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
557AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
589AsnEncodingRules.BER,
618AsnEncodingRules.BER,
650OaepParamsAsn oaepParameters = OaepParamsAsn.Decode(parameters.Value, AsnEncodingRules.DER);
661AlgorithmIdentifierAsn mgf1AlgorithmIdentifier = AlgorithmIdentifierAsn.Decode(oaepParameters.MaskGenFunc.Parameters.Value, AsnEncodingRules.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);