120 references to BER
System.Formats.Asn1 (4)
System\Formats\Asn1\AsnDecoder.cs (2)
695Debug.Assert(ruleSet >= AsnEncodingRules.BER && ruleSet <= AsnEncodingRules.DER); 700if (ruleSet != AsnEncodingRules.BER &&
System\Formats\Asn1\AsnWriter.cs (1)
44if (ruleSet != AsnEncodingRules.BER &&
System\Formats\Asn1\AsnWriter.OctetString.cs (1)
51/// In <see cref="AsnEncodingRules.BER"/> and <see cref="AsnEncodingRules.DER"/> modes,
System.Security.Cryptography (53)
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (2)
50DssParms parms = DssParms.Decode(algId.Parameters.Value, AsnEncodingRules.BER); 113DssParms parms = DssParms.Decode(algId.Parameters.Value, AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (4)
84AsnEncodingRules.BER, 111ECPrivateKey key = ECPrivateKey.Decode(keyData, AsnEncodingRules.BER); 316AsnReader primeReader = new AsnReader(specifiedParameters.FieldID.Parameters, AsnEncodingRules.BER); 334AsnReader char2Reader = new AsnReader(specifiedParameters.FieldID.Parameters, AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (2)
115AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 142AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
105AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 286AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 337AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER); 373AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (6)
520PBES2Params pbes2Params = PBES2Params.Decode(algorithmParameters.Value, AsnEncodingRules.BER); 649AsnEncodingRules.BER); 702AsnEncodingRules.BER, 730Pbkdf2Params pbkdf2Params = Pbkdf2Params.Decode(parameters.Value, AsnEncodingRules.BER); 819PBEParameter pbeParameters = PBEParameter.Decode(algorithmParameters.Value, AsnEncodingRules.BER); 882AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (4)
23RSAPrivateKeyAsn key = RSAPrivateKeyAsn.Decode(keyData, AsnEncodingRules.BER); 63RSAPublicKeyAsn key = RSAPublicKeyAsn.Decode(keyData, AsnEncodingRules.BER); 82RSAPublicKeyAsn.Decode(keyData, AsnEncodingRules.BER); 212AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (3)
493AsnEncodingRules.BER, 609AsnEncodingRules.BER, 813_ = RSAPrivateKeyAsn.Decode(pkcs1Priv, AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
635if (!AsnDecoder.TryDecodeLength(lengthPart, AsnEncodingRules.BER, out int? decoded, out int decodedLength))
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);
System\Security\Cryptography\Helpers.cs (2)
161AsnEncodingRules.BER, 178byte[] ret = AsnDecoder.ReadOctetString(input, AsnEncodingRules.BER, out consumed);
System\Security\Cryptography\RSA.cs (2)
897AsnEncodingRules.BER, 927AsnEncodingRules.BER,
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
168BasicConstraintsAsn constraints = BasicConstraintsAsn.Decode(encoded, AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (5)
134AsnValueReader reader = new AsnValueReader(memory.Span, AsnEncodingRules.BER); 160AsnValueReader reader = new AsnValueReader(memory.Span, AsnEncodingRules.BER); 229CertBagAsn certBag = CertBagAsn.Decode(safeBag.BagValue, AsnEncodingRules.BER); 261PrivateKeyInfoAsn.Decode(safeBag.BagValue, AsnEncodingRules.BER); 524AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
90AsnReader reader = new AsnReader(encoded, AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
70AsnValueReader reader = new AsnValueReader(encoded, AsnEncodingRules.BER);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
108AsnEncodingRules.BER,
System.Security.Cryptography.Pkcs (63)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (2)
71AsnEncodingRules.BER); 103AsnReader reader = new AsnReader(asn.Parameters.Value, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Asn.cs (1)
20AsnValueReader reader = new AsnValueReader(encodedMessage, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (2)
106AsnEncodingRules.BER); 121AsnReader reader = new AsnReader(contentEncryptionAlgorithm.Parameters.Value, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (2)
29EnvelopedDataAsn data = EnvelopedDataAsn.Decode(copy, AsnEncodingRules.BER); 89AsnValueReader reader = new AsnValueReader(encodedMessage, AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
128AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
184AsnEncodingRules.BER,
Internal\Cryptography\PkcsHelpers.cs (7)
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); 589AsnEncodingRules.BER, 618AsnEncodingRules.BER,
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (2)
115AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 142AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
105AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 286AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 337AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER); 373AsnWriter pkcs8Writer = new AsnWriter(AsnEncodingRules.BER);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (6)
520PBES2Params pbes2Params = PBES2Params.Decode(algorithmParameters.Value, AsnEncodingRules.BER); 649AsnEncodingRules.BER); 702AsnEncodingRules.BER, 730Pbkdf2Params pbkdf2Params = Pbkdf2Params.Decode(parameters.Value, AsnEncodingRules.BER); 819PBEParameter pbeParameters = PBEParameter.Decode(algorithmParameters.Value, AsnEncodingRules.BER); 882AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
243AsnWriter attrsWriter = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
175AsnWriter contentsWriter = new AsnWriter(AsnEncodingRules.BER); 236AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 318AsnWriter contentsWriter = new AsnWriter(AsnEncodingRules.BER); 319AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (5)
45_decoded = CertBagAsn.Decode(EncodedBagValue, AsnEncodingRules.BER); 58_decoded = CertBagAsn.Decode(EncodedBagValue, AsnEncodingRules.BER); 100AsnEncodingRules.BER, 118AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 125CertBagAsn decoded = CertBagAsn.Decode(bagValue, AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12Info.cs (3)
56PfxAsn pfx = PfxAsn.Decode(maybeCopy, AsnEncodingRules.BER); 82SignedDataAsn signedData = SignedDataAsn.Decode(pfx.AuthSafe.Content, AsnEncodingRules.BER); 105AsnValueReader authSafeReader = new AsnValueReader(authSafeBytes.Span, AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
97AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
231EncryptedDataAsn encryptedData = EncryptedDataAsn.Decode(_encrypted, AsnEncodingRules.BER); 302AsnValueReader reader = new AsnValueReader(serialized.Span, AsnEncodingRules.BER); 453writer = new AsnWriter(AsnEncodingRules.BER); 460writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (3)
28_decoded = SecretBagAsn.Decode(EncodedBagValue, AsnEncodingRules.BER); 54AsnWriter writer = new AsnWriter(AsnEncodingRules.BER); 61SecretBagAsn decoded = SecretBagAsn.Decode(bagValue, AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (2)
74AsnValueReader reader = new AsnValueReader(source.Span, AsnEncodingRules.BER); 269AsnWriter writer = new AsnWriter(AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (3)
303AsnValueReader reader = new AsnValueReader(encodedBytes.Span, AsnEncodingRules.BER); 605AsnEncodingRules.BER); 632AsnEncodingRules.BER);
System\Security\Cryptography\Pkcs\SignedCms.cs (6)
149copy = SignedDataAsn.Decode(detachedWriter.Encode(), AsnEncodingRules.BER); 153AsnWriter attachedWriter = new AsnWriter(AsnEncodingRules.BER); 173_signedData = SignedDataAsn.Decode(_heldData, AsnEncodingRules.BER); 220AsnValueReader reader = new AsnValueReader(encodedMessage, AsnEncodingRules.BER); 260AsnReader reader = new AsnReader(wrappedContent, AsnEncodingRules.BER); 445AsnEncodingRules.BER,
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
52AsnEncodingRules.BER); 144SignerInfoAsn counterSigner = SignerInfoAsn.Decode(counterSignerBytes, AsnEncodingRules.BER); 250SignerInfoAsn parsedData = SignerInfoAsn.Decode(attrValue, AsnEncodingRules.BER);