From 706e7225f819eff62c6ee25b14a7d2f7b948028e Mon Sep 17 00:00:00 2001 From: wigodbe Date: Wed, 20 May 2026 13:34:40 -0700 Subject: [PATCH 1/4] Add patched system.security.cryptography packages --- ...em.Security.Cryptography.Pkcs.8.0.1.csproj | 37 + .../System.Security.Cryptography.Pkcs.cs | 609 ++++++++++++++++ .../System.Security.Cryptography.Pkcs.cs | 610 ++++++++++++++++ .../System.Security.Cryptography.Pkcs.cs | 610 ++++++++++++++++ .../System.Security.Cryptography.Pkcs.cs | 414 +++++++++++ .../System.Security.Cryptography.Pkcs.cs | 606 ++++++++++++++++ ...tem.Security.Cryptography.Xml.8.0.3.csproj | 74 ++ .../System.Security.Cryptography.Xml.cs | 655 +++++++++++++++++ .../System.Security.Cryptography.Xml.cs | 674 +++++++++++++++++ .../System.Security.Cryptography.Xml.cs | 675 ++++++++++++++++++ .../System.Security.Cryptography.Xml.cs | 619 ++++++++++++++++ 11 files changed, 5583 insertions(+) create mode 100644 src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/System.Security.Cryptography.Pkcs.8.0.1.csproj create mode 100644 src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net6.0/System.Security.Cryptography.Pkcs.cs create mode 100644 src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net7.0/System.Security.Cryptography.Pkcs.cs create mode 100644 src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net8.0/System.Security.Cryptography.Pkcs.cs create mode 100644 src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/netstandard2.0/System.Security.Cryptography.Pkcs.cs create mode 100644 src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/netstandard2.1/System.Security.Cryptography.Pkcs.cs create mode 100644 src/referencePackages/src/system.security.cryptography.xml/8.0.3/System.Security.Cryptography.Xml.8.0.3.csproj create mode 100644 src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs create mode 100644 src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs create mode 100644 src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs create mode 100644 src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/netstandard2.0/System.Security.Cryptography.Xml.cs diff --git a/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/System.Security.Cryptography.Pkcs.8.0.1.csproj b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/System.Security.Cryptography.Pkcs.8.0.1.csproj new file mode 100644 index 0000000000..f787a60e2a --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/System.Security.Cryptography.Pkcs.8.0.1.csproj @@ -0,0 +1,37 @@ + + + + System.Security.Cryptography.Pkcs + net6.0;net7.0;net8.0;netstandard2.0;netstandard2.1 + 8.0.1 + System.Security.Cryptography.Pkcs + Provides support for PKCS and CMS algorithms. + +Commonly Used Types: +System.Security.Cryptography.Pkcs.EnvelopedCms + https://dot.net/ + MIT + https://go.microsoft.com/fwlink/?LinkID=799421 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net6.0/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net6.0/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 0000000000..036ed9cb36 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net6.0/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,609 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Pkcs")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.Versioning.UnsupportedOSPlatform("browser")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides support for PKCS and CMS algorithms.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Pkcs.EnvelopedCms")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.1024.46610")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.10+81cabf2857a01351e5ab578947c7403a5b128ad1")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Pkcs")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography +{ + public sealed partial class CryptographicAttributeObject + { + public CryptographicAttributeObject(Oid oid, AsnEncodedDataCollection? values) { } + public CryptographicAttributeObject(Oid oid) { } + public Oid Oid { get { throw null; } } + public AsnEncodedDataCollection Values { get { throw null; } } + } + public sealed partial class CryptographicAttributeObjectCollection : Collections.ICollection, Collections.IEnumerable + { + public CryptographicAttributeObjectCollection() { } + public CryptographicAttributeObjectCollection(CryptographicAttributeObject attribute) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CryptographicAttributeObject this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(AsnEncodedData asnEncodedData) { throw null; } + public int Add(CryptographicAttributeObject attribute) { throw null; } + public void CopyTo(CryptographicAttributeObject[] array, int index) { } + public CryptographicAttributeObjectEnumerator GetEnumerator() { throw null; } + public void Remove(CryptographicAttributeObject attribute) { } + void Collections.ICollection.CopyTo(Array array, int index) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CryptographicAttributeObjectEnumerator : Collections.IEnumerator + { + internal CryptographicAttributeObjectEnumerator() { } + public CryptographicAttributeObject Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } +} + +namespace System.Security.Cryptography.Pkcs +{ + public sealed partial class AlgorithmIdentifier + { + public AlgorithmIdentifier() { } + public AlgorithmIdentifier(Oid oid, int keyLength) { } + public AlgorithmIdentifier(Oid oid) { } + public int KeyLength { get { throw null; } set { } } + public Oid Oid { get { throw null; } set { } } + public byte[] Parameters { get { throw null; } set { } } + } + public sealed partial class CmsRecipient + { + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate, RSAEncryptionPadding rsaEncryptionPadding) { } + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate, RSAEncryptionPadding rsaEncryptionPadding) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate) { } + public X509Certificates.X509Certificate2 Certificate { get { throw null; } } + public SubjectIdentifierType RecipientIdentifierType { get { throw null; } } + public RSAEncryptionPadding? RSAEncryptionPadding { get { throw null; } } + } + public sealed partial class CmsRecipientCollection : Collections.ICollection, Collections.IEnumerable + { + public CmsRecipientCollection() { } + public CmsRecipientCollection(CmsRecipient recipient) { } + public CmsRecipientCollection(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2Collection certificates) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CmsRecipient this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(CmsRecipient recipient) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(CmsRecipient[] array, int index) { } + public CmsRecipientEnumerator GetEnumerator() { throw null; } + public void Remove(CmsRecipient recipient) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CmsRecipientEnumerator : Collections.IEnumerator + { + internal CmsRecipientEnumerator() { } + public CmsRecipient Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class CmsSigner + { + public CmsSigner() { } + [Obsolete("CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.", DiagnosticId = "SYSLIB0034", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public CmsSigner(CspParameters parameters) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, AsymmetricAlgorithm? privateKey) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, RSA? privateKey, RSASignaturePadding? signaturePadding) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType) { } + public CmsSigner(X509Certificates.X509Certificate2? certificate) { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } set { } } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } set { } } + public X509Certificates.X509IncludeOption IncludeOption { get { throw null; } set { } } + public AsymmetricAlgorithm? PrivateKey { get { throw null; } set { } } + public RSASignaturePadding? SignaturePadding { get { throw null; } set { } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifierType SignerIdentifierType { get { throw null; } set { } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + } + public sealed partial class ContentInfo + { + public ContentInfo(byte[] content) { } + public ContentInfo(Oid contentType, byte[] content) { } + public byte[] Content { get { throw null; } } + public Oid ContentType { get { throw null; } } + + public static Oid GetContentType(byte[] encodedMessage) { throw null; } + public static Oid GetContentType(ReadOnlySpan encodedMessage) { throw null; } + } + public sealed partial class EnvelopedCms + { + public EnvelopedCms() { } + public EnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm) { } + public EnvelopedCms(ContentInfo contentInfo) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public AlgorithmIdentifier ContentEncryptionAlgorithm { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public RecipientInfoCollection RecipientInfos { get { throw null; } } + public CryptographicAttributeObjectCollection UnprotectedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public void Decrypt() { } + public void Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm? privateKey) { } + public void Decrypt(RecipientInfo recipientInfo, X509Certificates.X509Certificate2Collection extraStore) { } + public void Decrypt(RecipientInfo recipientInfo) { } + public void Decrypt(X509Certificates.X509Certificate2Collection extraStore) { } + public byte[] Encode() { throw null; } + public void Encrypt(CmsRecipient recipient) { } + public void Encrypt(CmsRecipientCollection recipients) { } + } + public sealed partial class KeyAgreeRecipientInfo : RecipientInfo + { + internal KeyAgreeRecipientInfo() { } + public DateTime Date { get { throw null; } } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public SubjectIdentifierOrKey OriginatorIdentifierOrKey { get { throw null; } } + public CryptographicAttributeObject? OtherKeyAttribute { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class KeyTransRecipientInfo : RecipientInfo + { + internal KeyTransRecipientInfo() { } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class Pkcs12Builder + { + public bool IsSealed { get { throw null; } } + + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, byte[]? passwordBytes, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, ReadOnlySpan password, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, string? password, PbeParameters pbeParameters) { } + public void AddSafeContentsUnencrypted(Pkcs12SafeContents safeContents) { } + public byte[] Encode() { throw null; } + public void SealWithMac(ReadOnlySpan password, HashAlgorithmName hashAlgorithm, int iterationCount) { } + public void SealWithMac(string? password, HashAlgorithmName hashAlgorithm, int iterationCount) { } + public void SealWithoutIntegrity() { } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Pkcs12CertBag : Pkcs12SafeBag + { + public Pkcs12CertBag(Oid certificateType, ReadOnlyMemory encodedCertificate) : base(default!, default, default) { } + public ReadOnlyMemory EncodedCertificate { get { throw null; } } + public bool IsX509Certificate { get { throw null; } } + + public X509Certificates.X509Certificate2 GetCertificate() { throw null; } + public Oid GetCertificateType() { throw null; } + } + + public enum Pkcs12ConfidentialityMode + { + Unknown = 0, + None = 1, + Password = 2, + PublicKey = 3 + } + + public sealed partial class Pkcs12Info + { + internal Pkcs12Info() { } + public Collections.ObjectModel.ReadOnlyCollection AuthenticatedSafe { get { throw null; } } + public Pkcs12IntegrityMode IntegrityMode { get { throw null; } } + + public static Pkcs12Info Decode(ReadOnlyMemory encodedBytes, out int bytesConsumed, bool skipCopy = false) { throw null; } + public bool VerifyMac(ReadOnlySpan password) { throw null; } + public bool VerifyMac(string? password) { throw null; } + } + public enum Pkcs12IntegrityMode + { + Unknown = 0, + None = 1, + Password = 2, + PublicKey = 3 + } + + public sealed partial class Pkcs12KeyBag : Pkcs12SafeBag + { + public Pkcs12KeyBag(ReadOnlyMemory pkcs8PrivateKey, bool skipCopy = false) : base(default!, default, default) { } + public ReadOnlyMemory Pkcs8PrivateKey { get { throw null; } } + } + + public abstract partial class Pkcs12SafeBag + { + protected Pkcs12SafeBag(string bagIdValue, ReadOnlyMemory encodedBagValue, bool skipCopy = false) { } + public CryptographicAttributeObjectCollection Attributes { get { throw null; } } + public ReadOnlyMemory EncodedBagValue { get { throw null; } } + + public byte[] Encode() { throw null; } + public Oid GetBagId() { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Pkcs12SafeContents + { + public Pkcs12ConfidentialityMode ConfidentialityMode { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public Pkcs12CertBag AddCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + public Pkcs12KeyBag AddKeyUnencrypted(AsymmetricAlgorithm key) { throw null; } + public Pkcs12SafeContentsBag AddNestedContents(Pkcs12SafeContents safeContents) { throw null; } + public void AddSafeBag(Pkcs12SafeBag safeBag) { } + public Pkcs12SecretBag AddSecret(Oid secretType, ReadOnlyMemory secretValue) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, byte[]? passwordBytes, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, ReadOnlySpan password, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, string? password, PbeParameters pbeParameters) { throw null; } + public void Decrypt(byte[]? passwordBytes) { } + public void Decrypt(ReadOnlySpan passwordBytes) { } + public void Decrypt(ReadOnlySpan password) { } + public void Decrypt(string? password) { } + public Collections.Generic.IEnumerable GetBags() { throw null; } + } + public sealed partial class Pkcs12SafeContentsBag : Pkcs12SafeBag + { + internal Pkcs12SafeContentsBag() : base(default!, default, default) { } + public Pkcs12SafeContents? SafeContents { get { throw null; } } + } + + public sealed partial class Pkcs12SecretBag : Pkcs12SafeBag + { + internal Pkcs12SecretBag() : base(default!, default, default) { } + public ReadOnlyMemory SecretValue { get { throw null; } } + + public Oid GetSecretType() { throw null; } + } + + public sealed partial class Pkcs12ShroudedKeyBag : Pkcs12SafeBag + { + public Pkcs12ShroudedKeyBag(ReadOnlyMemory encryptedPkcs8PrivateKey, bool skipCopy = false) : base(default!, default, default) { } + public ReadOnlyMemory EncryptedPkcs8PrivateKey { get { throw null; } } + } + + public sealed partial class Pkcs8PrivateKeyInfo + { + public Pkcs8PrivateKeyInfo(Oid algorithmId, ReadOnlyMemory? algorithmParameters, ReadOnlyMemory privateKey, bool skipCopies = false) { } + public Oid AlgorithmId { get { throw null; } } + public ReadOnlyMemory? AlgorithmParameters { get { throw null; } } + public CryptographicAttributeObjectCollection Attributes { get { throw null; } } + public ReadOnlyMemory PrivateKeyBytes { get { throw null; } } + + public static Pkcs8PrivateKeyInfo Create(AsymmetricAlgorithm privateKey) { throw null; } + public static Pkcs8PrivateKeyInfo Decode(ReadOnlyMemory source, out int bytesRead, bool skipCopy = false) { throw null; } + public static Pkcs8PrivateKeyInfo DecryptAndDecode(ReadOnlySpan passwordBytes, ReadOnlyMemory source, out int bytesRead) { throw null; } + public static Pkcs8PrivateKeyInfo DecryptAndDecode(ReadOnlySpan password, ReadOnlyMemory source, out int bytesRead) { throw null; } + public byte[] Encode() { throw null; } + public byte[] Encrypt(ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { throw null; } + public byte[] Encrypt(ReadOnlySpan password, PbeParameters pbeParameters) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + public bool TryEncrypt(ReadOnlySpan passwordBytes, PbeParameters pbeParameters, Span destination, out int bytesWritten) { throw null; } + public bool TryEncrypt(ReadOnlySpan password, PbeParameters pbeParameters, Span destination, out int bytesWritten) { throw null; } + } + public partial class Pkcs9AttributeObject : AsnEncodedData + { + public Pkcs9AttributeObject() { } + public Pkcs9AttributeObject(AsnEncodedData asnEncodedData) { } + public Pkcs9AttributeObject(Oid oid, byte[] encodedData) { } + public Pkcs9AttributeObject(string oid, byte[] encodedData) { } + public new Oid? Oid { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9ContentType : Pkcs9AttributeObject + { + public Oid ContentType { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentDescription : Pkcs9AttributeObject + { + public Pkcs9DocumentDescription() { } + public Pkcs9DocumentDescription(byte[] encodedDocumentDescription) { } + public Pkcs9DocumentDescription(string documentDescription) { } + public string DocumentDescription { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentName : Pkcs9AttributeObject + { + public Pkcs9DocumentName() { } + public Pkcs9DocumentName(byte[] encodedDocumentName) { } + public Pkcs9DocumentName(string documentName) { } + public string DocumentName { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9LocalKeyId : Pkcs9AttributeObject + { + public Pkcs9LocalKeyId() { } + public Pkcs9LocalKeyId(byte[] keyId) { } + public Pkcs9LocalKeyId(ReadOnlySpan keyId) { } + public ReadOnlyMemory KeyId { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9MessageDigest : Pkcs9AttributeObject + { + public byte[] MessageDigest { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9SigningTime : Pkcs9AttributeObject + { + public Pkcs9SigningTime() { } + public Pkcs9SigningTime(byte[] encodedSigningTime) { } + public Pkcs9SigningTime(DateTime signingTime) { } + public DateTime SigningTime { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class PublicKeyInfo + { + internal PublicKeyInfo() { } + public AlgorithmIdentifier Algorithm { get { throw null; } } + public byte[] KeyValue { get { throw null; } } + } + public abstract partial class RecipientInfo + { + internal RecipientInfo() { } + public abstract byte[] EncryptedKey { get; } + public abstract AlgorithmIdentifier KeyEncryptionAlgorithm { get; } + public abstract SubjectIdentifier RecipientIdentifier { get; } + public RecipientInfoType Type { get { throw null; } } + public abstract int Version { get; } + } + public sealed partial class RecipientInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal RecipientInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public RecipientInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(RecipientInfo[] array, int index) { } + public RecipientInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class RecipientInfoEnumerator : Collections.IEnumerator + { + internal RecipientInfoEnumerator() { } + public RecipientInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public enum RecipientInfoType + { + Unknown = 0, + KeyTransport = 1, + KeyAgreement = 2 + } + + public sealed partial class Rfc3161TimestampRequest + { + internal Rfc3161TimestampRequest() { } + public bool HasExtensions { get { throw null; } } + public Oid HashAlgorithmId { get { throw null; } } + public Oid? RequestedPolicyId { get { throw null; } } + public bool RequestSignerCertificate { get { throw null; } } + public int Version { get { throw null; } } + + public static Rfc3161TimestampRequest CreateFromData(ReadOnlySpan data, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory hash, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory hash, Oid hashAlgorithmId, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromSignerInfo(SignerInfo signerInfo, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public byte[] Encode() { throw null; } + public X509Certificates.X509ExtensionCollection GetExtensions() { throw null; } + public ReadOnlyMemory GetMessageHash() { throw null; } + public ReadOnlyMemory? GetNonce() { throw null; } + public Rfc3161TimestampToken ProcessResponse(ReadOnlyMemory responseBytes, out int bytesConsumed) { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampRequest? request, out int bytesConsumed) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Rfc3161TimestampToken + { + internal Rfc3161TimestampToken() { } + public Rfc3161TimestampTokenInfo TokenInfo { get { throw null; } } + + public SignedCms AsSignedCms() { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampToken? token, out int bytesConsumed) { throw null; } + public bool VerifySignatureForData(ReadOnlySpan data, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForHash(ReadOnlySpan hash, HashAlgorithmName hashAlgorithm, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForHash(ReadOnlySpan hash, Oid hashAlgorithmId, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForSignerInfo(SignerInfo signerInfo, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + } + public sealed partial class Rfc3161TimestampTokenInfo + { + public Rfc3161TimestampTokenInfo(Oid policyId, Oid hashAlgorithmId, ReadOnlyMemory messageHash, ReadOnlyMemory serialNumber, DateTimeOffset timestamp, long? accuracyInMicroseconds = null, bool isOrdering = false, ReadOnlyMemory? nonce = null, ReadOnlyMemory? timestampAuthorityName = null, X509Certificates.X509ExtensionCollection? extensions = null) { } + public long? AccuracyInMicroseconds { get { throw null; } } + public bool HasExtensions { get { throw null; } } + public Oid HashAlgorithmId { get { throw null; } } + public bool IsOrdering { get { throw null; } } + public Oid PolicyId { get { throw null; } } + public DateTimeOffset Timestamp { get { throw null; } } + public int Version { get { throw null; } } + + public byte[] Encode() { throw null; } + public X509Certificates.X509ExtensionCollection GetExtensions() { throw null; } + public ReadOnlyMemory GetMessageHash() { throw null; } + public ReadOnlyMemory? GetNonce() { throw null; } + public ReadOnlyMemory GetSerialNumber() { throw null; } + public ReadOnlyMemory? GetTimestampAuthorityName() { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampTokenInfo? timestampTokenInfo, out int bytesConsumed) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class SignedCms + { + public SignedCms() { } + public SignedCms(ContentInfo contentInfo, bool detached) { } + public SignedCms(ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo, bool detached) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public bool Detached { get { throw null; } } + public SignerInfoCollection SignerInfos { get { throw null; } } + public int Version { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate2 certificate) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + public void ComputeSignature() { } + public void ComputeSignature(CmsSigner signer, bool silent) { } + public void ComputeSignature(CmsSigner signer) { } + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public byte[] Encode() { throw null; } + public void RemoveCertificate(X509Certificates.X509Certificate2 certificate) { } + public void RemoveSignature(int index) { } + public void RemoveSignature(SignerInfo signerInfo) { } + } + public sealed partial class SignerInfo + { + internal SignerInfo() { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } } + public SignerInfoCollection CounterSignerInfos { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } } + public Oid SignatureAlgorithm { get { throw null; } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifier SignerIdentifier { get { throw null; } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void AddUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + [Obsolete("ComputeCounterSignature without specifying a CmsSigner is obsolete and is not supported. Use the overload that accepts a CmsSigner.", DiagnosticId = "SYSLIB0035", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public void ComputeCounterSignature() { } + public void ComputeCounterSignature(CmsSigner signer) { } + public byte[] GetSignature() { throw null; } + public void RemoveCounterSignature(int index) { } + public void RemoveCounterSignature(SignerInfo counterSignerInfo) { } + public void RemoveUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + } + public sealed partial class SignerInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal SignerInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public SignerInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(SignerInfo[] array, int index) { } + public SignerInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class SignerInfoEnumerator : Collections.IEnumerator + { + internal SignerInfoEnumerator() { } + public SignerInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class SubjectIdentifier + { + internal SubjectIdentifier() { } + public SubjectIdentifierType Type { get { throw null; } } + public object? Value { get { throw null; } } + + public bool MatchesCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + } + public sealed partial class SubjectIdentifierOrKey + { + internal SubjectIdentifierOrKey() { } + public SubjectIdentifierOrKeyType Type { get { throw null; } } + public object Value { get { throw null; } } + } + public enum SubjectIdentifierOrKeyType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + PublicKeyInfo = 3 + } + + public enum SubjectIdentifierType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + NoSignature = 3 + } +} + +namespace System.Security.Cryptography.Xml +{ + public partial struct X509IssuerSerial + { + private object _dummy; + private int _dummyPrimitive; + public string IssuerName { get { throw null; } set { } } + public string SerialNumber { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net7.0/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net7.0/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 0000000000..1b3bc257cc --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net7.0/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,610 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.CompilerServices.DisableRuntimeMarshalling] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Pkcs")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.Versioning.UnsupportedOSPlatform("browser")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides support for PKCS and CMS algorithms.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Pkcs.EnvelopedCms")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.1024.46610")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.10+81cabf2857a01351e5ab578947c7403a5b128ad1")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Pkcs")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography +{ + public sealed partial class CryptographicAttributeObject + { + public CryptographicAttributeObject(Oid oid, AsnEncodedDataCollection? values) { } + public CryptographicAttributeObject(Oid oid) { } + public Oid Oid { get { throw null; } } + public AsnEncodedDataCollection Values { get { throw null; } } + } + public sealed partial class CryptographicAttributeObjectCollection : Collections.ICollection, Collections.IEnumerable + { + public CryptographicAttributeObjectCollection() { } + public CryptographicAttributeObjectCollection(CryptographicAttributeObject attribute) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CryptographicAttributeObject this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(AsnEncodedData asnEncodedData) { throw null; } + public int Add(CryptographicAttributeObject attribute) { throw null; } + public void CopyTo(CryptographicAttributeObject[] array, int index) { } + public CryptographicAttributeObjectEnumerator GetEnumerator() { throw null; } + public void Remove(CryptographicAttributeObject attribute) { } + void Collections.ICollection.CopyTo(Array array, int index) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CryptographicAttributeObjectEnumerator : Collections.IEnumerator + { + internal CryptographicAttributeObjectEnumerator() { } + public CryptographicAttributeObject Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } +} + +namespace System.Security.Cryptography.Pkcs +{ + public sealed partial class AlgorithmIdentifier + { + public AlgorithmIdentifier() { } + public AlgorithmIdentifier(Oid oid, int keyLength) { } + public AlgorithmIdentifier(Oid oid) { } + public int KeyLength { get { throw null; } set { } } + public Oid Oid { get { throw null; } set { } } + public byte[] Parameters { get { throw null; } set { } } + } + public sealed partial class CmsRecipient + { + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate, RSAEncryptionPadding rsaEncryptionPadding) { } + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate, RSAEncryptionPadding rsaEncryptionPadding) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate) { } + public X509Certificates.X509Certificate2 Certificate { get { throw null; } } + public SubjectIdentifierType RecipientIdentifierType { get { throw null; } } + public RSAEncryptionPadding? RSAEncryptionPadding { get { throw null; } } + } + public sealed partial class CmsRecipientCollection : Collections.ICollection, Collections.IEnumerable + { + public CmsRecipientCollection() { } + public CmsRecipientCollection(CmsRecipient recipient) { } + public CmsRecipientCollection(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2Collection certificates) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CmsRecipient this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(CmsRecipient recipient) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(CmsRecipient[] array, int index) { } + public CmsRecipientEnumerator GetEnumerator() { throw null; } + public void Remove(CmsRecipient recipient) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CmsRecipientEnumerator : Collections.IEnumerator + { + internal CmsRecipientEnumerator() { } + public CmsRecipient Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class CmsSigner + { + public CmsSigner() { } + [Obsolete("CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.", DiagnosticId = "SYSLIB0034", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public CmsSigner(CspParameters parameters) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, AsymmetricAlgorithm? privateKey) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, RSA? privateKey, RSASignaturePadding? signaturePadding) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType) { } + public CmsSigner(X509Certificates.X509Certificate2? certificate) { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } set { } } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } set { } } + public X509Certificates.X509IncludeOption IncludeOption { get { throw null; } set { } } + public AsymmetricAlgorithm? PrivateKey { get { throw null; } set { } } + public RSASignaturePadding? SignaturePadding { get { throw null; } set { } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifierType SignerIdentifierType { get { throw null; } set { } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + } + public sealed partial class ContentInfo + { + public ContentInfo(byte[] content) { } + public ContentInfo(Oid contentType, byte[] content) { } + public byte[] Content { get { throw null; } } + public Oid ContentType { get { throw null; } } + + public static Oid GetContentType(byte[] encodedMessage) { throw null; } + public static Oid GetContentType(ReadOnlySpan encodedMessage) { throw null; } + } + public sealed partial class EnvelopedCms + { + public EnvelopedCms() { } + public EnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm) { } + public EnvelopedCms(ContentInfo contentInfo) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public AlgorithmIdentifier ContentEncryptionAlgorithm { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public RecipientInfoCollection RecipientInfos { get { throw null; } } + public CryptographicAttributeObjectCollection UnprotectedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public void Decrypt() { } + public void Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm? privateKey) { } + public void Decrypt(RecipientInfo recipientInfo, X509Certificates.X509Certificate2Collection extraStore) { } + public void Decrypt(RecipientInfo recipientInfo) { } + public void Decrypt(X509Certificates.X509Certificate2Collection extraStore) { } + public byte[] Encode() { throw null; } + public void Encrypt(CmsRecipient recipient) { } + public void Encrypt(CmsRecipientCollection recipients) { } + } + public sealed partial class KeyAgreeRecipientInfo : RecipientInfo + { + internal KeyAgreeRecipientInfo() { } + public DateTime Date { get { throw null; } } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public SubjectIdentifierOrKey OriginatorIdentifierOrKey { get { throw null; } } + public CryptographicAttributeObject? OtherKeyAttribute { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class KeyTransRecipientInfo : RecipientInfo + { + internal KeyTransRecipientInfo() { } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class Pkcs12Builder + { + public bool IsSealed { get { throw null; } } + + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, byte[]? passwordBytes, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, ReadOnlySpan password, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, string? password, PbeParameters pbeParameters) { } + public void AddSafeContentsUnencrypted(Pkcs12SafeContents safeContents) { } + public byte[] Encode() { throw null; } + public void SealWithMac(ReadOnlySpan password, HashAlgorithmName hashAlgorithm, int iterationCount) { } + public void SealWithMac(string? password, HashAlgorithmName hashAlgorithm, int iterationCount) { } + public void SealWithoutIntegrity() { } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Pkcs12CertBag : Pkcs12SafeBag + { + public Pkcs12CertBag(Oid certificateType, ReadOnlyMemory encodedCertificate) : base(default!, default, default) { } + public ReadOnlyMemory EncodedCertificate { get { throw null; } } + public bool IsX509Certificate { get { throw null; } } + + public X509Certificates.X509Certificate2 GetCertificate() { throw null; } + public Oid GetCertificateType() { throw null; } + } + + public enum Pkcs12ConfidentialityMode + { + Unknown = 0, + None = 1, + Password = 2, + PublicKey = 3 + } + + public sealed partial class Pkcs12Info + { + internal Pkcs12Info() { } + public Collections.ObjectModel.ReadOnlyCollection AuthenticatedSafe { get { throw null; } } + public Pkcs12IntegrityMode IntegrityMode { get { throw null; } } + + public static Pkcs12Info Decode(ReadOnlyMemory encodedBytes, out int bytesConsumed, bool skipCopy = false) { throw null; } + public bool VerifyMac(ReadOnlySpan password) { throw null; } + public bool VerifyMac(string? password) { throw null; } + } + public enum Pkcs12IntegrityMode + { + Unknown = 0, + None = 1, + Password = 2, + PublicKey = 3 + } + + public sealed partial class Pkcs12KeyBag : Pkcs12SafeBag + { + public Pkcs12KeyBag(ReadOnlyMemory pkcs8PrivateKey, bool skipCopy = false) : base(default!, default, default) { } + public ReadOnlyMemory Pkcs8PrivateKey { get { throw null; } } + } + + public abstract partial class Pkcs12SafeBag + { + protected Pkcs12SafeBag(string bagIdValue, ReadOnlyMemory encodedBagValue, bool skipCopy = false) { } + public CryptographicAttributeObjectCollection Attributes { get { throw null; } } + public ReadOnlyMemory EncodedBagValue { get { throw null; } } + + public byte[] Encode() { throw null; } + public Oid GetBagId() { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Pkcs12SafeContents + { + public Pkcs12ConfidentialityMode ConfidentialityMode { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public Pkcs12CertBag AddCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + public Pkcs12KeyBag AddKeyUnencrypted(AsymmetricAlgorithm key) { throw null; } + public Pkcs12SafeContentsBag AddNestedContents(Pkcs12SafeContents safeContents) { throw null; } + public void AddSafeBag(Pkcs12SafeBag safeBag) { } + public Pkcs12SecretBag AddSecret(Oid secretType, ReadOnlyMemory secretValue) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, byte[]? passwordBytes, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, ReadOnlySpan password, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, string? password, PbeParameters pbeParameters) { throw null; } + public void Decrypt(byte[]? passwordBytes) { } + public void Decrypt(ReadOnlySpan passwordBytes) { } + public void Decrypt(ReadOnlySpan password) { } + public void Decrypt(string? password) { } + public Collections.Generic.IEnumerable GetBags() { throw null; } + } + public sealed partial class Pkcs12SafeContentsBag : Pkcs12SafeBag + { + internal Pkcs12SafeContentsBag() : base(default!, default, default) { } + public Pkcs12SafeContents? SafeContents { get { throw null; } } + } + + public sealed partial class Pkcs12SecretBag : Pkcs12SafeBag + { + internal Pkcs12SecretBag() : base(default!, default, default) { } + public ReadOnlyMemory SecretValue { get { throw null; } } + + public Oid GetSecretType() { throw null; } + } + + public sealed partial class Pkcs12ShroudedKeyBag : Pkcs12SafeBag + { + public Pkcs12ShroudedKeyBag(ReadOnlyMemory encryptedPkcs8PrivateKey, bool skipCopy = false) : base(default!, default, default) { } + public ReadOnlyMemory EncryptedPkcs8PrivateKey { get { throw null; } } + } + + public sealed partial class Pkcs8PrivateKeyInfo + { + public Pkcs8PrivateKeyInfo(Oid algorithmId, ReadOnlyMemory? algorithmParameters, ReadOnlyMemory privateKey, bool skipCopies = false) { } + public Oid AlgorithmId { get { throw null; } } + public ReadOnlyMemory? AlgorithmParameters { get { throw null; } } + public CryptographicAttributeObjectCollection Attributes { get { throw null; } } + public ReadOnlyMemory PrivateKeyBytes { get { throw null; } } + + public static Pkcs8PrivateKeyInfo Create(AsymmetricAlgorithm privateKey) { throw null; } + public static Pkcs8PrivateKeyInfo Decode(ReadOnlyMemory source, out int bytesRead, bool skipCopy = false) { throw null; } + public static Pkcs8PrivateKeyInfo DecryptAndDecode(ReadOnlySpan passwordBytes, ReadOnlyMemory source, out int bytesRead) { throw null; } + public static Pkcs8PrivateKeyInfo DecryptAndDecode(ReadOnlySpan password, ReadOnlyMemory source, out int bytesRead) { throw null; } + public byte[] Encode() { throw null; } + public byte[] Encrypt(ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { throw null; } + public byte[] Encrypt(ReadOnlySpan password, PbeParameters pbeParameters) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + public bool TryEncrypt(ReadOnlySpan passwordBytes, PbeParameters pbeParameters, Span destination, out int bytesWritten) { throw null; } + public bool TryEncrypt(ReadOnlySpan password, PbeParameters pbeParameters, Span destination, out int bytesWritten) { throw null; } + } + public partial class Pkcs9AttributeObject : AsnEncodedData + { + public Pkcs9AttributeObject() { } + public Pkcs9AttributeObject(AsnEncodedData asnEncodedData) { } + public Pkcs9AttributeObject(Oid oid, byte[] encodedData) { } + public Pkcs9AttributeObject(string oid, byte[] encodedData) { } + public new Oid? Oid { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9ContentType : Pkcs9AttributeObject + { + public Oid ContentType { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentDescription : Pkcs9AttributeObject + { + public Pkcs9DocumentDescription() { } + public Pkcs9DocumentDescription(byte[] encodedDocumentDescription) { } + public Pkcs9DocumentDescription(string documentDescription) { } + public string DocumentDescription { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentName : Pkcs9AttributeObject + { + public Pkcs9DocumentName() { } + public Pkcs9DocumentName(byte[] encodedDocumentName) { } + public Pkcs9DocumentName(string documentName) { } + public string DocumentName { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9LocalKeyId : Pkcs9AttributeObject + { + public Pkcs9LocalKeyId() { } + public Pkcs9LocalKeyId(byte[] keyId) { } + public Pkcs9LocalKeyId(ReadOnlySpan keyId) { } + public ReadOnlyMemory KeyId { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9MessageDigest : Pkcs9AttributeObject + { + public byte[] MessageDigest { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9SigningTime : Pkcs9AttributeObject + { + public Pkcs9SigningTime() { } + public Pkcs9SigningTime(byte[] encodedSigningTime) { } + public Pkcs9SigningTime(DateTime signingTime) { } + public DateTime SigningTime { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class PublicKeyInfo + { + internal PublicKeyInfo() { } + public AlgorithmIdentifier Algorithm { get { throw null; } } + public byte[] KeyValue { get { throw null; } } + } + public abstract partial class RecipientInfo + { + internal RecipientInfo() { } + public abstract byte[] EncryptedKey { get; } + public abstract AlgorithmIdentifier KeyEncryptionAlgorithm { get; } + public abstract SubjectIdentifier RecipientIdentifier { get; } + public RecipientInfoType Type { get { throw null; } } + public abstract int Version { get; } + } + public sealed partial class RecipientInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal RecipientInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public RecipientInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(RecipientInfo[] array, int index) { } + public RecipientInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class RecipientInfoEnumerator : Collections.IEnumerator + { + internal RecipientInfoEnumerator() { } + public RecipientInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public enum RecipientInfoType + { + Unknown = 0, + KeyTransport = 1, + KeyAgreement = 2 + } + + public sealed partial class Rfc3161TimestampRequest + { + internal Rfc3161TimestampRequest() { } + public bool HasExtensions { get { throw null; } } + public Oid HashAlgorithmId { get { throw null; } } + public Oid? RequestedPolicyId { get { throw null; } } + public bool RequestSignerCertificate { get { throw null; } } + public int Version { get { throw null; } } + + public static Rfc3161TimestampRequest CreateFromData(ReadOnlySpan data, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory hash, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory hash, Oid hashAlgorithmId, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromSignerInfo(SignerInfo signerInfo, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public byte[] Encode() { throw null; } + public X509Certificates.X509ExtensionCollection GetExtensions() { throw null; } + public ReadOnlyMemory GetMessageHash() { throw null; } + public ReadOnlyMemory? GetNonce() { throw null; } + public Rfc3161TimestampToken ProcessResponse(ReadOnlyMemory responseBytes, out int bytesConsumed) { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampRequest? request, out int bytesConsumed) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Rfc3161TimestampToken + { + internal Rfc3161TimestampToken() { } + public Rfc3161TimestampTokenInfo TokenInfo { get { throw null; } } + + public SignedCms AsSignedCms() { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampToken? token, out int bytesConsumed) { throw null; } + public bool VerifySignatureForData(ReadOnlySpan data, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForHash(ReadOnlySpan hash, HashAlgorithmName hashAlgorithm, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForHash(ReadOnlySpan hash, Oid hashAlgorithmId, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForSignerInfo(SignerInfo signerInfo, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + } + public sealed partial class Rfc3161TimestampTokenInfo + { + public Rfc3161TimestampTokenInfo(Oid policyId, Oid hashAlgorithmId, ReadOnlyMemory messageHash, ReadOnlyMemory serialNumber, DateTimeOffset timestamp, long? accuracyInMicroseconds = null, bool isOrdering = false, ReadOnlyMemory? nonce = null, ReadOnlyMemory? timestampAuthorityName = null, X509Certificates.X509ExtensionCollection? extensions = null) { } + public long? AccuracyInMicroseconds { get { throw null; } } + public bool HasExtensions { get { throw null; } } + public Oid HashAlgorithmId { get { throw null; } } + public bool IsOrdering { get { throw null; } } + public Oid PolicyId { get { throw null; } } + public DateTimeOffset Timestamp { get { throw null; } } + public int Version { get { throw null; } } + + public byte[] Encode() { throw null; } + public X509Certificates.X509ExtensionCollection GetExtensions() { throw null; } + public ReadOnlyMemory GetMessageHash() { throw null; } + public ReadOnlyMemory? GetNonce() { throw null; } + public ReadOnlyMemory GetSerialNumber() { throw null; } + public ReadOnlyMemory? GetTimestampAuthorityName() { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampTokenInfo? timestampTokenInfo, out int bytesConsumed) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class SignedCms + { + public SignedCms() { } + public SignedCms(ContentInfo contentInfo, bool detached) { } + public SignedCms(ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo, bool detached) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public bool Detached { get { throw null; } } + public SignerInfoCollection SignerInfos { get { throw null; } } + public int Version { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate2 certificate) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + public void ComputeSignature() { } + public void ComputeSignature(CmsSigner signer, bool silent) { } + public void ComputeSignature(CmsSigner signer) { } + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public byte[] Encode() { throw null; } + public void RemoveCertificate(X509Certificates.X509Certificate2 certificate) { } + public void RemoveSignature(int index) { } + public void RemoveSignature(SignerInfo signerInfo) { } + } + public sealed partial class SignerInfo + { + internal SignerInfo() { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } } + public SignerInfoCollection CounterSignerInfos { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } } + public Oid SignatureAlgorithm { get { throw null; } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifier SignerIdentifier { get { throw null; } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void AddUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + [Obsolete("ComputeCounterSignature without specifying a CmsSigner is obsolete and is not supported. Use the overload that accepts a CmsSigner.", DiagnosticId = "SYSLIB0035", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public void ComputeCounterSignature() { } + public void ComputeCounterSignature(CmsSigner signer) { } + public byte[] GetSignature() { throw null; } + public void RemoveCounterSignature(int index) { } + public void RemoveCounterSignature(SignerInfo counterSignerInfo) { } + public void RemoveUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + } + public sealed partial class SignerInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal SignerInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public SignerInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(SignerInfo[] array, int index) { } + public SignerInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class SignerInfoEnumerator : Collections.IEnumerator + { + internal SignerInfoEnumerator() { } + public SignerInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class SubjectIdentifier + { + internal SubjectIdentifier() { } + public SubjectIdentifierType Type { get { throw null; } } + public object? Value { get { throw null; } } + + public bool MatchesCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + } + public sealed partial class SubjectIdentifierOrKey + { + internal SubjectIdentifierOrKey() { } + public SubjectIdentifierOrKeyType Type { get { throw null; } } + public object Value { get { throw null; } } + } + public enum SubjectIdentifierOrKeyType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + PublicKeyInfo = 3 + } + + public enum SubjectIdentifierType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + NoSignature = 3 + } +} + +namespace System.Security.Cryptography.Xml +{ + public partial struct X509IssuerSerial + { + private object _dummy; + private int _dummyPrimitive; + public string IssuerName { get { throw null; } set { } } + public string SerialNumber { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net8.0/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net8.0/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 0000000000..834e2fcbe5 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/net8.0/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,610 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.CompilerServices.DisableRuntimeMarshalling] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Pkcs")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.Versioning.UnsupportedOSPlatform("browser")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides support for PKCS and CMS algorithms.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Pkcs.EnvelopedCms")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.1024.46610")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.10+81cabf2857a01351e5ab578947c7403a5b128ad1")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Pkcs")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography +{ + public sealed partial class CryptographicAttributeObject + { + public CryptographicAttributeObject(Oid oid, AsnEncodedDataCollection? values) { } + public CryptographicAttributeObject(Oid oid) { } + public Oid Oid { get { throw null; } } + public AsnEncodedDataCollection Values { get { throw null; } } + } + public sealed partial class CryptographicAttributeObjectCollection : Collections.ICollection, Collections.IEnumerable + { + public CryptographicAttributeObjectCollection() { } + public CryptographicAttributeObjectCollection(CryptographicAttributeObject attribute) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CryptographicAttributeObject this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(AsnEncodedData asnEncodedData) { throw null; } + public int Add(CryptographicAttributeObject attribute) { throw null; } + public void CopyTo(CryptographicAttributeObject[] array, int index) { } + public CryptographicAttributeObjectEnumerator GetEnumerator() { throw null; } + public void Remove(CryptographicAttributeObject attribute) { } + void Collections.ICollection.CopyTo(Array array, int index) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CryptographicAttributeObjectEnumerator : Collections.IEnumerator + { + internal CryptographicAttributeObjectEnumerator() { } + public CryptographicAttributeObject Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } +} + +namespace System.Security.Cryptography.Pkcs +{ + public sealed partial class AlgorithmIdentifier + { + public AlgorithmIdentifier() { } + public AlgorithmIdentifier(Oid oid, int keyLength) { } + public AlgorithmIdentifier(Oid oid) { } + public int KeyLength { get { throw null; } set { } } + public Oid Oid { get { throw null; } set { } } + public byte[] Parameters { get { throw null; } set { } } + } + public sealed partial class CmsRecipient + { + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate, RSAEncryptionPadding rsaEncryptionPadding) { } + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate, RSAEncryptionPadding rsaEncryptionPadding) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate) { } + public X509Certificates.X509Certificate2 Certificate { get { throw null; } } + public SubjectIdentifierType RecipientIdentifierType { get { throw null; } } + public RSAEncryptionPadding? RSAEncryptionPadding { get { throw null; } } + } + public sealed partial class CmsRecipientCollection : Collections.ICollection, Collections.IEnumerable + { + public CmsRecipientCollection() { } + public CmsRecipientCollection(CmsRecipient recipient) { } + public CmsRecipientCollection(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2Collection certificates) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CmsRecipient this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(CmsRecipient recipient) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(CmsRecipient[] array, int index) { } + public CmsRecipientEnumerator GetEnumerator() { throw null; } + public void Remove(CmsRecipient recipient) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CmsRecipientEnumerator : Collections.IEnumerator + { + internal CmsRecipientEnumerator() { } + public CmsRecipient Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class CmsSigner + { + public CmsSigner() { } + [Obsolete("CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.", DiagnosticId = "SYSLIB0034", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public CmsSigner(CspParameters parameters) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, AsymmetricAlgorithm? privateKey) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, RSA? privateKey, RSASignaturePadding? signaturePadding) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType) { } + public CmsSigner(X509Certificates.X509Certificate2? certificate) { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } set { } } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } set { } } + public X509Certificates.X509IncludeOption IncludeOption { get { throw null; } set { } } + public AsymmetricAlgorithm? PrivateKey { get { throw null; } set { } } + public RSASignaturePadding? SignaturePadding { get { throw null; } set { } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifierType SignerIdentifierType { get { throw null; } set { } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + } + public sealed partial class ContentInfo + { + public ContentInfo(byte[] content) { } + public ContentInfo(Oid contentType, byte[] content) { } + public byte[] Content { get { throw null; } } + public Oid ContentType { get { throw null; } } + + public static Oid GetContentType(byte[] encodedMessage) { throw null; } + public static Oid GetContentType(ReadOnlySpan encodedMessage) { throw null; } + } + public sealed partial class EnvelopedCms + { + public EnvelopedCms() { } + public EnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm) { } + public EnvelopedCms(ContentInfo contentInfo) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public AlgorithmIdentifier ContentEncryptionAlgorithm { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public RecipientInfoCollection RecipientInfos { get { throw null; } } + public CryptographicAttributeObjectCollection UnprotectedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public void Decrypt() { } + public void Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm? privateKey) { } + public void Decrypt(RecipientInfo recipientInfo, X509Certificates.X509Certificate2Collection extraStore) { } + public void Decrypt(RecipientInfo recipientInfo) { } + public void Decrypt(X509Certificates.X509Certificate2Collection extraStore) { } + public byte[] Encode() { throw null; } + public void Encrypt(CmsRecipient recipient) { } + public void Encrypt(CmsRecipientCollection recipients) { } + } + public sealed partial class KeyAgreeRecipientInfo : RecipientInfo + { + internal KeyAgreeRecipientInfo() { } + public DateTime Date { get { throw null; } } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public SubjectIdentifierOrKey OriginatorIdentifierOrKey { get { throw null; } } + public CryptographicAttributeObject? OtherKeyAttribute { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class KeyTransRecipientInfo : RecipientInfo + { + internal KeyTransRecipientInfo() { } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class Pkcs12Builder + { + public bool IsSealed { get { throw null; } } + + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, byte[]? passwordBytes, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, ReadOnlySpan password, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, string? password, PbeParameters pbeParameters) { } + public void AddSafeContentsUnencrypted(Pkcs12SafeContents safeContents) { } + public byte[] Encode() { throw null; } + public void SealWithMac(ReadOnlySpan password, HashAlgorithmName hashAlgorithm, int iterationCount) { } + public void SealWithMac(string? password, HashAlgorithmName hashAlgorithm, int iterationCount) { } + public void SealWithoutIntegrity() { } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Pkcs12CertBag : Pkcs12SafeBag + { + public Pkcs12CertBag(Oid certificateType, ReadOnlyMemory encodedCertificate) : base(default!, default, default) { } + public ReadOnlyMemory EncodedCertificate { get { throw null; } } + public bool IsX509Certificate { get { throw null; } } + + public X509Certificates.X509Certificate2 GetCertificate() { throw null; } + public Oid GetCertificateType() { throw null; } + } + + public enum Pkcs12ConfidentialityMode + { + Unknown = 0, + None = 1, + Password = 2, + PublicKey = 3 + } + + public sealed partial class Pkcs12Info + { + internal Pkcs12Info() { } + public Collections.ObjectModel.ReadOnlyCollection AuthenticatedSafe { get { throw null; } } + public Pkcs12IntegrityMode IntegrityMode { get { throw null; } } + + public static Pkcs12Info Decode(ReadOnlyMemory encodedBytes, out int bytesConsumed, bool skipCopy = false) { throw null; } + public bool VerifyMac(ReadOnlySpan password) { throw null; } + public bool VerifyMac(string? password) { throw null; } + } + public enum Pkcs12IntegrityMode + { + Unknown = 0, + None = 1, + Password = 2, + PublicKey = 3 + } + + public sealed partial class Pkcs12KeyBag : Pkcs12SafeBag + { + public Pkcs12KeyBag(ReadOnlyMemory pkcs8PrivateKey, bool skipCopy = false) : base(default!, default, default) { } + public ReadOnlyMemory Pkcs8PrivateKey { get { throw null; } } + } + + public abstract partial class Pkcs12SafeBag + { + protected Pkcs12SafeBag(string bagIdValue, ReadOnlyMemory encodedBagValue, bool skipCopy = false) { } + public CryptographicAttributeObjectCollection Attributes { get { throw null; } } + public ReadOnlyMemory EncodedBagValue { get { throw null; } } + + public byte[] Encode() { throw null; } + public Oid GetBagId() { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Pkcs12SafeContents + { + public Pkcs12ConfidentialityMode ConfidentialityMode { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public Pkcs12CertBag AddCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + public Pkcs12KeyBag AddKeyUnencrypted(AsymmetricAlgorithm key) { throw null; } + public Pkcs12SafeContentsBag AddNestedContents(Pkcs12SafeContents safeContents) { throw null; } + public void AddSafeBag(Pkcs12SafeBag safeBag) { } + public Pkcs12SecretBag AddSecret(Oid secretType, ReadOnlyMemory secretValue) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, byte[]? passwordBytes, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, ReadOnlySpan password, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, string? password, PbeParameters pbeParameters) { throw null; } + public void Decrypt(byte[]? passwordBytes) { } + public void Decrypt(ReadOnlySpan passwordBytes) { } + public void Decrypt(ReadOnlySpan password) { } + public void Decrypt(string? password) { } + public Collections.Generic.IEnumerable GetBags() { throw null; } + } + public sealed partial class Pkcs12SafeContentsBag : Pkcs12SafeBag + { + internal Pkcs12SafeContentsBag() : base(default!, default, default) { } + public Pkcs12SafeContents? SafeContents { get { throw null; } } + } + + public sealed partial class Pkcs12SecretBag : Pkcs12SafeBag + { + internal Pkcs12SecretBag() : base(default!, default, default) { } + public ReadOnlyMemory SecretValue { get { throw null; } } + + public Oid GetSecretType() { throw null; } + } + + public sealed partial class Pkcs12ShroudedKeyBag : Pkcs12SafeBag + { + public Pkcs12ShroudedKeyBag(ReadOnlyMemory encryptedPkcs8PrivateKey, bool skipCopy = false) : base(default!, default, default) { } + public ReadOnlyMemory EncryptedPkcs8PrivateKey { get { throw null; } } + } + + public sealed partial class Pkcs8PrivateKeyInfo + { + public Pkcs8PrivateKeyInfo(Oid algorithmId, ReadOnlyMemory? algorithmParameters, ReadOnlyMemory privateKey, bool skipCopies = false) { } + public Oid AlgorithmId { get { throw null; } } + public ReadOnlyMemory? AlgorithmParameters { get { throw null; } } + public CryptographicAttributeObjectCollection Attributes { get { throw null; } } + public ReadOnlyMemory PrivateKeyBytes { get { throw null; } } + + public static Pkcs8PrivateKeyInfo Create(AsymmetricAlgorithm privateKey) { throw null; } + public static Pkcs8PrivateKeyInfo Decode(ReadOnlyMemory source, out int bytesRead, bool skipCopy = false) { throw null; } + public static Pkcs8PrivateKeyInfo DecryptAndDecode(ReadOnlySpan passwordBytes, ReadOnlyMemory source, out int bytesRead) { throw null; } + public static Pkcs8PrivateKeyInfo DecryptAndDecode(ReadOnlySpan password, ReadOnlyMemory source, out int bytesRead) { throw null; } + public byte[] Encode() { throw null; } + public byte[] Encrypt(ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { throw null; } + public byte[] Encrypt(ReadOnlySpan password, PbeParameters pbeParameters) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + public bool TryEncrypt(ReadOnlySpan passwordBytes, PbeParameters pbeParameters, Span destination, out int bytesWritten) { throw null; } + public bool TryEncrypt(ReadOnlySpan password, PbeParameters pbeParameters, Span destination, out int bytesWritten) { throw null; } + } + public partial class Pkcs9AttributeObject : AsnEncodedData + { + public Pkcs9AttributeObject() { } + public Pkcs9AttributeObject(AsnEncodedData asnEncodedData) { } + public Pkcs9AttributeObject(Oid oid, byte[] encodedData) { } + public Pkcs9AttributeObject(string oid, byte[] encodedData) { } + public new Oid? Oid { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9ContentType : Pkcs9AttributeObject + { + public Oid ContentType { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentDescription : Pkcs9AttributeObject + { + public Pkcs9DocumentDescription() { } + public Pkcs9DocumentDescription(byte[] encodedDocumentDescription) { } + public Pkcs9DocumentDescription(string documentDescription) { } + public string DocumentDescription { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentName : Pkcs9AttributeObject + { + public Pkcs9DocumentName() { } + public Pkcs9DocumentName(byte[] encodedDocumentName) { } + public Pkcs9DocumentName(string documentName) { } + public string DocumentName { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9LocalKeyId : Pkcs9AttributeObject + { + public Pkcs9LocalKeyId() { } + public Pkcs9LocalKeyId(byte[] keyId) { } + public Pkcs9LocalKeyId(ReadOnlySpan keyId) { } + public ReadOnlyMemory KeyId { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9MessageDigest : Pkcs9AttributeObject + { + public byte[] MessageDigest { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9SigningTime : Pkcs9AttributeObject + { + public Pkcs9SigningTime() { } + public Pkcs9SigningTime(byte[] encodedSigningTime) { } + public Pkcs9SigningTime(DateTime signingTime) { } + public DateTime SigningTime { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class PublicKeyInfo + { + internal PublicKeyInfo() { } + public AlgorithmIdentifier Algorithm { get { throw null; } } + public byte[] KeyValue { get { throw null; } } + } + public abstract partial class RecipientInfo + { + internal RecipientInfo() { } + public abstract byte[] EncryptedKey { get; } + public abstract AlgorithmIdentifier KeyEncryptionAlgorithm { get; } + public abstract SubjectIdentifier RecipientIdentifier { get; } + public RecipientInfoType Type { get { throw null; } } + public abstract int Version { get; } + } + public sealed partial class RecipientInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal RecipientInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public RecipientInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(RecipientInfo[] array, int index) { } + public RecipientInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class RecipientInfoEnumerator : Collections.IEnumerator + { + internal RecipientInfoEnumerator() { } + public RecipientInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public enum RecipientInfoType + { + Unknown = 0, + KeyTransport = 1, + KeyAgreement = 2 + } + + public sealed partial class Rfc3161TimestampRequest + { + internal Rfc3161TimestampRequest() { } + public bool HasExtensions { get { throw null; } } + public Oid HashAlgorithmId { get { throw null; } } + public Oid? RequestedPolicyId { get { throw null; } } + public bool RequestSignerCertificate { get { throw null; } } + public int Version { get { throw null; } } + + public static Rfc3161TimestampRequest CreateFromData(ReadOnlySpan data, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory hash, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory hash, Oid hashAlgorithmId, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromSignerInfo(SignerInfo signerInfo, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public byte[] Encode() { throw null; } + public X509Certificates.X509ExtensionCollection GetExtensions() { throw null; } + public ReadOnlyMemory GetMessageHash() { throw null; } + public ReadOnlyMemory? GetNonce() { throw null; } + public Rfc3161TimestampToken ProcessResponse(ReadOnlyMemory responseBytes, out int bytesConsumed) { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampRequest? request, out int bytesConsumed) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Rfc3161TimestampToken + { + internal Rfc3161TimestampToken() { } + public Rfc3161TimestampTokenInfo TokenInfo { get { throw null; } } + + public SignedCms AsSignedCms() { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampToken? token, out int bytesConsumed) { throw null; } + public bool VerifySignatureForData(ReadOnlySpan data, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForHash(ReadOnlySpan hash, HashAlgorithmName hashAlgorithm, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForHash(ReadOnlySpan hash, Oid hashAlgorithmId, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForSignerInfo(SignerInfo signerInfo, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + } + public sealed partial class Rfc3161TimestampTokenInfo + { + public Rfc3161TimestampTokenInfo(Oid policyId, Oid hashAlgorithmId, ReadOnlyMemory messageHash, ReadOnlyMemory serialNumber, DateTimeOffset timestamp, long? accuracyInMicroseconds = null, bool isOrdering = false, ReadOnlyMemory? nonce = null, ReadOnlyMemory? timestampAuthorityName = null, X509Certificates.X509ExtensionCollection? extensions = null) { } + public long? AccuracyInMicroseconds { get { throw null; } } + public bool HasExtensions { get { throw null; } } + public Oid HashAlgorithmId { get { throw null; } } + public bool IsOrdering { get { throw null; } } + public Oid PolicyId { get { throw null; } } + public DateTimeOffset Timestamp { get { throw null; } } + public int Version { get { throw null; } } + + public byte[] Encode() { throw null; } + public X509Certificates.X509ExtensionCollection GetExtensions() { throw null; } + public ReadOnlyMemory GetMessageHash() { throw null; } + public ReadOnlyMemory? GetNonce() { throw null; } + public ReadOnlyMemory GetSerialNumber() { throw null; } + public ReadOnlyMemory? GetTimestampAuthorityName() { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampTokenInfo? timestampTokenInfo, out int bytesConsumed) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class SignedCms + { + public SignedCms() { } + public SignedCms(ContentInfo contentInfo, bool detached) { } + public SignedCms(ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo, bool detached) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public bool Detached { get { throw null; } } + public SignerInfoCollection SignerInfos { get { throw null; } } + public int Version { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate2 certificate) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + public void ComputeSignature() { } + public void ComputeSignature(CmsSigner signer, bool silent) { } + public void ComputeSignature(CmsSigner signer) { } + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public byte[] Encode() { throw null; } + public void RemoveCertificate(X509Certificates.X509Certificate2 certificate) { } + public void RemoveSignature(int index) { } + public void RemoveSignature(SignerInfo signerInfo) { } + } + public sealed partial class SignerInfo + { + internal SignerInfo() { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } } + public SignerInfoCollection CounterSignerInfos { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } } + public Oid SignatureAlgorithm { get { throw null; } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifier SignerIdentifier { get { throw null; } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void AddUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + [Obsolete("ComputeCounterSignature without specifying a CmsSigner is obsolete and is not supported. Use the overload that accepts a CmsSigner.", DiagnosticId = "SYSLIB0035", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public void ComputeCounterSignature() { } + public void ComputeCounterSignature(CmsSigner signer) { } + public byte[] GetSignature() { throw null; } + public void RemoveCounterSignature(int index) { } + public void RemoveCounterSignature(SignerInfo counterSignerInfo) { } + public void RemoveUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + } + public sealed partial class SignerInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal SignerInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public SignerInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(SignerInfo[] array, int index) { } + public SignerInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class SignerInfoEnumerator : Collections.IEnumerator + { + internal SignerInfoEnumerator() { } + public SignerInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class SubjectIdentifier + { + internal SubjectIdentifier() { } + public SubjectIdentifierType Type { get { throw null; } } + public object? Value { get { throw null; } } + + public bool MatchesCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + } + public sealed partial class SubjectIdentifierOrKey + { + internal SubjectIdentifierOrKey() { } + public SubjectIdentifierOrKeyType Type { get { throw null; } } + public object Value { get { throw null; } } + } + public enum SubjectIdentifierOrKeyType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + PublicKeyInfo = 3 + } + + public enum SubjectIdentifierType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + NoSignature = 3 + } +} + +namespace System.Security.Cryptography.Xml +{ + public partial struct X509IssuerSerial + { + private object _dummy; + private int _dummyPrimitive; + public string IssuerName { get { throw null; } set { } } + public string SerialNumber { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/netstandard2.0/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/netstandard2.0/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 0000000000..d4a7c17f2e --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/netstandard2.0/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,414 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Pkcs")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides support for PKCS and CMS algorithms.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Pkcs.EnvelopedCms")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.1024.46610")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.10+81cabf2857a01351e5ab578947c7403a5b128ad1")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Pkcs")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography +{ + public sealed partial class CryptographicAttributeObject + { + public CryptographicAttributeObject(Oid oid, AsnEncodedDataCollection? values) { } + public CryptographicAttributeObject(Oid oid) { } + public Oid Oid { get { throw null; } } + public AsnEncodedDataCollection Values { get { throw null; } } + } + public sealed partial class CryptographicAttributeObjectCollection : Collections.ICollection, Collections.IEnumerable + { + public CryptographicAttributeObjectCollection() { } + public CryptographicAttributeObjectCollection(CryptographicAttributeObject attribute) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CryptographicAttributeObject this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(AsnEncodedData asnEncodedData) { throw null; } + public int Add(CryptographicAttributeObject attribute) { throw null; } + public void CopyTo(CryptographicAttributeObject[] array, int index) { } + public CryptographicAttributeObjectEnumerator GetEnumerator() { throw null; } + public void Remove(CryptographicAttributeObject attribute) { } + void Collections.ICollection.CopyTo(Array array, int index) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CryptographicAttributeObjectEnumerator : Collections.IEnumerator + { + internal CryptographicAttributeObjectEnumerator() { } + public CryptographicAttributeObject Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } +} + +namespace System.Security.Cryptography.Pkcs +{ + public sealed partial class AlgorithmIdentifier + { + public AlgorithmIdentifier() { } + public AlgorithmIdentifier(Oid oid, int keyLength) { } + public AlgorithmIdentifier(Oid oid) { } + public int KeyLength { get { throw null; } set { } } + public Oid Oid { get { throw null; } set { } } + public byte[] Parameters { get { throw null; } set { } } + } + public sealed partial class CmsRecipient + { + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate) { } + public X509Certificates.X509Certificate2 Certificate { get { throw null; } } + public SubjectIdentifierType RecipientIdentifierType { get { throw null; } } + } + public sealed partial class CmsRecipientCollection : Collections.ICollection, Collections.IEnumerable + { + public CmsRecipientCollection() { } + public CmsRecipientCollection(CmsRecipient recipient) { } + public CmsRecipientCollection(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2Collection certificates) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CmsRecipient this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(CmsRecipient recipient) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(CmsRecipient[] array, int index) { } + public CmsRecipientEnumerator GetEnumerator() { throw null; } + public void Remove(CmsRecipient recipient) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CmsRecipientEnumerator : Collections.IEnumerator + { + internal CmsRecipientEnumerator() { } + public CmsRecipient Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class CmsSigner + { + public CmsSigner() { } + public CmsSigner(CspParameters parameters) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, AsymmetricAlgorithm? privateKey) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, RSA? privateKey, RSASignaturePadding? signaturePadding) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType) { } + public CmsSigner(X509Certificates.X509Certificate2? certificate) { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } set { } } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } set { } } + public X509Certificates.X509IncludeOption IncludeOption { get { throw null; } set { } } + public AsymmetricAlgorithm? PrivateKey { get { throw null; } set { } } + public RSASignaturePadding? SignaturePadding { get { throw null; } set { } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifierType SignerIdentifierType { get { throw null; } set { } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + } + public sealed partial class ContentInfo + { + public ContentInfo(byte[] content) { } + public ContentInfo(Oid contentType, byte[] content) { } + public byte[] Content { get { throw null; } } + public Oid ContentType { get { throw null; } } + + public static Oid GetContentType(byte[] encodedMessage) { throw null; } + public static Oid GetContentType(ReadOnlySpan encodedMessage) { throw null; } + } + public sealed partial class EnvelopedCms + { + public EnvelopedCms() { } + public EnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm) { } + public EnvelopedCms(ContentInfo contentInfo) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public AlgorithmIdentifier ContentEncryptionAlgorithm { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public RecipientInfoCollection RecipientInfos { get { throw null; } } + public CryptographicAttributeObjectCollection UnprotectedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public void Decrypt() { } + public void Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm? privateKey) { } + public void Decrypt(RecipientInfo recipientInfo, X509Certificates.X509Certificate2Collection extraStore) { } + public void Decrypt(RecipientInfo recipientInfo) { } + public void Decrypt(X509Certificates.X509Certificate2Collection extraStore) { } + public byte[] Encode() { throw null; } + public void Encrypt(CmsRecipient recipient) { } + public void Encrypt(CmsRecipientCollection recipients) { } + } + public sealed partial class KeyAgreeRecipientInfo : RecipientInfo + { + internal KeyAgreeRecipientInfo() { } + public DateTime Date { get { throw null; } } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public SubjectIdentifierOrKey OriginatorIdentifierOrKey { get { throw null; } } + public CryptographicAttributeObject? OtherKeyAttribute { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class KeyTransRecipientInfo : RecipientInfo + { + internal KeyTransRecipientInfo() { } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public partial class Pkcs9AttributeObject : AsnEncodedData + { + public Pkcs9AttributeObject() { } + public Pkcs9AttributeObject(AsnEncodedData asnEncodedData) { } + public Pkcs9AttributeObject(Oid oid, byte[] encodedData) { } + public Pkcs9AttributeObject(string oid, byte[] encodedData) { } + public new Oid? Oid { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9ContentType : Pkcs9AttributeObject + { + public Oid ContentType { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentDescription : Pkcs9AttributeObject + { + public Pkcs9DocumentDescription() { } + public Pkcs9DocumentDescription(byte[] encodedDocumentDescription) { } + public Pkcs9DocumentDescription(string documentDescription) { } + public string DocumentDescription { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentName : Pkcs9AttributeObject + { + public Pkcs9DocumentName() { } + public Pkcs9DocumentName(byte[] encodedDocumentName) { } + public Pkcs9DocumentName(string documentName) { } + public string DocumentName { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9MessageDigest : Pkcs9AttributeObject + { + public byte[] MessageDigest { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9SigningTime : Pkcs9AttributeObject + { + public Pkcs9SigningTime() { } + public Pkcs9SigningTime(byte[] encodedSigningTime) { } + public Pkcs9SigningTime(DateTime signingTime) { } + public DateTime SigningTime { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class PublicKeyInfo + { + internal PublicKeyInfo() { } + public AlgorithmIdentifier Algorithm { get { throw null; } } + public byte[] KeyValue { get { throw null; } } + } + public abstract partial class RecipientInfo + { + internal RecipientInfo() { } + public abstract byte[] EncryptedKey { get; } + public abstract AlgorithmIdentifier KeyEncryptionAlgorithm { get; } + public abstract SubjectIdentifier RecipientIdentifier { get; } + public RecipientInfoType Type { get { throw null; } } + public abstract int Version { get; } + } + public sealed partial class RecipientInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal RecipientInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public RecipientInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(RecipientInfo[] array, int index) { } + public RecipientInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class RecipientInfoEnumerator : Collections.IEnumerator + { + internal RecipientInfoEnumerator() { } + public RecipientInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public enum RecipientInfoType + { + Unknown = 0, + KeyTransport = 1, + KeyAgreement = 2 + } + + public sealed partial class SignedCms + { + public SignedCms() { } + public SignedCms(ContentInfo contentInfo, bool detached) { } + public SignedCms(ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo, bool detached) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public bool Detached { get { throw null; } } + public SignerInfoCollection SignerInfos { get { throw null; } } + public int Version { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate2 certificate) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + public void ComputeSignature() { } + public void ComputeSignature(CmsSigner signer, bool silent) { } + public void ComputeSignature(CmsSigner signer) { } + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public byte[] Encode() { throw null; } + public void RemoveCertificate(X509Certificates.X509Certificate2 certificate) { } + public void RemoveSignature(int index) { } + public void RemoveSignature(SignerInfo signerInfo) { } + } + public sealed partial class SignerInfo + { + internal SignerInfo() { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } } + public SignerInfoCollection CounterSignerInfos { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } } + public Oid SignatureAlgorithm { get { throw null; } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifier SignerIdentifier { get { throw null; } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void AddUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + public void ComputeCounterSignature() { } + public void ComputeCounterSignature(CmsSigner signer) { } + public byte[] GetSignature() { throw null; } + public void RemoveCounterSignature(int index) { } + public void RemoveCounterSignature(SignerInfo counterSignerInfo) { } + public void RemoveUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + } + public sealed partial class SignerInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal SignerInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public SignerInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(SignerInfo[] array, int index) { } + public SignerInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class SignerInfoEnumerator : Collections.IEnumerator + { + internal SignerInfoEnumerator() { } + public SignerInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class SubjectIdentifier + { + internal SubjectIdentifier() { } + public SubjectIdentifierType Type { get { throw null; } } + public object? Value { get { throw null; } } + + public bool MatchesCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + } + public sealed partial class SubjectIdentifierOrKey + { + internal SubjectIdentifierOrKey() { } + public SubjectIdentifierOrKeyType Type { get { throw null; } } + public object Value { get { throw null; } } + } + public enum SubjectIdentifierOrKeyType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + PublicKeyInfo = 3 + } + + public enum SubjectIdentifierType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + NoSignature = 3 + } +} + +namespace System.Security.Cryptography.Xml +{ + public partial struct X509IssuerSerial + { + private object _dummy; + private int _dummyPrimitive; + public string IssuerName { get { throw null; } set { } } + public string SerialNumber { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/netstandard2.1/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/netstandard2.1/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 0000000000..8b51e642e6 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/lib/netstandard2.1/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,606 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Pkcs")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides support for PKCS and CMS algorithms.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Pkcs.EnvelopedCms")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.1024.46610")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.10+81cabf2857a01351e5ab578947c7403a5b128ad1")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Pkcs")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography +{ + public sealed partial class CryptographicAttributeObject + { + public CryptographicAttributeObject(Oid oid, AsnEncodedDataCollection? values) { } + public CryptographicAttributeObject(Oid oid) { } + public Oid Oid { get { throw null; } } + public AsnEncodedDataCollection Values { get { throw null; } } + } + public sealed partial class CryptographicAttributeObjectCollection : Collections.ICollection, Collections.IEnumerable + { + public CryptographicAttributeObjectCollection() { } + public CryptographicAttributeObjectCollection(CryptographicAttributeObject attribute) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CryptographicAttributeObject this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(AsnEncodedData asnEncodedData) { throw null; } + public int Add(CryptographicAttributeObject attribute) { throw null; } + public void CopyTo(CryptographicAttributeObject[] array, int index) { } + public CryptographicAttributeObjectEnumerator GetEnumerator() { throw null; } + public void Remove(CryptographicAttributeObject attribute) { } + void Collections.ICollection.CopyTo(Array array, int index) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CryptographicAttributeObjectEnumerator : Collections.IEnumerator + { + internal CryptographicAttributeObjectEnumerator() { } + public CryptographicAttributeObject Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } +} + +namespace System.Security.Cryptography.Pkcs +{ + public sealed partial class AlgorithmIdentifier + { + public AlgorithmIdentifier() { } + public AlgorithmIdentifier(Oid oid, int keyLength) { } + public AlgorithmIdentifier(Oid oid) { } + public int KeyLength { get { throw null; } set { } } + public Oid Oid { get { throw null; } set { } } + public byte[] Parameters { get { throw null; } set { } } + } + public sealed partial class CmsRecipient + { + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate, RSAEncryptionPadding rsaEncryptionPadding) { } + public CmsRecipient(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2 certificate) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate, RSAEncryptionPadding rsaEncryptionPadding) { } + public CmsRecipient(X509Certificates.X509Certificate2 certificate) { } + public X509Certificates.X509Certificate2 Certificate { get { throw null; } } + public SubjectIdentifierType RecipientIdentifierType { get { throw null; } } + public RSAEncryptionPadding? RSAEncryptionPadding { get { throw null; } } + } + public sealed partial class CmsRecipientCollection : Collections.ICollection, Collections.IEnumerable + { + public CmsRecipientCollection() { } + public CmsRecipientCollection(CmsRecipient recipient) { } + public CmsRecipientCollection(SubjectIdentifierType recipientIdentifierType, X509Certificates.X509Certificate2Collection certificates) { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public CmsRecipient this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public int Add(CmsRecipient recipient) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(CmsRecipient[] array, int index) { } + public CmsRecipientEnumerator GetEnumerator() { throw null; } + public void Remove(CmsRecipient recipient) { } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class CmsRecipientEnumerator : Collections.IEnumerator + { + internal CmsRecipientEnumerator() { } + public CmsRecipient Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class CmsSigner + { + public CmsSigner() { } + public CmsSigner(CspParameters parameters) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, AsymmetricAlgorithm? privateKey) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate, RSA? privateKey, RSASignaturePadding? signaturePadding) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificates.X509Certificate2? certificate) { } + public CmsSigner(SubjectIdentifierType signerIdentifierType) { } + public CmsSigner(X509Certificates.X509Certificate2? certificate) { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } set { } } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } set { } } + public X509Certificates.X509IncludeOption IncludeOption { get { throw null; } set { } } + public AsymmetricAlgorithm? PrivateKey { get { throw null; } set { } } + public RSASignaturePadding? SignaturePadding { get { throw null; } set { } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifierType SignerIdentifierType { get { throw null; } set { } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + } + public sealed partial class ContentInfo + { + public ContentInfo(byte[] content) { } + public ContentInfo(Oid contentType, byte[] content) { } + public byte[] Content { get { throw null; } } + public Oid ContentType { get { throw null; } } + + public static Oid GetContentType(byte[] encodedMessage) { throw null; } + public static Oid GetContentType(ReadOnlySpan encodedMessage) { throw null; } + } + public sealed partial class EnvelopedCms + { + public EnvelopedCms() { } + public EnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm) { } + public EnvelopedCms(ContentInfo contentInfo) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public AlgorithmIdentifier ContentEncryptionAlgorithm { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public RecipientInfoCollection RecipientInfos { get { throw null; } } + public CryptographicAttributeObjectCollection UnprotectedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public void Decrypt() { } + public void Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm? privateKey) { } + public void Decrypt(RecipientInfo recipientInfo, X509Certificates.X509Certificate2Collection extraStore) { } + public void Decrypt(RecipientInfo recipientInfo) { } + public void Decrypt(X509Certificates.X509Certificate2Collection extraStore) { } + public byte[] Encode() { throw null; } + public void Encrypt(CmsRecipient recipient) { } + public void Encrypt(CmsRecipientCollection recipients) { } + } + public sealed partial class KeyAgreeRecipientInfo : RecipientInfo + { + internal KeyAgreeRecipientInfo() { } + public DateTime Date { get { throw null; } } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public SubjectIdentifierOrKey OriginatorIdentifierOrKey { get { throw null; } } + public CryptographicAttributeObject? OtherKeyAttribute { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class KeyTransRecipientInfo : RecipientInfo + { + internal KeyTransRecipientInfo() { } + public override byte[] EncryptedKey { get { throw null; } } + public override AlgorithmIdentifier KeyEncryptionAlgorithm { get { throw null; } } + public override SubjectIdentifier RecipientIdentifier { get { throw null; } } + public override int Version { get { throw null; } } + } + + public sealed partial class Pkcs12Builder + { + public bool IsSealed { get { throw null; } } + + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, byte[]? passwordBytes, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, ReadOnlySpan password, PbeParameters pbeParameters) { } + public void AddSafeContentsEncrypted(Pkcs12SafeContents safeContents, string? password, PbeParameters pbeParameters) { } + public void AddSafeContentsUnencrypted(Pkcs12SafeContents safeContents) { } + public byte[] Encode() { throw null; } + public void SealWithMac(ReadOnlySpan password, HashAlgorithmName hashAlgorithm, int iterationCount) { } + public void SealWithMac(string? password, HashAlgorithmName hashAlgorithm, int iterationCount) { } + public void SealWithoutIntegrity() { } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Pkcs12CertBag : Pkcs12SafeBag + { + public Pkcs12CertBag(Oid certificateType, ReadOnlyMemory encodedCertificate) : base(default!, default, default) { } + public ReadOnlyMemory EncodedCertificate { get { throw null; } } + public bool IsX509Certificate { get { throw null; } } + + public X509Certificates.X509Certificate2 GetCertificate() { throw null; } + public Oid GetCertificateType() { throw null; } + } + + public enum Pkcs12ConfidentialityMode + { + Unknown = 0, + None = 1, + Password = 2, + PublicKey = 3 + } + + public sealed partial class Pkcs12Info + { + internal Pkcs12Info() { } + public Collections.ObjectModel.ReadOnlyCollection AuthenticatedSafe { get { throw null; } } + public Pkcs12IntegrityMode IntegrityMode { get { throw null; } } + + public static Pkcs12Info Decode(ReadOnlyMemory encodedBytes, out int bytesConsumed, bool skipCopy = false) { throw null; } + public bool VerifyMac(ReadOnlySpan password) { throw null; } + public bool VerifyMac(string? password) { throw null; } + } + public enum Pkcs12IntegrityMode + { + Unknown = 0, + None = 1, + Password = 2, + PublicKey = 3 + } + + public sealed partial class Pkcs12KeyBag : Pkcs12SafeBag + { + public Pkcs12KeyBag(ReadOnlyMemory pkcs8PrivateKey, bool skipCopy = false) : base(default!, default, default) { } + public ReadOnlyMemory Pkcs8PrivateKey { get { throw null; } } + } + + public abstract partial class Pkcs12SafeBag + { + protected Pkcs12SafeBag(string bagIdValue, ReadOnlyMemory encodedBagValue, bool skipCopy = false) { } + public CryptographicAttributeObjectCollection Attributes { get { throw null; } } + public ReadOnlyMemory EncodedBagValue { get { throw null; } } + + public byte[] Encode() { throw null; } + public Oid GetBagId() { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Pkcs12SafeContents + { + public Pkcs12ConfidentialityMode ConfidentialityMode { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public Pkcs12CertBag AddCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + public Pkcs12KeyBag AddKeyUnencrypted(AsymmetricAlgorithm key) { throw null; } + public Pkcs12SafeContentsBag AddNestedContents(Pkcs12SafeContents safeContents) { throw null; } + public void AddSafeBag(Pkcs12SafeBag safeBag) { } + public Pkcs12SecretBag AddSecret(Oid secretType, ReadOnlyMemory secretValue) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, byte[]? passwordBytes, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, ReadOnlySpan password, PbeParameters pbeParameters) { throw null; } + public Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, string? password, PbeParameters pbeParameters) { throw null; } + public void Decrypt(byte[]? passwordBytes) { } + public void Decrypt(ReadOnlySpan passwordBytes) { } + public void Decrypt(ReadOnlySpan password) { } + public void Decrypt(string? password) { } + public Collections.Generic.IEnumerable GetBags() { throw null; } + } + public sealed partial class Pkcs12SafeContentsBag : Pkcs12SafeBag + { + internal Pkcs12SafeContentsBag() : base(default!, default, default) { } + public Pkcs12SafeContents? SafeContents { get { throw null; } } + } + + public sealed partial class Pkcs12SecretBag : Pkcs12SafeBag + { + internal Pkcs12SecretBag() : base(default!, default, default) { } + public ReadOnlyMemory SecretValue { get { throw null; } } + + public Oid GetSecretType() { throw null; } + } + + public sealed partial class Pkcs12ShroudedKeyBag : Pkcs12SafeBag + { + public Pkcs12ShroudedKeyBag(ReadOnlyMemory encryptedPkcs8PrivateKey, bool skipCopy = false) : base(default!, default, default) { } + public ReadOnlyMemory EncryptedPkcs8PrivateKey { get { throw null; } } + } + + public sealed partial class Pkcs8PrivateKeyInfo + { + public Pkcs8PrivateKeyInfo(Oid algorithmId, ReadOnlyMemory? algorithmParameters, ReadOnlyMemory privateKey, bool skipCopies = false) { } + public Oid AlgorithmId { get { throw null; } } + public ReadOnlyMemory? AlgorithmParameters { get { throw null; } } + public CryptographicAttributeObjectCollection Attributes { get { throw null; } } + public ReadOnlyMemory PrivateKeyBytes { get { throw null; } } + + public static Pkcs8PrivateKeyInfo Create(AsymmetricAlgorithm privateKey) { throw null; } + public static Pkcs8PrivateKeyInfo Decode(ReadOnlyMemory source, out int bytesRead, bool skipCopy = false) { throw null; } + public static Pkcs8PrivateKeyInfo DecryptAndDecode(ReadOnlySpan passwordBytes, ReadOnlyMemory source, out int bytesRead) { throw null; } + public static Pkcs8PrivateKeyInfo DecryptAndDecode(ReadOnlySpan password, ReadOnlyMemory source, out int bytesRead) { throw null; } + public byte[] Encode() { throw null; } + public byte[] Encrypt(ReadOnlySpan passwordBytes, PbeParameters pbeParameters) { throw null; } + public byte[] Encrypt(ReadOnlySpan password, PbeParameters pbeParameters) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + public bool TryEncrypt(ReadOnlySpan passwordBytes, PbeParameters pbeParameters, Span destination, out int bytesWritten) { throw null; } + public bool TryEncrypt(ReadOnlySpan password, PbeParameters pbeParameters, Span destination, out int bytesWritten) { throw null; } + } + public partial class Pkcs9AttributeObject : AsnEncodedData + { + public Pkcs9AttributeObject() { } + public Pkcs9AttributeObject(AsnEncodedData asnEncodedData) { } + public Pkcs9AttributeObject(Oid oid, byte[] encodedData) { } + public Pkcs9AttributeObject(string oid, byte[] encodedData) { } + public new Oid? Oid { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9ContentType : Pkcs9AttributeObject + { + public Oid ContentType { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentDescription : Pkcs9AttributeObject + { + public Pkcs9DocumentDescription() { } + public Pkcs9DocumentDescription(byte[] encodedDocumentDescription) { } + public Pkcs9DocumentDescription(string documentDescription) { } + public string DocumentDescription { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9DocumentName : Pkcs9AttributeObject + { + public Pkcs9DocumentName() { } + public Pkcs9DocumentName(byte[] encodedDocumentName) { } + public Pkcs9DocumentName(string documentName) { } + public string DocumentName { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9LocalKeyId : Pkcs9AttributeObject + { + public Pkcs9LocalKeyId() { } + public Pkcs9LocalKeyId(byte[] keyId) { } + public Pkcs9LocalKeyId(ReadOnlySpan keyId) { } + public ReadOnlyMemory KeyId { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9MessageDigest : Pkcs9AttributeObject + { + public byte[] MessageDigest { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class Pkcs9SigningTime : Pkcs9AttributeObject + { + public Pkcs9SigningTime() { } + public Pkcs9SigningTime(byte[] encodedSigningTime) { } + public Pkcs9SigningTime(DateTime signingTime) { } + public DateTime SigningTime { get { throw null; } } + + public override void CopyFrom(AsnEncodedData asnEncodedData) { } + } + + public sealed partial class PublicKeyInfo + { + internal PublicKeyInfo() { } + public AlgorithmIdentifier Algorithm { get { throw null; } } + public byte[] KeyValue { get { throw null; } } + } + public abstract partial class RecipientInfo + { + internal RecipientInfo() { } + public abstract byte[] EncryptedKey { get; } + public abstract AlgorithmIdentifier KeyEncryptionAlgorithm { get; } + public abstract SubjectIdentifier RecipientIdentifier { get; } + public RecipientInfoType Type { get { throw null; } } + public abstract int Version { get; } + } + public sealed partial class RecipientInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal RecipientInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public RecipientInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(RecipientInfo[] array, int index) { } + public RecipientInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class RecipientInfoEnumerator : Collections.IEnumerator + { + internal RecipientInfoEnumerator() { } + public RecipientInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public enum RecipientInfoType + { + Unknown = 0, + KeyTransport = 1, + KeyAgreement = 2 + } + + public sealed partial class Rfc3161TimestampRequest + { + internal Rfc3161TimestampRequest() { } + public bool HasExtensions { get { throw null; } } + public Oid HashAlgorithmId { get { throw null; } } + public Oid? RequestedPolicyId { get { throw null; } } + public bool RequestSignerCertificate { get { throw null; } } + public int Version { get { throw null; } } + + public static Rfc3161TimestampRequest CreateFromData(ReadOnlySpan data, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory hash, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory hash, Oid hashAlgorithmId, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public static Rfc3161TimestampRequest CreateFromSignerInfo(SignerInfo signerInfo, HashAlgorithmName hashAlgorithm, Oid? requestedPolicyId = null, ReadOnlyMemory? nonce = null, bool requestSignerCertificates = false, X509Certificates.X509ExtensionCollection? extensions = null) { throw null; } + public byte[] Encode() { throw null; } + public X509Certificates.X509ExtensionCollection GetExtensions() { throw null; } + public ReadOnlyMemory GetMessageHash() { throw null; } + public ReadOnlyMemory? GetNonce() { throw null; } + public Rfc3161TimestampToken ProcessResponse(ReadOnlyMemory responseBytes, out int bytesConsumed) { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampRequest? request, out int bytesConsumed) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class Rfc3161TimestampToken + { + internal Rfc3161TimestampToken() { } + public Rfc3161TimestampTokenInfo TokenInfo { get { throw null; } } + + public SignedCms AsSignedCms() { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampToken? token, out int bytesConsumed) { throw null; } + public bool VerifySignatureForData(ReadOnlySpan data, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForHash(ReadOnlySpan hash, HashAlgorithmName hashAlgorithm, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForHash(ReadOnlySpan hash, Oid hashAlgorithmId, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + public bool VerifySignatureForSignerInfo(SignerInfo signerInfo, out X509Certificates.X509Certificate2? signerCertificate, X509Certificates.X509Certificate2Collection? extraCandidates = null) { throw null; } + } + public sealed partial class Rfc3161TimestampTokenInfo + { + public Rfc3161TimestampTokenInfo(Oid policyId, Oid hashAlgorithmId, ReadOnlyMemory messageHash, ReadOnlyMemory serialNumber, DateTimeOffset timestamp, long? accuracyInMicroseconds = null, bool isOrdering = false, ReadOnlyMemory? nonce = null, ReadOnlyMemory? timestampAuthorityName = null, X509Certificates.X509ExtensionCollection? extensions = null) { } + public long? AccuracyInMicroseconds { get { throw null; } } + public bool HasExtensions { get { throw null; } } + public Oid HashAlgorithmId { get { throw null; } } + public bool IsOrdering { get { throw null; } } + public Oid PolicyId { get { throw null; } } + public DateTimeOffset Timestamp { get { throw null; } } + public int Version { get { throw null; } } + + public byte[] Encode() { throw null; } + public X509Certificates.X509ExtensionCollection GetExtensions() { throw null; } + public ReadOnlyMemory GetMessageHash() { throw null; } + public ReadOnlyMemory? GetNonce() { throw null; } + public ReadOnlyMemory GetSerialNumber() { throw null; } + public ReadOnlyMemory? GetTimestampAuthorityName() { throw null; } + public static bool TryDecode(ReadOnlyMemory encodedBytes, out Rfc3161TimestampTokenInfo? timestampTokenInfo, out int bytesConsumed) { throw null; } + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + public sealed partial class SignedCms + { + public SignedCms() { } + public SignedCms(ContentInfo contentInfo, bool detached) { } + public SignedCms(ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo, bool detached) { } + public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo) { } + public SignedCms(SubjectIdentifierType signerIdentifierType) { } + public X509Certificates.X509Certificate2Collection Certificates { get { throw null; } } + public ContentInfo ContentInfo { get { throw null; } } + public bool Detached { get { throw null; } } + public SignerInfoCollection SignerInfos { get { throw null; } } + public int Version { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate2 certificate) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + public void ComputeSignature() { } + public void ComputeSignature(CmsSigner signer, bool silent) { } + public void ComputeSignature(CmsSigner signer) { } + public void Decode(byte[] encodedMessage) { } + public void Decode(ReadOnlySpan encodedMessage) { } + public byte[] Encode() { throw null; } + public void RemoveCertificate(X509Certificates.X509Certificate2 certificate) { } + public void RemoveSignature(int index) { } + public void RemoveSignature(SignerInfo signerInfo) { } + } + public sealed partial class SignerInfo + { + internal SignerInfo() { } + public X509Certificates.X509Certificate2? Certificate { get { throw null; } } + public SignerInfoCollection CounterSignerInfos { get { throw null; } } + public Oid DigestAlgorithm { get { throw null; } } + public Oid SignatureAlgorithm { get { throw null; } } + public CryptographicAttributeObjectCollection SignedAttributes { get { throw null; } } + public SubjectIdentifier SignerIdentifier { get { throw null; } } + public CryptographicAttributeObjectCollection UnsignedAttributes { get { throw null; } } + public int Version { get { throw null; } } + + public void AddUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + public void CheckHash() { } + public void CheckSignature(bool verifySignatureOnly) { } + public void CheckSignature(X509Certificates.X509Certificate2Collection extraStore, bool verifySignatureOnly) { } + public void ComputeCounterSignature() { } + public void ComputeCounterSignature(CmsSigner signer) { } + public byte[] GetSignature() { throw null; } + public void RemoveCounterSignature(int index) { } + public void RemoveCounterSignature(SignerInfo counterSignerInfo) { } + public void RemoveUnsignedAttribute(AsnEncodedData unsignedAttribute) { } + } + public sealed partial class SignerInfoCollection : Collections.ICollection, Collections.IEnumerable + { + internal SignerInfoCollection() { } + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public SignerInfo this[int index] { get { throw null; } } + + public object SyncRoot { get { throw null; } } + + public void CopyTo(Array array, int index) { } + public void CopyTo(SignerInfo[] array, int index) { } + public SignerInfoEnumerator GetEnumerator() { throw null; } + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public sealed partial class SignerInfoEnumerator : Collections.IEnumerator + { + internal SignerInfoEnumerator() { } + public SignerInfo Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public bool MoveNext() { throw null; } + public void Reset() { } + } + + public sealed partial class SubjectIdentifier + { + internal SubjectIdentifier() { } + public SubjectIdentifierType Type { get { throw null; } } + public object? Value { get { throw null; } } + + public bool MatchesCertificate(X509Certificates.X509Certificate2 certificate) { throw null; } + } + public sealed partial class SubjectIdentifierOrKey + { + internal SubjectIdentifierOrKey() { } + public SubjectIdentifierOrKeyType Type { get { throw null; } } + public object Value { get { throw null; } } + } + public enum SubjectIdentifierOrKeyType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + PublicKeyInfo = 3 + } + + public enum SubjectIdentifierType + { + Unknown = 0, + IssuerAndSerialNumber = 1, + SubjectKeyIdentifier = 2, + NoSignature = 3 + } +} + +namespace System.Security.Cryptography.Xml +{ + public partial struct X509IssuerSerial + { + private object _dummy; + private int _dummyPrimitive; + public string IssuerName { get { throw null; } set { } } + public string SerialNumber { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/System.Security.Cryptography.Xml.8.0.3.csproj b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/System.Security.Cryptography.Xml.8.0.3.csproj new file mode 100644 index 0000000000..6190a52569 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/System.Security.Cryptography.Xml.8.0.3.csproj @@ -0,0 +1,74 @@ + + + + System.Security.Cryptography.Xml + net6.0;net7.0;net8.0;netstandard2.0 + 8.0.3 + System.Security.Cryptography.Xml + Open + Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, "XML-Signature Syntax and Processing", described at http://www.w3.org/TR/xmldsig-core/. + +Commonly Used Types: +System.Security.Cryptography.Xml.CipherData +System.Security.Cryptography.Xml.CipherReference +System.Security.Cryptography.Xml.DataObject +System.Security.Cryptography.Xml.DataReference +System.Security.Cryptography.Xml.DSAKeyValue +System.Security.Cryptography.Xml.EncryptedData +System.Security.Cryptography.Xml.EncryptedKey +System.Security.Cryptography.Xml.EncryptedReference +System.Security.Cryptography.Xml.EncryptedType +System.Security.Cryptography.Xml.EncryptedXml +System.Security.Cryptography.Xml.EncryptionMethod +System.Security.Cryptography.Xml.EncryptionProperty +System.Security.Cryptography.Xml.EncryptionPropertyCollection +System.Security.Cryptography.Xml.KeyInfo +System.Security.Cryptography.Xml.KeyInfoClause +System.Security.Cryptography.Xml.KeyInfoEncryptedKey +System.Security.Cryptography.Xml.KeyInfoName +System.Security.Cryptography.Xml.KeyInfoNode +System.Security.Cryptography.Xml.KeyInfoRetrievalMethod +System.Security.Cryptography.Xml.KeyInfoX509Data +System.Security.Cryptography.Xml.KeyReference +System.Security.Cryptography.Xml.Reference +System.Security.Cryptography.Xml.ReferenceList +System.Security.Cryptography.Xml.RSAKeyValue +System.Security.Cryptography.Xml.Signature +System.Security.Cryptography.Xml.SignedInfo +System.Security.Cryptography.Xml.SignedXml +System.Security.Cryptography.Xml.Transform +System.Security.Cryptography.Xml.TransformChain +System.Security.Cryptography.Xml.XmlDecryptionTransform +System.Security.Cryptography.Xml.XmlDsigBase64Transform +System.Security.Cryptography.Xml.XmlDsigC14NTransform +System.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform +System.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform +System.Security.Cryptography.Xml.XmlDsigExcC14NTransform +System.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform +System.Security.Cryptography.Xml.XmlDsigXPathTransform +System.Security.Cryptography.Xml.XmlDsigXsltTransform +System.Security.Cryptography.Xml.XmlLicenseTransform + https://dot.net/ + MIT + https://go.microsoft.com/fwlink/?LinkID=799421 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs new file mode 100644 index 0000000000..0fa94c6739 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs @@ -0,0 +1,655 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Xml")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.Versioning.UnsupportedOSPlatform("browser")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, \"XML-Signature Syntax and Processing\", described at http://www.w3.org/TR/xmldsig-core/.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Xml.CipherData\r\nSystem.Security.Cryptography.Xml.CipherReference\r\nSystem.Security.Cryptography.Xml.DataObject\r\nSystem.Security.Cryptography.Xml.DataReference\r\nSystem.Security.Cryptography.Xml.DSAKeyValue\r\nSystem.Security.Cryptography.Xml.EncryptedData\r\nSystem.Security.Cryptography.Xml.EncryptedKey\r\nSystem.Security.Cryptography.Xml.EncryptedReference\r\nSystem.Security.Cryptography.Xml.EncryptedType\r\nSystem.Security.Cryptography.Xml.EncryptedXml\r\nSystem.Security.Cryptography.Xml.EncryptionMethod\r\nSystem.Security.Cryptography.Xml.EncryptionProperty\r\nSystem.Security.Cryptography.Xml.EncryptionPropertyCollection\r\nSystem.Security.Cryptography.Xml.KeyInfo\r\nSystem.Security.Cryptography.Xml.KeyInfoClause\r\nSystem.Security.Cryptography.Xml.KeyInfoEncryptedKey\r\nSystem.Security.Cryptography.Xml.KeyInfoName\r\nSystem.Security.Cryptography.Xml.KeyInfoNode\r\nSystem.Security.Cryptography.Xml.KeyInfoRetrievalMethod\r\nSystem.Security.Cryptography.Xml.KeyInfoX509Data\r\nSystem.Security.Cryptography.Xml.KeyReference\r\nSystem.Security.Cryptography.Xml.Reference\r\nSystem.Security.Cryptography.Xml.ReferenceList\r\nSystem.Security.Cryptography.Xml.RSAKeyValue\r\nSystem.Security.Cryptography.Xml.Signature\r\nSystem.Security.Cryptography.Xml.SignedInfo\r\nSystem.Security.Cryptography.Xml.SignedXml\r\nSystem.Security.Cryptography.Xml.Transform\r\nSystem.Security.Cryptography.Xml.TransformChain\r\nSystem.Security.Cryptography.Xml.XmlDecryptionTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigBase64Transform\r\nSystem.Security.Cryptography.Xml.XmlDsigC14NTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigExcC14NTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigXPathTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigXsltTransform\r\nSystem.Security.Cryptography.Xml.XmlLicenseTransform")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.2626.16921")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.26+ace9703c57db8596ccc3e3efdc7e65b6975c0b2d")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Xml")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography.Xml +{ + public sealed partial class CipherData + { + public CipherData() { } + public CipherData(byte[] cipherValue) { } + public CipherData(CipherReference cipherReference) { } + public CipherReference? CipherReference { get { throw null; } set { } } + public byte[]? CipherValue { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class CipherReference : EncryptedReference + { + public CipherReference() { } + public CipherReference(string uri, TransformChain transformChain) { } + public CipherReference(string uri) { } + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class CryptoSignedXmlRecursionException : System.Xml.XmlException + { + public CryptoSignedXmlRecursionException() { } + protected CryptoSignedXmlRecursionException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + public CryptoSignedXmlRecursionException(string message, Exception inner) { } + public CryptoSignedXmlRecursionException(string message) { } + } + + public partial class DataObject + { + public DataObject() { } + public DataObject(string id, string mimeType, string encoding, System.Xml.XmlElement data) { } + public System.Xml.XmlNodeList Data { get { throw null; } set { } } + public string? Encoding { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } + public string? MimeType { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class DataReference : EncryptedReference + { + public DataReference() { } + public DataReference(string uri, TransformChain transformChain) { } + public DataReference(string uri) { } + } + + public partial class DSAKeyValue : KeyInfoClause + { + [Runtime.Versioning.UnsupportedOSPlatform("ios")] + [Runtime.Versioning.UnsupportedOSPlatform("tvos")] + public DSAKeyValue() { } + public DSAKeyValue(DSA key) { } + public DSA Key { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public sealed partial class EncryptedData : EncryptedType + { + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public sealed partial class EncryptedKey : EncryptedType + { + public string? CarriedKeyName { get { throw null; } set { } } + public string Recipient { get { throw null; } set { } } + public ReferenceList ReferenceList { get { throw null; } } + + public void AddReference(DataReference dataReference) { } + public void AddReference(KeyReference keyReference) { } + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public abstract partial class EncryptedReference + { + protected EncryptedReference() { } + protected EncryptedReference(string uri, TransformChain transformChain) { } + protected EncryptedReference(string uri) { } + [Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "_cachedXml")] + protected internal bool CacheValid { get { throw null; } } + protected string? ReferenceType { get { throw null; } set { } } + public TransformChain TransformChain { get { throw null; } set { } } + public string Uri { get { throw null; } set { } } + + public void AddTransform(Transform transform) { } + public virtual System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public virtual void LoadXml(System.Xml.XmlElement value) { } + } + public abstract partial class EncryptedType + { + public virtual CipherData CipherData { get { throw null; } set { } } + public virtual string? Encoding { get { throw null; } set { } } + public virtual EncryptionMethod? EncryptionMethod { get { throw null; } set { } } + public virtual EncryptionPropertyCollection EncryptionProperties { get { throw null; } } + public virtual string? Id { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public virtual string? MimeType { get { throw null; } set { } } + public virtual string? Type { get { throw null; } set { } } + + public void AddProperty(EncryptionProperty ep) { } + public abstract System.Xml.XmlElement GetXml(); + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public abstract void LoadXml(System.Xml.XmlElement value); + } + public partial class EncryptedXml + { + public const string XmlEncAES128KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes128"; + public const string XmlEncAES128Url = "http://www.w3.org/2001/04/xmlenc#aes128-cbc"; + public const string XmlEncAES192KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes192"; + public const string XmlEncAES192Url = "http://www.w3.org/2001/04/xmlenc#aes192-cbc"; + public const string XmlEncAES256KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes256"; + public const string XmlEncAES256Url = "http://www.w3.org/2001/04/xmlenc#aes256-cbc"; + public const string XmlEncDESUrl = "http://www.w3.org/2001/04/xmlenc#des-cbc"; + public const string XmlEncElementContentUrl = "http://www.w3.org/2001/04/xmlenc#Content"; + public const string XmlEncElementUrl = "http://www.w3.org/2001/04/xmlenc#Element"; + public const string XmlEncEncryptedKeyUrl = "http://www.w3.org/2001/04/xmlenc#EncryptedKey"; + public const string XmlEncNamespaceUrl = "http://www.w3.org/2001/04/xmlenc#"; + public const string XmlEncRSA15Url = "http://www.w3.org/2001/04/xmlenc#rsa-1_5"; + public const string XmlEncRSAOAEPUrl = "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"; + public const string XmlEncSHA256Url = "http://www.w3.org/2001/04/xmlenc#sha256"; + public const string XmlEncSHA512Url = "http://www.w3.org/2001/04/xmlenc#sha512"; + public const string XmlEncTripleDESKeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-tripledes"; + public const string XmlEncTripleDESUrl = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc"; + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml() { } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml(System.Xml.XmlDocument document, Policy.Evidence? evidence) { } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml(System.Xml.XmlDocument document) { } + public Policy.Evidence? DocumentEvidence { get { throw null; } set { } } + public Text.Encoding Encoding { get { throw null; } set { } } + public CipherMode Mode { get { throw null; } set { } } + public PaddingMode Padding { get { throw null; } set { } } + public string Recipient { get { throw null; } set { } } + public System.Xml.XmlResolver? Resolver { get { throw null; } set { } } + public int XmlDSigSearchDepth { get { throw null; } set { } } + + public void AddKeyNameMapping(string keyName, object keyObject) { } + public void ClearKeyNameMappings() { } + public byte[] DecryptData(EncryptedData encryptedData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public void DecryptDocument() { } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public virtual byte[]? DecryptEncryptedKey(EncryptedKey encryptedKey) { throw null; } + public static byte[] DecryptKey(byte[] keyData, RSA rsa, bool useOAEP) { throw null; } + public static byte[] DecryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public EncryptedData Encrypt(System.Xml.XmlElement inputElement, X509Certificates.X509Certificate2 certificate) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public EncryptedData Encrypt(System.Xml.XmlElement inputElement, string keyName) { throw null; } + public byte[] EncryptData(byte[] plaintext, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public byte[] EncryptData(System.Xml.XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, bool content) { throw null; } + public static byte[] EncryptKey(byte[] keyData, RSA rsa, bool useOAEP) { throw null; } + public static byte[] EncryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public virtual byte[] GetDecryptionIV(EncryptedData encryptedData, string? symmetricAlgorithmUri) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public virtual SymmetricAlgorithm? GetDecryptionKey(EncryptedData encryptedData, string? symmetricAlgorithmUri) { throw null; } + public virtual System.Xml.XmlElement? GetIdElement(System.Xml.XmlDocument document, string idValue) { throw null; } + public void ReplaceData(System.Xml.XmlElement inputElement, byte[] decryptedData) { } + public static void ReplaceElement(System.Xml.XmlElement inputElement, EncryptedData encryptedData, bool content) { } + } + public partial class EncryptionMethod + { + public EncryptionMethod() { } + public EncryptionMethod(string? algorithm) { } + public string? KeyAlgorithm { get { throw null; } set { } } + public int KeySize { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class EncryptionProperty + { + public EncryptionProperty() { } + public EncryptionProperty(System.Xml.XmlElement elementProperty) { } + public string? Id { get { throw null; } } + public System.Xml.XmlElement? PropertyElement { get { throw null; } set { } } + public string? Target { get { throw null; } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class EncryptionPropertyCollection : Collections.IList, Collections.ICollection, Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsFixedSize { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public EncryptionProperty this[int index] { get { throw null; } set { } } + + public object SyncRoot { get { throw null; } } + + object? Collections.IList.this[int index] { get { throw null; } set { } } + + public int Add(EncryptionProperty value) { throw null; } + public void Clear() { } + public bool Contains(EncryptionProperty value) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(EncryptionProperty[] array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(EncryptionProperty value) { throw null; } + public void Insert(int index, EncryptionProperty value) { } + public EncryptionProperty Item(int index) { throw null; } + public void Remove(EncryptionProperty value) { } + public void RemoveAt(int index) { } + int Collections.IList.Add(object value) { throw null; } + bool Collections.IList.Contains(object value) { throw null; } + int Collections.IList.IndexOf(object value) { throw null; } + void Collections.IList.Insert(int index, object value) { } + void Collections.IList.Remove(object value) { } + } + + public partial interface IRelDecryptor + { + IO.Stream Decrypt(EncryptionMethod encryptionMethod, KeyInfo keyInfo, IO.Stream toDecrypt); + } + + public partial class KeyInfo : Collections.IEnumerable + { + public int Count { get { throw null; } } + public string? Id { get { throw null; } set { } } + + public void AddClause(KeyInfoClause clause) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public Collections.IEnumerator GetEnumerator(Type requestedObjectType) { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + + public abstract partial class KeyInfoClause + { + public abstract System.Xml.XmlElement GetXml(); + public abstract void LoadXml(System.Xml.XmlElement element); + } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class KeyInfoEncryptedKey : KeyInfoClause + { + public KeyInfoEncryptedKey() { } + public KeyInfoEncryptedKey(EncryptedKey encryptedKey) { } + public EncryptedKey? EncryptedKey { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoName : KeyInfoClause + { + public KeyInfoName() { } + public KeyInfoName(string? keyName) { } + public string? Value { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoNode : KeyInfoClause + { + public KeyInfoNode() { } + public KeyInfoNode(System.Xml.XmlElement node) { } + public System.Xml.XmlElement? Value { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoRetrievalMethod : KeyInfoClause + { + public KeyInfoRetrievalMethod() { } + public KeyInfoRetrievalMethod(string strUri, string typeName) { } + public KeyInfoRetrievalMethod(string? strUri) { } + public string? Type { get { throw null; } set { } } + public string? Uri { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoX509Data : KeyInfoClause + { + public KeyInfoX509Data() { } + public KeyInfoX509Data(byte[] rgbCert) { } + public KeyInfoX509Data(X509Certificates.X509Certificate cert, X509Certificates.X509IncludeOption includeOption) { } + public KeyInfoX509Data(X509Certificates.X509Certificate cert) { } + public Collections.ArrayList? Certificates { get { throw null; } } + public byte[]? CRL { get { throw null; } set { } } + public Collections.ArrayList? IssuerSerials { get { throw null; } } + public Collections.ArrayList? SubjectKeyIds { get { throw null; } } + public Collections.ArrayList? SubjectNames { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate certificate) { } + public void AddIssuerSerial(string issuerName, string serialNumber) { } + public void AddSubjectKeyId(byte[] subjectKeyId) { } + public void AddSubjectKeyId(string subjectKeyId) { } + public void AddSubjectName(string subjectName) { } + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement element) { } + } + + public sealed partial class KeyReference : EncryptedReference + { + public KeyReference() { } + public KeyReference(string uri, TransformChain transformChain) { } + public KeyReference(string uri) { } + } + + public partial class Reference + { + public Reference() { } + public Reference(IO.Stream stream) { } + public Reference(string? uri) { } + public string DigestMethod { get { throw null; } set { } } + public byte[]? DigestValue { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } + public TransformChain TransformChain { get { throw null; } set { } } + public string? Type { get { throw null; } set { } } + public string? Uri { get { throw null; } set { } } + + public void AddTransform(Transform transform) { } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class ReferenceList : Collections.IList, Collections.ICollection, Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public EncryptedReference this[int index] { get { throw null; } set { } } + + public object SyncRoot { get { throw null; } } + + bool Collections.IList.IsFixedSize { get { throw null; } } + + bool Collections.IList.IsReadOnly { get { throw null; } } + + object? Collections.IList.this[int index] { get { throw null; } set { } } + + public int Add(object? value) { throw null; } + public void Clear() { } + public bool Contains(object? value) { throw null; } + public void CopyTo(Array array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(object? value) { throw null; } + public void Insert(int index, object? value) { } + public EncryptedReference? Item(int index) { throw null; } + public void Remove(object? value) { } + public void RemoveAt(int index) { } + } + + public partial class RSAKeyValue : KeyInfoClause + { + public RSAKeyValue() { } + public RSAKeyValue(RSA key) { } + public RSA Key { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class Signature + { + public string? Id { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public Collections.IList ObjectList { get { throw null; } set { } } + public byte[]? SignatureValue { get { throw null; } set { } } + public SignedInfo? SignedInfo { get { throw null; } set { } } + + public void AddObject(DataObject dataObject) { } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class SignedInfo : Collections.ICollection, Collections.IEnumerable + { + public string CanonicalizationMethod { get { throw null; } set { } } + public Transform CanonicalizationMethodObject { get { throw null; } } + public int Count { get { throw null; } } + public string? Id { get { throw null; } set { } } + public bool IsReadOnly { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + public Collections.ArrayList References { get { throw null; } } + public string? SignatureLength { get { throw null; } set { } } + public string? SignatureMethod { get { throw null; } set { } } + public object SyncRoot { get { throw null; } } + + public void AddReference(Reference reference) { } + public void CopyTo(Array array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class SignedXml + { + protected Signature m_signature; + protected string? m_strSigningKeyName; + public const string XmlDecryptionTransformUrl = "http://www.w3.org/2002/07/decrypt#XML"; + public const string XmlDsigBase64TransformUrl = "http://www.w3.org/2000/09/xmldsig#base64"; + public const string XmlDsigC14NTransformUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + public const string XmlDsigC14NWithCommentsTransformUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"; + public const string XmlDsigCanonicalizationUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + public const string XmlDsigCanonicalizationWithCommentsUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"; + public const string XmlDsigDSAUrl = "http://www.w3.org/2000/09/xmldsig#dsa-sha1"; + public const string XmlDsigEnvelopedSignatureTransformUrl = "http://www.w3.org/2000/09/xmldsig#enveloped-signature"; + public const string XmlDsigExcC14NTransformUrl = "http://www.w3.org/2001/10/xml-exc-c14n#"; + public const string XmlDsigExcC14NWithCommentsTransformUrl = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"; + public const string XmlDsigHMACSHA1Url = "http://www.w3.org/2000/09/xmldsig#hmac-sha1"; + public const string XmlDsigMinimalCanonicalizationUrl = "http://www.w3.org/2000/09/xmldsig#minimal"; + public const string XmlDsigNamespaceUrl = "http://www.w3.org/2000/09/xmldsig#"; + public const string XmlDsigRSASHA1Url = "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + public const string XmlDsigRSASHA256Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"; + public const string XmlDsigRSASHA384Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"; + public const string XmlDsigRSASHA512Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"; + public const string XmlDsigSHA1Url = "http://www.w3.org/2000/09/xmldsig#sha1"; + public const string XmlDsigSHA256Url = "http://www.w3.org/2001/04/xmlenc#sha256"; + public const string XmlDsigSHA384Url = "http://www.w3.org/2001/04/xmldsig-more#sha384"; + public const string XmlDsigSHA512Url = "http://www.w3.org/2001/04/xmlenc#sha512"; + public const string XmlDsigXPathTransformUrl = "http://www.w3.org/TR/1999/REC-xpath-19991116"; + public const string XmlDsigXsltTransformUrl = "http://www.w3.org/TR/1999/REC-xslt-19991116"; + public const string XmlLicenseTransformUrl = "urn:mpeg:mpeg21:2003:01-REL-R-NS:licenseTransform"; + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml() { } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml(System.Xml.XmlDocument document) { } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml(System.Xml.XmlElement elem) { } + public EncryptedXml EncryptedXml { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public System.Xml.XmlResolver Resolver { set { } } + public Collections.ObjectModel.Collection SafeCanonicalizationMethods { get { throw null; } } + public Signature Signature { get { throw null; } } + public Func SignatureFormatValidator { get { throw null; } set { } } + public string? SignatureLength { get { throw null; } } + public string? SignatureMethod { get { throw null; } } + public byte[]? SignatureValue { get { throw null; } } + public SignedInfo? SignedInfo { get { throw null; } } + public AsymmetricAlgorithm? SigningKey { get { throw null; } set { } } + public string? SigningKeyName { get { throw null; } set { } } + + public void AddObject(DataObject dataObject) { } + public void AddReference(Reference reference) { } + public bool CheckSignature() { throw null; } + public bool CheckSignature(AsymmetricAlgorithm key) { throw null; } + public bool CheckSignature(KeyedHashAlgorithm macAlg) { throw null; } + public bool CheckSignature(X509Certificates.X509Certificate2 certificate, bool verifySignatureOnly) { throw null; } + public bool CheckSignatureReturningKey(out AsymmetricAlgorithm? signingKey) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RDC")] + public void ComputeSignature() { } + public void ComputeSignature(KeyedHashAlgorithm macAlg) { } + public virtual System.Xml.XmlElement? GetIdElement(System.Xml.XmlDocument? document, string idValue) { throw null; } + protected virtual AsymmetricAlgorithm? GetPublicKey() { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public abstract partial class Transform + { + public string? Algorithm { get { throw null; } set { } } + public System.Xml.XmlElement? Context { get { throw null; } set { } } + public abstract Type[] InputTypes { get; } + public abstract Type[] OutputTypes { get; } + public Collections.Hashtable PropagatedNamespaces { get { throw null; } } + public System.Xml.XmlResolver? Resolver { set { } } + + public virtual byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected abstract System.Xml.XmlNodeList? GetInnerXml(); + public abstract object GetOutput(); + public abstract object GetOutput(Type type); + public System.Xml.XmlElement GetXml() { throw null; } + public abstract void LoadInnerXml(System.Xml.XmlNodeList nodeList); + public abstract void LoadInput(object obj); + } + public partial class TransformChain + { + public int Count { get { throw null; } } + + public Transform this[int index] { get { throw null; } } + + public void Add(Transform transform) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class XmlDecryptionTransform : Transform + { + public EncryptedXml EncryptedXml { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public void AddExceptUri(string uri) { } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + protected virtual bool IsTargetElement(System.Xml.XmlElement? inputElement, string idValue) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigBase64Transform : Transform + { + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigC14NTransform : Transform + { + public XmlDsigC14NTransform() { } + public XmlDsigC14NTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public override byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigC14NWithCommentsTransform : XmlDsigC14NTransform + { + } + + public partial class XmlDsigEnvelopedSignatureTransform : Transform + { + public XmlDsigEnvelopedSignatureTransform() { } + public XmlDsigEnvelopedSignatureTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigExcC14NTransform : Transform + { + public XmlDsigExcC14NTransform() { } + public XmlDsigExcC14NTransform(bool includeComments, string? inclusiveNamespacesPrefixList) { } + public XmlDsigExcC14NTransform(bool includeComments) { } + public XmlDsigExcC14NTransform(string inclusiveNamespacesPrefixList) { } + public string? InclusiveNamespacesPrefixList { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public override byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigExcC14NWithCommentsTransform : XmlDsigExcC14NTransform + { + public XmlDsigExcC14NWithCommentsTransform() { } + public XmlDsigExcC14NWithCommentsTransform(string inclusiveNamespacesPrefixList) { } + } + + public partial class XmlDsigXPathTransform : Transform + { + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigXsltTransform : Transform + { + public XmlDsigXsltTransform() { } + public XmlDsigXsltTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class XmlLicenseTransform : Transform + { + public IRelDecryptor? Decryptor { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs new file mode 100644 index 0000000000..4ba9197d2e --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs @@ -0,0 +1,674 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Xml")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.Versioning.UnsupportedOSPlatform("browser")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, \"XML-Signature Syntax and Processing\", described at http://www.w3.org/TR/xmldsig-core/.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Xml.CipherData\r\nSystem.Security.Cryptography.Xml.CipherReference\r\nSystem.Security.Cryptography.Xml.DataObject\r\nSystem.Security.Cryptography.Xml.DataReference\r\nSystem.Security.Cryptography.Xml.DSAKeyValue\r\nSystem.Security.Cryptography.Xml.EncryptedData\r\nSystem.Security.Cryptography.Xml.EncryptedKey\r\nSystem.Security.Cryptography.Xml.EncryptedReference\r\nSystem.Security.Cryptography.Xml.EncryptedType\r\nSystem.Security.Cryptography.Xml.EncryptedXml\r\nSystem.Security.Cryptography.Xml.EncryptionMethod\r\nSystem.Security.Cryptography.Xml.EncryptionProperty\r\nSystem.Security.Cryptography.Xml.EncryptionPropertyCollection\r\nSystem.Security.Cryptography.Xml.KeyInfo\r\nSystem.Security.Cryptography.Xml.KeyInfoClause\r\nSystem.Security.Cryptography.Xml.KeyInfoEncryptedKey\r\nSystem.Security.Cryptography.Xml.KeyInfoName\r\nSystem.Security.Cryptography.Xml.KeyInfoNode\r\nSystem.Security.Cryptography.Xml.KeyInfoRetrievalMethod\r\nSystem.Security.Cryptography.Xml.KeyInfoX509Data\r\nSystem.Security.Cryptography.Xml.KeyReference\r\nSystem.Security.Cryptography.Xml.Reference\r\nSystem.Security.Cryptography.Xml.ReferenceList\r\nSystem.Security.Cryptography.Xml.RSAKeyValue\r\nSystem.Security.Cryptography.Xml.Signature\r\nSystem.Security.Cryptography.Xml.SignedInfo\r\nSystem.Security.Cryptography.Xml.SignedXml\r\nSystem.Security.Cryptography.Xml.Transform\r\nSystem.Security.Cryptography.Xml.TransformChain\r\nSystem.Security.Cryptography.Xml.XmlDecryptionTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigBase64Transform\r\nSystem.Security.Cryptography.Xml.XmlDsigC14NTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigExcC14NTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigXPathTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigXsltTransform\r\nSystem.Security.Cryptography.Xml.XmlLicenseTransform")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.2626.16921")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.26+ace9703c57db8596ccc3e3efdc7e65b6975c0b2d")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Xml")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography.Xml +{ + public sealed partial class CipherData + { + public CipherData() { } + public CipherData(byte[] cipherValue) { } + public CipherData(CipherReference cipherReference) { } + public CipherReference? CipherReference { get { throw null; } set { } } + public byte[]? CipherValue { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class CipherReference : EncryptedReference + { + public CipherReference() { } + public CipherReference(string uri, TransformChain transformChain) { } + public CipherReference(string uri) { } + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class CryptoSignedXmlRecursionException : System.Xml.XmlException + { + public CryptoSignedXmlRecursionException() { } + protected CryptoSignedXmlRecursionException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + public CryptoSignedXmlRecursionException(string message, Exception inner) { } + public CryptoSignedXmlRecursionException(string message) { } + } + + public partial class DataObject + { + public DataObject() { } + public DataObject(string id, string mimeType, string encoding, System.Xml.XmlElement data) { } + public System.Xml.XmlNodeList Data { get { throw null; } set { } } + public string? Encoding { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } + public string? MimeType { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class DataReference : EncryptedReference + { + public DataReference() { } + public DataReference(string uri, TransformChain transformChain) { } + public DataReference(string uri) { } + } + + public partial class DSAKeyValue : KeyInfoClause + { + [Runtime.Versioning.UnsupportedOSPlatform("ios")] + [Runtime.Versioning.UnsupportedOSPlatform("tvos")] + public DSAKeyValue() { } + public DSAKeyValue(DSA key) { } + public DSA Key { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public sealed partial class EncryptedData : EncryptedType + { + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public sealed partial class EncryptedKey : EncryptedType + { + public string? CarriedKeyName { get { throw null; } set { } } + public string Recipient { get { throw null; } set { } } + public ReferenceList ReferenceList { get { throw null; } } + + public void AddReference(DataReference dataReference) { } + public void AddReference(KeyReference keyReference) { } + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public abstract partial class EncryptedReference + { + protected EncryptedReference() { } + protected EncryptedReference(string uri, TransformChain transformChain) { } + protected EncryptedReference(string uri) { } + [Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "_cachedXml")] + protected internal bool CacheValid { get { throw null; } } + protected string? ReferenceType { get { throw null; } set { } } + public TransformChain TransformChain { get { throw null; } set { } } + public string Uri { get { throw null; } set { } } + + public void AddTransform(Transform transform) { } + public virtual System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public virtual void LoadXml(System.Xml.XmlElement value) { } + } + public abstract partial class EncryptedType + { + public virtual CipherData CipherData { get { throw null; } set { } } + public virtual string? Encoding { get { throw null; } set { } } + public virtual EncryptionMethod? EncryptionMethod { get { throw null; } set { } } + public virtual EncryptionPropertyCollection EncryptionProperties { get { throw null; } } + public virtual string? Id { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public virtual string? MimeType { get { throw null; } set { } } + public virtual string? Type { get { throw null; } set { } } + + public void AddProperty(EncryptionProperty ep) { } + public abstract System.Xml.XmlElement GetXml(); + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public abstract void LoadXml(System.Xml.XmlElement value); + } + public partial class EncryptedXml + { + public const string XmlEncAES128KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes128"; + public const string XmlEncAES128Url = "http://www.w3.org/2001/04/xmlenc#aes128-cbc"; + public const string XmlEncAES192KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes192"; + public const string XmlEncAES192Url = "http://www.w3.org/2001/04/xmlenc#aes192-cbc"; + public const string XmlEncAES256KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes256"; + public const string XmlEncAES256Url = "http://www.w3.org/2001/04/xmlenc#aes256-cbc"; + public const string XmlEncDESUrl = "http://www.w3.org/2001/04/xmlenc#des-cbc"; + public const string XmlEncElementContentUrl = "http://www.w3.org/2001/04/xmlenc#Content"; + public const string XmlEncElementUrl = "http://www.w3.org/2001/04/xmlenc#Element"; + public const string XmlEncEncryptedKeyUrl = "http://www.w3.org/2001/04/xmlenc#EncryptedKey"; + public const string XmlEncNamespaceUrl = "http://www.w3.org/2001/04/xmlenc#"; + public const string XmlEncRSA15Url = "http://www.w3.org/2001/04/xmlenc#rsa-1_5"; + public const string XmlEncRSAOAEPUrl = "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"; + public const string XmlEncSHA256Url = "http://www.w3.org/2001/04/xmlenc#sha256"; + public const string XmlEncSHA512Url = "http://www.w3.org/2001/04/xmlenc#sha512"; + public const string XmlEncTripleDESKeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-tripledes"; + public const string XmlEncTripleDESUrl = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc"; + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml() { } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml(System.Xml.XmlDocument document, Policy.Evidence? evidence) { } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml(System.Xml.XmlDocument document) { } + public Policy.Evidence? DocumentEvidence { get { throw null; } set { } } + public Text.Encoding Encoding { get { throw null; } set { } } + public CipherMode Mode { get { throw null; } set { } } + public PaddingMode Padding { get { throw null; } set { } } + public string Recipient { get { throw null; } set { } } + public System.Xml.XmlResolver? Resolver { get { throw null; } set { } } + public int XmlDSigSearchDepth { get { throw null; } set { } } + + public void AddKeyNameMapping(string keyName, object keyObject) { } + public void ClearKeyNameMappings() { } + public byte[] DecryptData(EncryptedData encryptedData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public void DecryptDocument() { } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public virtual byte[]? DecryptEncryptedKey(EncryptedKey encryptedKey) { throw null; } + public static byte[] DecryptKey(byte[] keyData, RSA rsa, bool useOAEP) { throw null; } + public static byte[] DecryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public EncryptedData Encrypt(System.Xml.XmlElement inputElement, X509Certificates.X509Certificate2 certificate) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public EncryptedData Encrypt(System.Xml.XmlElement inputElement, string keyName) { throw null; } + public byte[] EncryptData(byte[] plaintext, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public byte[] EncryptData(System.Xml.XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, bool content) { throw null; } + public static byte[] EncryptKey(byte[] keyData, RSA rsa, bool useOAEP) { throw null; } + public static byte[] EncryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public virtual byte[] GetDecryptionIV(EncryptedData encryptedData, string? symmetricAlgorithmUri) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public virtual SymmetricAlgorithm? GetDecryptionKey(EncryptedData encryptedData, string? symmetricAlgorithmUri) { throw null; } + public virtual System.Xml.XmlElement? GetIdElement(System.Xml.XmlDocument document, string idValue) { throw null; } + public void ReplaceData(System.Xml.XmlElement inputElement, byte[] decryptedData) { } + public static void ReplaceElement(System.Xml.XmlElement inputElement, EncryptedData encryptedData, bool content) { } + } + public partial class EncryptionMethod + { + public EncryptionMethod() { } + public EncryptionMethod(string? algorithm) { } + public string? KeyAlgorithm { get { throw null; } set { } } + public int KeySize { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class EncryptionProperty + { + public EncryptionProperty() { } + public EncryptionProperty(System.Xml.XmlElement elementProperty) { } + public string? Id { get { throw null; } } + public System.Xml.XmlElement? PropertyElement { get { throw null; } set { } } + public string? Target { get { throw null; } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class EncryptionPropertyCollection : Collections.IList, Collections.ICollection, Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsFixedSize { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public EncryptionProperty this[int index] { get { throw null; } set { } } + + public object SyncRoot { get { throw null; } } + + object? Collections.IList.this[int index] { get { throw null; } set { } } + + public int Add(EncryptionProperty value) { throw null; } + public void Clear() { } + public bool Contains(EncryptionProperty value) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(EncryptionProperty[] array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(EncryptionProperty value) { throw null; } + public void Insert(int index, EncryptionProperty value) { } + public EncryptionProperty Item(int index) { throw null; } + public void Remove(EncryptionProperty value) { } + public void RemoveAt(int index) { } + int Collections.IList.Add(object value) { throw null; } + bool Collections.IList.Contains(object value) { throw null; } + int Collections.IList.IndexOf(object value) { throw null; } + void Collections.IList.Insert(int index, object value) { } + void Collections.IList.Remove(object value) { } + } + + public partial interface IRelDecryptor + { + IO.Stream Decrypt(EncryptionMethod encryptionMethod, KeyInfo keyInfo, IO.Stream toDecrypt); + } + + public partial class KeyInfo : Collections.IEnumerable + { + public int Count { get { throw null; } } + public string? Id { get { throw null; } set { } } + + public void AddClause(KeyInfoClause clause) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public Collections.IEnumerator GetEnumerator(Type requestedObjectType) { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + + public abstract partial class KeyInfoClause + { + public abstract System.Xml.XmlElement GetXml(); + public abstract void LoadXml(System.Xml.XmlElement element); + } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class KeyInfoEncryptedKey : KeyInfoClause + { + public KeyInfoEncryptedKey() { } + public KeyInfoEncryptedKey(EncryptedKey encryptedKey) { } + public EncryptedKey? EncryptedKey { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoName : KeyInfoClause + { + public KeyInfoName() { } + public KeyInfoName(string? keyName) { } + public string? Value { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoNode : KeyInfoClause + { + public KeyInfoNode() { } + public KeyInfoNode(System.Xml.XmlElement node) { } + public System.Xml.XmlElement? Value { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoRetrievalMethod : KeyInfoClause + { + public KeyInfoRetrievalMethod() { } + public KeyInfoRetrievalMethod(string strUri, string typeName) { } + public KeyInfoRetrievalMethod(string? strUri) { } + public string? Type { get { throw null; } set { } } + public string? Uri { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoX509Data : KeyInfoClause + { + public KeyInfoX509Data() { } + public KeyInfoX509Data(byte[] rgbCert) { } + public KeyInfoX509Data(X509Certificates.X509Certificate cert, X509Certificates.X509IncludeOption includeOption) { } + public KeyInfoX509Data(X509Certificates.X509Certificate cert) { } + public Collections.ArrayList? Certificates { get { throw null; } } + public byte[]? CRL { get { throw null; } set { } } + public Collections.ArrayList? IssuerSerials { get { throw null; } } + public Collections.ArrayList? SubjectKeyIds { get { throw null; } } + public Collections.ArrayList? SubjectNames { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate certificate) { } + public void AddIssuerSerial(string issuerName, string serialNumber) { } + public void AddSubjectKeyId(byte[] subjectKeyId) { } + public void AddSubjectKeyId(string subjectKeyId) { } + public void AddSubjectName(string subjectName) { } + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement element) { } + } + + public sealed partial class KeyReference : EncryptedReference + { + public KeyReference() { } + public KeyReference(string uri, TransformChain transformChain) { } + public KeyReference(string uri) { } + } + + public partial class Reference + { + public Reference() { } + public Reference(IO.Stream stream) { } + public Reference(string? uri) { } + public string DigestMethod { get { throw null; } set { } } + public byte[]? DigestValue { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } + public TransformChain TransformChain { get { throw null; } set { } } + public string? Type { get { throw null; } set { } } + public string? Uri { get { throw null; } set { } } + + public void AddTransform(Transform transform) { } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class ReferenceList : Collections.IList, Collections.ICollection, Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public EncryptedReference this[int index] { get { throw null; } set { } } + + public object SyncRoot { get { throw null; } } + + bool Collections.IList.IsFixedSize { get { throw null; } } + + bool Collections.IList.IsReadOnly { get { throw null; } } + + object? Collections.IList.this[int index] { get { throw null; } set { } } + + public int Add(object? value) { throw null; } + public void Clear() { } + public bool Contains(object? value) { throw null; } + public void CopyTo(Array array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(object? value) { throw null; } + public void Insert(int index, object? value) { } + public EncryptedReference? Item(int index) { throw null; } + public void Remove(object? value) { } + public void RemoveAt(int index) { } + } + + public partial class RSAKeyValue : KeyInfoClause + { + public RSAKeyValue() { } + public RSAKeyValue(RSA key) { } + public RSA Key { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class Signature + { + public string? Id { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public Collections.IList ObjectList { get { throw null; } set { } } + public byte[]? SignatureValue { get { throw null; } set { } } + public SignedInfo? SignedInfo { get { throw null; } set { } } + + public void AddObject(DataObject dataObject) { } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class SignedInfo : Collections.ICollection, Collections.IEnumerable + { + public string CanonicalizationMethod { get { throw null; } set { } } + public Transform CanonicalizationMethodObject { get { throw null; } } + public int Count { get { throw null; } } + public string? Id { get { throw null; } set { } } + public bool IsReadOnly { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + public Collections.ArrayList References { get { throw null; } } + public string? SignatureLength { get { throw null; } set { } } + public string? SignatureMethod { get { throw null; } set { } } + public object SyncRoot { get { throw null; } } + + public void AddReference(Reference reference) { } + public void CopyTo(Array array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class SignedXml + { + protected Signature m_signature; + protected string? m_strSigningKeyName; + public const string XmlDecryptionTransformUrl = "http://www.w3.org/2002/07/decrypt#XML"; + public const string XmlDsigBase64TransformUrl = "http://www.w3.org/2000/09/xmldsig#base64"; + public const string XmlDsigC14NTransformUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + public const string XmlDsigC14NWithCommentsTransformUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"; + public const string XmlDsigCanonicalizationUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + public const string XmlDsigCanonicalizationWithCommentsUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"; + public const string XmlDsigDSAUrl = "http://www.w3.org/2000/09/xmldsig#dsa-sha1"; + public const string XmlDsigEnvelopedSignatureTransformUrl = "http://www.w3.org/2000/09/xmldsig#enveloped-signature"; + public const string XmlDsigExcC14NTransformUrl = "http://www.w3.org/2001/10/xml-exc-c14n#"; + public const string XmlDsigExcC14NWithCommentsTransformUrl = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"; + public const string XmlDsigHMACSHA1Url = "http://www.w3.org/2000/09/xmldsig#hmac-sha1"; + public const string XmlDsigMinimalCanonicalizationUrl = "http://www.w3.org/2000/09/xmldsig#minimal"; + public const string XmlDsigNamespaceUrl = "http://www.w3.org/2000/09/xmldsig#"; + public const string XmlDsigRSASHA1Url = "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + public const string XmlDsigRSASHA256Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"; + public const string XmlDsigRSASHA384Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"; + public const string XmlDsigRSASHA512Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"; + public const string XmlDsigSHA1Url = "http://www.w3.org/2000/09/xmldsig#sha1"; + public const string XmlDsigSHA256Url = "http://www.w3.org/2001/04/xmlenc#sha256"; + public const string XmlDsigSHA384Url = "http://www.w3.org/2001/04/xmldsig-more#sha384"; + public const string XmlDsigSHA512Url = "http://www.w3.org/2001/04/xmlenc#sha512"; + public const string XmlDsigXPathTransformUrl = "http://www.w3.org/TR/1999/REC-xpath-19991116"; + public const string XmlDsigXsltTransformUrl = "http://www.w3.org/TR/1999/REC-xslt-19991116"; + public const string XmlLicenseTransformUrl = "urn:mpeg:mpeg21:2003:01-REL-R-NS:licenseTransform"; + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml() { } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml(System.Xml.XmlDocument document) { } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml(System.Xml.XmlElement elem) { } + public EncryptedXml EncryptedXml { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public System.Xml.XmlResolver Resolver { set { } } + public Collections.ObjectModel.Collection SafeCanonicalizationMethods { get { throw null; } } + public Signature Signature { get { throw null; } } + public Func SignatureFormatValidator { get { throw null; } set { } } + public string? SignatureLength { get { throw null; } } + public string? SignatureMethod { get { throw null; } } + public byte[]? SignatureValue { get { throw null; } } + public SignedInfo? SignedInfo { get { throw null; } } + public AsymmetricAlgorithm? SigningKey { get { throw null; } set { } } + public string? SigningKeyName { get { throw null; } set { } } + + public void AddObject(DataObject dataObject) { } + public void AddReference(Reference reference) { } + public bool CheckSignature() { throw null; } + public bool CheckSignature(AsymmetricAlgorithm key) { throw null; } + public bool CheckSignature(KeyedHashAlgorithm macAlg) { throw null; } + public bool CheckSignature(X509Certificates.X509Certificate2 certificate, bool verifySignatureOnly) { throw null; } + public bool CheckSignatureReturningKey(out AsymmetricAlgorithm? signingKey) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RDC")] + public void ComputeSignature() { } + public void ComputeSignature(KeyedHashAlgorithm macAlg) { } + public virtual System.Xml.XmlElement? GetIdElement(System.Xml.XmlDocument? document, string idValue) { throw null; } + protected virtual AsymmetricAlgorithm? GetPublicKey() { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public abstract partial class Transform + { + public string? Algorithm { get { throw null; } set { } } + public System.Xml.XmlElement? Context { get { throw null; } set { } } + public abstract Type[] InputTypes { get; } + public abstract Type[] OutputTypes { get; } + public Collections.Hashtable PropagatedNamespaces { get { throw null; } } + public System.Xml.XmlResolver? Resolver { set { } } + + public virtual byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected abstract System.Xml.XmlNodeList? GetInnerXml(); + public abstract object GetOutput(); + public abstract object GetOutput(Type type); + public System.Xml.XmlElement GetXml() { throw null; } + public abstract void LoadInnerXml(System.Xml.XmlNodeList nodeList); + public abstract void LoadInput(object obj); + } + public partial class TransformChain + { + public int Count { get { throw null; } } + + public Transform this[int index] { get { throw null; } } + + public void Add(Transform transform) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class XmlDecryptionTransform : Transform + { + public EncryptedXml EncryptedXml { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public void AddExceptUri(string uri) { } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + protected virtual bool IsTargetElement(System.Xml.XmlElement? inputElement, string idValue) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigBase64Transform : Transform + { + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigC14NTransform : Transform + { + public XmlDsigC14NTransform() { } + public XmlDsigC14NTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public override byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigC14NWithCommentsTransform : XmlDsigC14NTransform + { + } + + public partial class XmlDsigEnvelopedSignatureTransform : Transform + { + public XmlDsigEnvelopedSignatureTransform() { } + public XmlDsigEnvelopedSignatureTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigExcC14NTransform : Transform + { + public XmlDsigExcC14NTransform() { } + public XmlDsigExcC14NTransform(bool includeComments, string? inclusiveNamespacesPrefixList) { } + public XmlDsigExcC14NTransform(bool includeComments) { } + public XmlDsigExcC14NTransform(string inclusiveNamespacesPrefixList) { } + public string? InclusiveNamespacesPrefixList { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public override byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigExcC14NWithCommentsTransform : XmlDsigExcC14NTransform + { + public XmlDsigExcC14NWithCommentsTransform() { } + public XmlDsigExcC14NWithCommentsTransform(string inclusiveNamespacesPrefixList) { } + } + + public partial class XmlDsigXPathTransform : Transform + { + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + public partial class XmlDsigXsltTransform : Transform + { + public XmlDsigXsltTransform() { } + public XmlDsigXsltTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class XmlLicenseTransform : Transform + { + public IRelDecryptor? Decryptor { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs new file mode 100644 index 0000000000..9e732e986c --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs @@ -0,0 +1,675 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Xml")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.Versioning.UnsupportedOSPlatform("browser")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, \"XML-Signature Syntax and Processing\", described at http://www.w3.org/TR/xmldsig-core/.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Xml.CipherData\r\nSystem.Security.Cryptography.Xml.CipherReference\r\nSystem.Security.Cryptography.Xml.DataObject\r\nSystem.Security.Cryptography.Xml.DataReference\r\nSystem.Security.Cryptography.Xml.DSAKeyValue\r\nSystem.Security.Cryptography.Xml.EncryptedData\r\nSystem.Security.Cryptography.Xml.EncryptedKey\r\nSystem.Security.Cryptography.Xml.EncryptedReference\r\nSystem.Security.Cryptography.Xml.EncryptedType\r\nSystem.Security.Cryptography.Xml.EncryptedXml\r\nSystem.Security.Cryptography.Xml.EncryptionMethod\r\nSystem.Security.Cryptography.Xml.EncryptionProperty\r\nSystem.Security.Cryptography.Xml.EncryptionPropertyCollection\r\nSystem.Security.Cryptography.Xml.KeyInfo\r\nSystem.Security.Cryptography.Xml.KeyInfoClause\r\nSystem.Security.Cryptography.Xml.KeyInfoEncryptedKey\r\nSystem.Security.Cryptography.Xml.KeyInfoName\r\nSystem.Security.Cryptography.Xml.KeyInfoNode\r\nSystem.Security.Cryptography.Xml.KeyInfoRetrievalMethod\r\nSystem.Security.Cryptography.Xml.KeyInfoX509Data\r\nSystem.Security.Cryptography.Xml.KeyReference\r\nSystem.Security.Cryptography.Xml.Reference\r\nSystem.Security.Cryptography.Xml.ReferenceList\r\nSystem.Security.Cryptography.Xml.RSAKeyValue\r\nSystem.Security.Cryptography.Xml.Signature\r\nSystem.Security.Cryptography.Xml.SignedInfo\r\nSystem.Security.Cryptography.Xml.SignedXml\r\nSystem.Security.Cryptography.Xml.Transform\r\nSystem.Security.Cryptography.Xml.TransformChain\r\nSystem.Security.Cryptography.Xml.XmlDecryptionTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigBase64Transform\r\nSystem.Security.Cryptography.Xml.XmlDsigC14NTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigExcC14NTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigXPathTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigXsltTransform\r\nSystem.Security.Cryptography.Xml.XmlLicenseTransform")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.2626.16921")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.26+ace9703c57db8596ccc3e3efdc7e65b6975c0b2d")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Xml")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography.Xml +{ + public sealed partial class CipherData + { + public CipherData() { } + public CipherData(byte[] cipherValue) { } + public CipherData(CipherReference cipherReference) { } + public CipherReference? CipherReference { get { throw null; } set { } } + public byte[]? CipherValue { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class CipherReference : EncryptedReference + { + public CipherReference() { } + public CipherReference(string uri, TransformChain transformChain) { } + public CipherReference(string uri) { } + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class CryptoSignedXmlRecursionException : System.Xml.XmlException + { + public CryptoSignedXmlRecursionException() { } + [Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + protected CryptoSignedXmlRecursionException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + public CryptoSignedXmlRecursionException(string message, Exception inner) { } + public CryptoSignedXmlRecursionException(string message) { } + } + + public partial class DataObject + { + public DataObject() { } + public DataObject(string id, string mimeType, string encoding, System.Xml.XmlElement data) { } + public System.Xml.XmlNodeList Data { get { throw null; } set { } } + public string? Encoding { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } + public string? MimeType { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class DataReference : EncryptedReference + { + public DataReference() { } + public DataReference(string uri, TransformChain transformChain) { } + public DataReference(string uri) { } + } + + public partial class DSAKeyValue : KeyInfoClause + { + [Runtime.Versioning.UnsupportedOSPlatform("ios")] + [Runtime.Versioning.UnsupportedOSPlatform("tvos")] + public DSAKeyValue() { } + public DSAKeyValue(DSA key) { } + public DSA Key { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public sealed partial class EncryptedData : EncryptedType + { + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public sealed partial class EncryptedKey : EncryptedType + { + public string? CarriedKeyName { get { throw null; } set { } } + public string Recipient { get { throw null; } set { } } + public ReferenceList ReferenceList { get { throw null; } } + + public void AddReference(DataReference dataReference) { } + public void AddReference(KeyReference keyReference) { } + public override System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public abstract partial class EncryptedReference + { + protected EncryptedReference() { } + protected EncryptedReference(string uri, TransformChain transformChain) { } + protected EncryptedReference(string uri) { } + [Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "_cachedXml")] + protected internal bool CacheValid { get { throw null; } } + protected string? ReferenceType { get { throw null; } set { } } + public TransformChain TransformChain { get { throw null; } set { } } + public string Uri { get { throw null; } set { } } + + public void AddTransform(Transform transform) { } + public virtual System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public virtual void LoadXml(System.Xml.XmlElement value) { } + } + public abstract partial class EncryptedType + { + public virtual CipherData CipherData { get { throw null; } set { } } + public virtual string? Encoding { get { throw null; } set { } } + public virtual EncryptionMethod? EncryptionMethod { get { throw null; } set { } } + public virtual EncryptionPropertyCollection EncryptionProperties { get { throw null; } } + public virtual string? Id { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public virtual string? MimeType { get { throw null; } set { } } + public virtual string? Type { get { throw null; } set { } } + + public void AddProperty(EncryptionProperty ep) { } + public abstract System.Xml.XmlElement GetXml(); + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public abstract void LoadXml(System.Xml.XmlElement value); + } + public partial class EncryptedXml + { + public const string XmlEncAES128KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes128"; + public const string XmlEncAES128Url = "http://www.w3.org/2001/04/xmlenc#aes128-cbc"; + public const string XmlEncAES192KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes192"; + public const string XmlEncAES192Url = "http://www.w3.org/2001/04/xmlenc#aes192-cbc"; + public const string XmlEncAES256KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes256"; + public const string XmlEncAES256Url = "http://www.w3.org/2001/04/xmlenc#aes256-cbc"; + public const string XmlEncDESUrl = "http://www.w3.org/2001/04/xmlenc#des-cbc"; + public const string XmlEncElementContentUrl = "http://www.w3.org/2001/04/xmlenc#Content"; + public const string XmlEncElementUrl = "http://www.w3.org/2001/04/xmlenc#Element"; + public const string XmlEncEncryptedKeyUrl = "http://www.w3.org/2001/04/xmlenc#EncryptedKey"; + public const string XmlEncNamespaceUrl = "http://www.w3.org/2001/04/xmlenc#"; + public const string XmlEncRSA15Url = "http://www.w3.org/2001/04/xmlenc#rsa-1_5"; + public const string XmlEncRSAOAEPUrl = "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"; + public const string XmlEncSHA256Url = "http://www.w3.org/2001/04/xmlenc#sha256"; + public const string XmlEncSHA512Url = "http://www.w3.org/2001/04/xmlenc#sha512"; + public const string XmlEncTripleDESKeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-tripledes"; + public const string XmlEncTripleDESUrl = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc"; + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml() { } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml(System.Xml.XmlDocument document, Policy.Evidence? evidence) { } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public EncryptedXml(System.Xml.XmlDocument document) { } + public Policy.Evidence? DocumentEvidence { get { throw null; } set { } } + public Text.Encoding Encoding { get { throw null; } set { } } + public CipherMode Mode { get { throw null; } set { } } + public PaddingMode Padding { get { throw null; } set { } } + public string Recipient { get { throw null; } set { } } + public System.Xml.XmlResolver? Resolver { get { throw null; } set { } } + public int XmlDSigSearchDepth { get { throw null; } set { } } + + public void AddKeyNameMapping(string keyName, object keyObject) { } + public void ClearKeyNameMappings() { } + public byte[] DecryptData(EncryptedData encryptedData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public void DecryptDocument() { } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public virtual byte[]? DecryptEncryptedKey(EncryptedKey encryptedKey) { throw null; } + public static byte[] DecryptKey(byte[] keyData, RSA rsa, bool useOAEP) { throw null; } + public static byte[] DecryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public EncryptedData Encrypt(System.Xml.XmlElement inputElement, X509Certificates.X509Certificate2 certificate) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public EncryptedData Encrypt(System.Xml.XmlElement inputElement, string keyName) { throw null; } + public byte[] EncryptData(byte[] plaintext, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public byte[] EncryptData(System.Xml.XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, bool content) { throw null; } + public static byte[] EncryptKey(byte[] keyData, RSA rsa, bool useOAEP) { throw null; } + public static byte[] EncryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public virtual byte[] GetDecryptionIV(EncryptedData encryptedData, string? symmetricAlgorithmUri) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public virtual SymmetricAlgorithm? GetDecryptionKey(EncryptedData encryptedData, string? symmetricAlgorithmUri) { throw null; } + public virtual System.Xml.XmlElement? GetIdElement(System.Xml.XmlDocument document, string idValue) { throw null; } + public void ReplaceData(System.Xml.XmlElement inputElement, byte[] decryptedData) { } + public static void ReplaceElement(System.Xml.XmlElement inputElement, EncryptedData encryptedData, bool content) { } + } + public partial class EncryptionMethod + { + public EncryptionMethod() { } + public EncryptionMethod(string? algorithm) { } + public string? KeyAlgorithm { get { throw null; } set { } } + public int KeySize { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class EncryptionProperty + { + public EncryptionProperty() { } + public EncryptionProperty(System.Xml.XmlElement elementProperty) { } + public string? Id { get { throw null; } } + public System.Xml.XmlElement? PropertyElement { get { throw null; } set { } } + public string? Target { get { throw null; } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class EncryptionPropertyCollection : Collections.IList, Collections.ICollection, Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsFixedSize { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public EncryptionProperty this[int index] { get { throw null; } set { } } + + public object SyncRoot { get { throw null; } } + + object? Collections.IList.this[int index] { get { throw null; } set { } } + + public int Add(EncryptionProperty value) { throw null; } + public void Clear() { } + public bool Contains(EncryptionProperty value) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(EncryptionProperty[] array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(EncryptionProperty value) { throw null; } + public void Insert(int index, EncryptionProperty value) { } + public EncryptionProperty Item(int index) { throw null; } + public void Remove(EncryptionProperty value) { } + public void RemoveAt(int index) { } + int Collections.IList.Add(object value) { throw null; } + bool Collections.IList.Contains(object value) { throw null; } + int Collections.IList.IndexOf(object value) { throw null; } + void Collections.IList.Insert(int index, object value) { } + void Collections.IList.Remove(object value) { } + } + + public partial interface IRelDecryptor + { + IO.Stream Decrypt(EncryptionMethod encryptionMethod, KeyInfo keyInfo, IO.Stream toDecrypt); + } + + public partial class KeyInfo : Collections.IEnumerable + { + public int Count { get { throw null; } } + public string? Id { get { throw null; } set { } } + + public void AddClause(KeyInfoClause clause) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public Collections.IEnumerator GetEnumerator(Type requestedObjectType) { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + + public abstract partial class KeyInfoClause + { + public abstract System.Xml.XmlElement GetXml(); + public abstract void LoadXml(System.Xml.XmlElement element); + } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class KeyInfoEncryptedKey : KeyInfoClause + { + public KeyInfoEncryptedKey() { } + public KeyInfoEncryptedKey(EncryptedKey encryptedKey) { } + public EncryptedKey? EncryptedKey { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoName : KeyInfoClause + { + public KeyInfoName() { } + public KeyInfoName(string? keyName) { } + public string? Value { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoNode : KeyInfoClause + { + public KeyInfoNode() { } + public KeyInfoNode(System.Xml.XmlElement node) { } + public System.Xml.XmlElement? Value { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoRetrievalMethod : KeyInfoClause + { + public KeyInfoRetrievalMethod() { } + public KeyInfoRetrievalMethod(string strUri, string typeName) { } + public KeyInfoRetrievalMethod(string? strUri) { } + public string? Type { get { throw null; } set { } } + public string? Uri { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoX509Data : KeyInfoClause + { + public KeyInfoX509Data() { } + public KeyInfoX509Data(byte[] rgbCert) { } + public KeyInfoX509Data(X509Certificates.X509Certificate cert, X509Certificates.X509IncludeOption includeOption) { } + public KeyInfoX509Data(X509Certificates.X509Certificate cert) { } + public Collections.ArrayList? Certificates { get { throw null; } } + public byte[]? CRL { get { throw null; } set { } } + public Collections.ArrayList? IssuerSerials { get { throw null; } } + public Collections.ArrayList? SubjectKeyIds { get { throw null; } } + public Collections.ArrayList? SubjectNames { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate certificate) { } + public void AddIssuerSerial(string issuerName, string serialNumber) { } + public void AddSubjectKeyId(byte[] subjectKeyId) { } + public void AddSubjectKeyId(string subjectKeyId) { } + public void AddSubjectName(string subjectName) { } + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement element) { } + } + + public sealed partial class KeyReference : EncryptedReference + { + public KeyReference() { } + public KeyReference(string uri, TransformChain transformChain) { } + public KeyReference(string uri) { } + } + + public partial class Reference + { + public Reference() { } + public Reference(IO.Stream stream) { } + public Reference(string? uri) { } + public string DigestMethod { get { throw null; } set { } } + public byte[]? DigestValue { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } + public TransformChain TransformChain { get { throw null; } set { } } + public string? Type { get { throw null; } set { } } + public string? Uri { get { throw null; } set { } } + + public void AddTransform(Transform transform) { } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class ReferenceList : Collections.IList, Collections.ICollection, Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public EncryptedReference this[int index] { get { throw null; } set { } } + + public object SyncRoot { get { throw null; } } + + bool Collections.IList.IsFixedSize { get { throw null; } } + + bool Collections.IList.IsReadOnly { get { throw null; } } + + object? Collections.IList.this[int index] { get { throw null; } set { } } + + public int Add(object? value) { throw null; } + public void Clear() { } + public bool Contains(object? value) { throw null; } + public void CopyTo(Array array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(object? value) { throw null; } + public void Insert(int index, object? value) { } + public EncryptedReference? Item(int index) { throw null; } + public void Remove(object? value) { } + public void RemoveAt(int index) { } + } + + public partial class RSAKeyValue : KeyInfoClause + { + public RSAKeyValue() { } + public RSAKeyValue(RSA key) { } + public RSA Key { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class Signature + { + public string? Id { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public Collections.IList ObjectList { get { throw null; } set { } } + public byte[]? SignatureValue { get { throw null; } set { } } + public SignedInfo? SignedInfo { get { throw null; } set { } } + + public void AddObject(DataObject dataObject) { } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public void LoadXml(System.Xml.XmlElement value) { } + } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class SignedInfo : Collections.ICollection, Collections.IEnumerable + { + public string CanonicalizationMethod { get { throw null; } set { } } + public Transform CanonicalizationMethodObject { get { throw null; } } + public int Count { get { throw null; } } + public string? Id { get { throw null; } set { } } + public bool IsReadOnly { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + public Collections.ArrayList References { get { throw null; } } + public string? SignatureLength { get { throw null; } set { } } + public string? SignatureMethod { get { throw null; } set { } } + public object SyncRoot { get { throw null; } } + + public void AddReference(Reference reference) { } + public void CopyTo(Array array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class SignedXml + { + protected Signature m_signature; + protected string? m_strSigningKeyName; + public const string XmlDecryptionTransformUrl = "http://www.w3.org/2002/07/decrypt#XML"; + public const string XmlDsigBase64TransformUrl = "http://www.w3.org/2000/09/xmldsig#base64"; + public const string XmlDsigC14NTransformUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + public const string XmlDsigC14NWithCommentsTransformUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"; + public const string XmlDsigCanonicalizationUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + public const string XmlDsigCanonicalizationWithCommentsUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"; + public const string XmlDsigDSAUrl = "http://www.w3.org/2000/09/xmldsig#dsa-sha1"; + public const string XmlDsigEnvelopedSignatureTransformUrl = "http://www.w3.org/2000/09/xmldsig#enveloped-signature"; + public const string XmlDsigExcC14NTransformUrl = "http://www.w3.org/2001/10/xml-exc-c14n#"; + public const string XmlDsigExcC14NWithCommentsTransformUrl = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"; + public const string XmlDsigHMACSHA1Url = "http://www.w3.org/2000/09/xmldsig#hmac-sha1"; + public const string XmlDsigMinimalCanonicalizationUrl = "http://www.w3.org/2000/09/xmldsig#minimal"; + public const string XmlDsigNamespaceUrl = "http://www.w3.org/2000/09/xmldsig#"; + public const string XmlDsigRSASHA1Url = "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + public const string XmlDsigRSASHA256Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"; + public const string XmlDsigRSASHA384Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"; + public const string XmlDsigRSASHA512Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"; + public const string XmlDsigSHA1Url = "http://www.w3.org/2000/09/xmldsig#sha1"; + public const string XmlDsigSHA256Url = "http://www.w3.org/2001/04/xmlenc#sha256"; + public const string XmlDsigSHA384Url = "http://www.w3.org/2001/04/xmldsig-more#sha384"; + public const string XmlDsigSHA512Url = "http://www.w3.org/2001/04/xmlenc#sha512"; + public const string XmlDsigXPathTransformUrl = "http://www.w3.org/TR/1999/REC-xpath-19991116"; + public const string XmlDsigXsltTransformUrl = "http://www.w3.org/TR/1999/REC-xslt-19991116"; + public const string XmlLicenseTransformUrl = "urn:mpeg:mpeg21:2003:01-REL-R-NS:licenseTransform"; + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml() { } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml(System.Xml.XmlDocument document) { } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public SignedXml(System.Xml.XmlElement elem) { } + public EncryptedXml EncryptedXml { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public System.Xml.XmlResolver Resolver { set { } } + public Collections.ObjectModel.Collection SafeCanonicalizationMethods { get { throw null; } } + public Signature Signature { get { throw null; } } + public Func SignatureFormatValidator { get { throw null; } set { } } + public string? SignatureLength { get { throw null; } } + public string? SignatureMethod { get { throw null; } } + public byte[]? SignatureValue { get { throw null; } } + public SignedInfo? SignedInfo { get { throw null; } } + public AsymmetricAlgorithm? SigningKey { get { throw null; } set { } } + public string? SigningKeyName { get { throw null; } set { } } + + public void AddObject(DataObject dataObject) { } + public void AddReference(Reference reference) { } + public bool CheckSignature() { throw null; } + public bool CheckSignature(AsymmetricAlgorithm key) { throw null; } + public bool CheckSignature(KeyedHashAlgorithm macAlg) { throw null; } + public bool CheckSignature(X509Certificates.X509Certificate2 certificate, bool verifySignatureOnly) { throw null; } + public bool CheckSignatureReturningKey(out AsymmetricAlgorithm? signingKey) { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RDC")] + public void ComputeSignature() { } + public void ComputeSignature(KeyedHashAlgorithm macAlg) { } + public virtual System.Xml.XmlElement? GetIdElement(System.Xml.XmlDocument? document, string idValue) { throw null; } + protected virtual AsymmetricAlgorithm? GetPublicKey() { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "ctors are marked as RDC")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ILLink", "IL2026:RequiresUnreferencedCode", Justification = "ctors are marked as RUC")] + public void LoadXml(System.Xml.XmlElement value) { } + } + public abstract partial class Transform + { + public string? Algorithm { get { throw null; } set { } } + public System.Xml.XmlElement? Context { get { throw null; } set { } } + public abstract Type[] InputTypes { get; } + public abstract Type[] OutputTypes { get; } + public Collections.Hashtable PropagatedNamespaces { get { throw null; } } + public System.Xml.XmlResolver? Resolver { set { } } + + public virtual byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected abstract System.Xml.XmlNodeList? GetInnerXml(); + public abstract object GetOutput(); + public abstract object GetOutput(Type type); + public System.Xml.XmlElement GetXml() { throw null; } + public abstract void LoadInnerXml(System.Xml.XmlNodeList nodeList); + public abstract void LoadInput(object obj); + } + public partial class TransformChain + { + public int Count { get { throw null; } } + + public Transform this[int index] { get { throw null; } } + + public void Add(Transform transform) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + } + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class XmlDecryptionTransform : Transform + { + public EncryptedXml EncryptedXml { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public void AddExceptUri(string uri) { } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + protected virtual bool IsTargetElement(System.Xml.XmlElement? inputElement, string idValue) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigBase64Transform : Transform + { + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigC14NTransform : Transform + { + public XmlDsigC14NTransform() { } + public XmlDsigC14NTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public override byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigC14NWithCommentsTransform : XmlDsigC14NTransform + { + } + + public partial class XmlDsigEnvelopedSignatureTransform : Transform + { + public XmlDsigEnvelopedSignatureTransform() { } + public XmlDsigEnvelopedSignatureTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigExcC14NTransform : Transform + { + public XmlDsigExcC14NTransform() { } + public XmlDsigExcC14NTransform(bool includeComments, string? inclusiveNamespacesPrefixList) { } + public XmlDsigExcC14NTransform(bool includeComments) { } + public XmlDsigExcC14NTransform(string inclusiveNamespacesPrefixList) { } + public string? InclusiveNamespacesPrefixList { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public override byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigExcC14NWithCommentsTransform : XmlDsigExcC14NTransform + { + public XmlDsigExcC14NWithCommentsTransform() { } + public XmlDsigExcC14NWithCommentsTransform(string inclusiveNamespacesPrefixList) { } + } + + public partial class XmlDsigXPathTransform : Transform + { + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + public partial class XmlDsigXsltTransform : Transform + { + public XmlDsigXsltTransform() { } + public XmlDsigXsltTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + [Diagnostics.CodeAnalysis.RequiresDynamicCode("XmlDsigXsltTransform uses XslCompiledTransform which requires dynamic code.")] + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] + public partial class XmlLicenseTransform : Transform + { + public IRelDecryptor? Decryptor { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/netstandard2.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/netstandard2.0/System.Security.Cryptography.Xml.cs new file mode 100644 index 0000000000..34aadce3af --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/netstandard2.0/System.Security.Cryptography.Xml.cs @@ -0,0 +1,619 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Security.Cryptography.Xml")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, \"XML-Signature Syntax and Processing\", described at http://www.w3.org/TR/xmldsig-core/.\r\n\r\nCommonly Used Types:\r\nSystem.Security.Cryptography.Xml.CipherData\r\nSystem.Security.Cryptography.Xml.CipherReference\r\nSystem.Security.Cryptography.Xml.DataObject\r\nSystem.Security.Cryptography.Xml.DataReference\r\nSystem.Security.Cryptography.Xml.DSAKeyValue\r\nSystem.Security.Cryptography.Xml.EncryptedData\r\nSystem.Security.Cryptography.Xml.EncryptedKey\r\nSystem.Security.Cryptography.Xml.EncryptedReference\r\nSystem.Security.Cryptography.Xml.EncryptedType\r\nSystem.Security.Cryptography.Xml.EncryptedXml\r\nSystem.Security.Cryptography.Xml.EncryptionMethod\r\nSystem.Security.Cryptography.Xml.EncryptionProperty\r\nSystem.Security.Cryptography.Xml.EncryptionPropertyCollection\r\nSystem.Security.Cryptography.Xml.KeyInfo\r\nSystem.Security.Cryptography.Xml.KeyInfoClause\r\nSystem.Security.Cryptography.Xml.KeyInfoEncryptedKey\r\nSystem.Security.Cryptography.Xml.KeyInfoName\r\nSystem.Security.Cryptography.Xml.KeyInfoNode\r\nSystem.Security.Cryptography.Xml.KeyInfoRetrievalMethod\r\nSystem.Security.Cryptography.Xml.KeyInfoX509Data\r\nSystem.Security.Cryptography.Xml.KeyReference\r\nSystem.Security.Cryptography.Xml.Reference\r\nSystem.Security.Cryptography.Xml.ReferenceList\r\nSystem.Security.Cryptography.Xml.RSAKeyValue\r\nSystem.Security.Cryptography.Xml.Signature\r\nSystem.Security.Cryptography.Xml.SignedInfo\r\nSystem.Security.Cryptography.Xml.SignedXml\r\nSystem.Security.Cryptography.Xml.Transform\r\nSystem.Security.Cryptography.Xml.TransformChain\r\nSystem.Security.Cryptography.Xml.XmlDecryptionTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigBase64Transform\r\nSystem.Security.Cryptography.Xml.XmlDsigC14NTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigExcC14NTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigXPathTransform\r\nSystem.Security.Cryptography.Xml.XmlDsigXsltTransform\r\nSystem.Security.Cryptography.Xml.XmlLicenseTransform")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.2626.16921")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.26+ace9703c57db8596ccc3e3efdc7e65b6975c0b2d")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Security.Cryptography.Xml")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Security.Cryptography.Xml +{ + public sealed partial class CipherData + { + public CipherData() { } + public CipherData(byte[] cipherValue) { } + public CipherData(CipherReference cipherReference) { } + public CipherReference? CipherReference { get { throw null; } set { } } + public byte[]? CipherValue { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class CipherReference : EncryptedReference + { + public CipherReference() { } + public CipherReference(string uri, TransformChain transformChain) { } + public CipherReference(string uri) { } + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class CryptoSignedXmlRecursionException : System.Xml.XmlException + { + public CryptoSignedXmlRecursionException() { } + protected CryptoSignedXmlRecursionException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + public CryptoSignedXmlRecursionException(string message, Exception inner) { } + public CryptoSignedXmlRecursionException(string message) { } + } + + public partial class DataObject + { + public DataObject() { } + public DataObject(string id, string mimeType, string encoding, System.Xml.XmlElement data) { } + public System.Xml.XmlNodeList Data { get { throw null; } set { } } + public string? Encoding { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } + public string? MimeType { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class DataReference : EncryptedReference + { + public DataReference() { } + public DataReference(string uri, TransformChain transformChain) { } + public DataReference(string uri) { } + } + + public partial class DSAKeyValue : KeyInfoClause + { + public DSAKeyValue() { } + public DSAKeyValue(DSA key) { } + public DSA Key { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public sealed partial class EncryptedData : EncryptedType + { + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public sealed partial class EncryptedKey : EncryptedType + { + public string? CarriedKeyName { get { throw null; } set { } } + public string Recipient { get { throw null; } set { } } + public ReferenceList ReferenceList { get { throw null; } } + + public void AddReference(DataReference dataReference) { } + public void AddReference(KeyReference keyReference) { } + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public abstract partial class EncryptedReference + { + protected EncryptedReference() { } + protected EncryptedReference(string uri, TransformChain transformChain) { } + protected EncryptedReference(string uri) { } + protected internal bool CacheValid { get { throw null; } } + protected string? ReferenceType { get { throw null; } set { } } + public TransformChain TransformChain { get { throw null; } set { } } + public string Uri { get { throw null; } set { } } + + public void AddTransform(Transform transform) { } + public virtual System.Xml.XmlElement GetXml() { throw null; } + public virtual void LoadXml(System.Xml.XmlElement value) { } + } + public abstract partial class EncryptedType + { + public virtual CipherData CipherData { get { throw null; } set { } } + public virtual string? Encoding { get { throw null; } set { } } + public virtual EncryptionMethod? EncryptionMethod { get { throw null; } set { } } + public virtual EncryptionPropertyCollection EncryptionProperties { get { throw null; } } + public virtual string? Id { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public virtual string? MimeType { get { throw null; } set { } } + public virtual string? Type { get { throw null; } set { } } + + public void AddProperty(EncryptionProperty ep) { } + public abstract System.Xml.XmlElement GetXml(); + public abstract void LoadXml(System.Xml.XmlElement value); + } + public partial class EncryptedXml + { + public const string XmlEncAES128KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes128"; + public const string XmlEncAES128Url = "http://www.w3.org/2001/04/xmlenc#aes128-cbc"; + public const string XmlEncAES192KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes192"; + public const string XmlEncAES192Url = "http://www.w3.org/2001/04/xmlenc#aes192-cbc"; + public const string XmlEncAES256KeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-aes256"; + public const string XmlEncAES256Url = "http://www.w3.org/2001/04/xmlenc#aes256-cbc"; + public const string XmlEncDESUrl = "http://www.w3.org/2001/04/xmlenc#des-cbc"; + public const string XmlEncElementContentUrl = "http://www.w3.org/2001/04/xmlenc#Content"; + public const string XmlEncElementUrl = "http://www.w3.org/2001/04/xmlenc#Element"; + public const string XmlEncEncryptedKeyUrl = "http://www.w3.org/2001/04/xmlenc#EncryptedKey"; + public const string XmlEncNamespaceUrl = "http://www.w3.org/2001/04/xmlenc#"; + public const string XmlEncRSA15Url = "http://www.w3.org/2001/04/xmlenc#rsa-1_5"; + public const string XmlEncRSAOAEPUrl = "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"; + public const string XmlEncSHA256Url = "http://www.w3.org/2001/04/xmlenc#sha256"; + public const string XmlEncSHA512Url = "http://www.w3.org/2001/04/xmlenc#sha512"; + public const string XmlEncTripleDESKeyWrapUrl = "http://www.w3.org/2001/04/xmlenc#kw-tripledes"; + public const string XmlEncTripleDESUrl = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc"; + public EncryptedXml() { } + public EncryptedXml(System.Xml.XmlDocument document, Policy.Evidence? evidence) { } + public EncryptedXml(System.Xml.XmlDocument document) { } + public Policy.Evidence? DocumentEvidence { get { throw null; } set { } } + public Text.Encoding Encoding { get { throw null; } set { } } + public CipherMode Mode { get { throw null; } set { } } + public PaddingMode Padding { get { throw null; } set { } } + public string Recipient { get { throw null; } set { } } + public System.Xml.XmlResolver? Resolver { get { throw null; } set { } } + public int XmlDSigSearchDepth { get { throw null; } set { } } + + public void AddKeyNameMapping(string keyName, object keyObject) { } + public void ClearKeyNameMappings() { } + public byte[] DecryptData(EncryptedData encryptedData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public void DecryptDocument() { } + public virtual byte[]? DecryptEncryptedKey(EncryptedKey encryptedKey) { throw null; } + public static byte[] DecryptKey(byte[] keyData, RSA rsa, bool useOAEP) { throw null; } + public static byte[] DecryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public EncryptedData Encrypt(System.Xml.XmlElement inputElement, X509Certificates.X509Certificate2 certificate) { throw null; } + public EncryptedData Encrypt(System.Xml.XmlElement inputElement, string keyName) { throw null; } + public byte[] EncryptData(byte[] plaintext, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public byte[] EncryptData(System.Xml.XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, bool content) { throw null; } + public static byte[] EncryptKey(byte[] keyData, RSA rsa, bool useOAEP) { throw null; } + public static byte[] EncryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) { throw null; } + public virtual byte[] GetDecryptionIV(EncryptedData encryptedData, string? symmetricAlgorithmUri) { throw null; } + public virtual SymmetricAlgorithm? GetDecryptionKey(EncryptedData encryptedData, string? symmetricAlgorithmUri) { throw null; } + public virtual System.Xml.XmlElement? GetIdElement(System.Xml.XmlDocument document, string idValue) { throw null; } + public void ReplaceData(System.Xml.XmlElement inputElement, byte[] decryptedData) { } + public static void ReplaceElement(System.Xml.XmlElement inputElement, EncryptedData encryptedData, bool content) { } + } + public partial class EncryptionMethod + { + public EncryptionMethod() { } + public EncryptionMethod(string? algorithm) { } + public string? KeyAlgorithm { get { throw null; } set { } } + public int KeySize { get { throw null; } set { } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class EncryptionProperty + { + public EncryptionProperty() { } + public EncryptionProperty(System.Xml.XmlElement elementProperty) { } + public string? Id { get { throw null; } } + public System.Xml.XmlElement? PropertyElement { get { throw null; } set { } } + public string? Target { get { throw null; } } + + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class EncryptionPropertyCollection : Collections.IList, Collections.ICollection, Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsFixedSize { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public EncryptionProperty this[int index] { get { throw null; } set { } } + + public object SyncRoot { get { throw null; } } + + object? Collections.IList.this[int index] { get { throw null; } set { } } + + public int Add(EncryptionProperty value) { throw null; } + public void Clear() { } + public bool Contains(EncryptionProperty value) { throw null; } + public void CopyTo(Array array, int index) { } + public void CopyTo(EncryptionProperty[] array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(EncryptionProperty value) { throw null; } + public void Insert(int index, EncryptionProperty value) { } + public EncryptionProperty Item(int index) { throw null; } + public void Remove(EncryptionProperty value) { } + public void RemoveAt(int index) { } + int Collections.IList.Add(object value) { throw null; } + bool Collections.IList.Contains(object value) { throw null; } + int Collections.IList.IndexOf(object value) { throw null; } + void Collections.IList.Insert(int index, object value) { } + void Collections.IList.Remove(object value) { } + } + + public partial interface IRelDecryptor + { + IO.Stream Decrypt(EncryptionMethod encryptionMethod, KeyInfo keyInfo, IO.Stream toDecrypt); + } + + public partial class KeyInfo : Collections.IEnumerable + { + public int Count { get { throw null; } } + public string? Id { get { throw null; } set { } } + + public void AddClause(KeyInfoClause clause) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public Collections.IEnumerator GetEnumerator(Type requestedObjectType) { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + + public abstract partial class KeyInfoClause + { + public abstract System.Xml.XmlElement GetXml(); + public abstract void LoadXml(System.Xml.XmlElement element); + } + public partial class KeyInfoEncryptedKey : KeyInfoClause + { + public KeyInfoEncryptedKey() { } + public KeyInfoEncryptedKey(EncryptedKey encryptedKey) { } + public EncryptedKey? EncryptedKey { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoName : KeyInfoClause + { + public KeyInfoName() { } + public KeyInfoName(string? keyName) { } + public string? Value { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoNode : KeyInfoClause + { + public KeyInfoNode() { } + public KeyInfoNode(System.Xml.XmlElement node) { } + public System.Xml.XmlElement? Value { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoRetrievalMethod : KeyInfoClause + { + public KeyInfoRetrievalMethod() { } + public KeyInfoRetrievalMethod(string strUri, string typeName) { } + public KeyInfoRetrievalMethod(string? strUri) { } + public string? Type { get { throw null; } set { } } + public string? Uri { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class KeyInfoX509Data : KeyInfoClause + { + public KeyInfoX509Data() { } + public KeyInfoX509Data(byte[] rgbCert) { } + public KeyInfoX509Data(X509Certificates.X509Certificate cert, X509Certificates.X509IncludeOption includeOption) { } + public KeyInfoX509Data(X509Certificates.X509Certificate cert) { } + public Collections.ArrayList? Certificates { get { throw null; } } + public byte[]? CRL { get { throw null; } set { } } + public Collections.ArrayList? IssuerSerials { get { throw null; } } + public Collections.ArrayList? SubjectKeyIds { get { throw null; } } + public Collections.ArrayList? SubjectNames { get { throw null; } } + + public void AddCertificate(X509Certificates.X509Certificate certificate) { } + public void AddIssuerSerial(string issuerName, string serialNumber) { } + public void AddSubjectKeyId(byte[] subjectKeyId) { } + public void AddSubjectKeyId(string subjectKeyId) { } + public void AddSubjectName(string subjectName) { } + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement element) { } + } + + public sealed partial class KeyReference : EncryptedReference + { + public KeyReference() { } + public KeyReference(string uri, TransformChain transformChain) { } + public KeyReference(string uri) { } + } + + public partial class Reference + { + public Reference() { } + public Reference(IO.Stream stream) { } + public Reference(string? uri) { } + public string DigestMethod { get { throw null; } set { } } + public byte[]? DigestValue { get { throw null; } set { } } + public string? Id { get { throw null; } set { } } + public TransformChain TransformChain { get { throw null; } set { } } + public string? Type { get { throw null; } set { } } + public string? Uri { get { throw null; } set { } } + + public void AddTransform(Transform transform) { } + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public sealed partial class ReferenceList : Collections.IList, Collections.ICollection, Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + + public EncryptedReference this[int index] { get { throw null; } set { } } + + public object SyncRoot { get { throw null; } } + + bool Collections.IList.IsFixedSize { get { throw null; } } + + bool Collections.IList.IsReadOnly { get { throw null; } } + + object? Collections.IList.this[int index] { get { throw null; } set { } } + + public int Add(object? value) { throw null; } + public void Clear() { } + public bool Contains(object? value) { throw null; } + public void CopyTo(Array array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(object? value) { throw null; } + public void Insert(int index, object? value) { } + public EncryptedReference? Item(int index) { throw null; } + public void Remove(object? value) { } + public void RemoveAt(int index) { } + } + + public partial class RSAKeyValue : KeyInfoClause + { + public RSAKeyValue() { } + public RSAKeyValue(RSA key) { } + public RSA Key { get { throw null; } set { } } + + public override System.Xml.XmlElement GetXml() { throw null; } + public override void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class Signature + { + public string? Id { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public Collections.IList ObjectList { get { throw null; } set { } } + public byte[]? SignatureValue { get { throw null; } set { } } + public SignedInfo? SignedInfo { get { throw null; } set { } } + + public void AddObject(DataObject dataObject) { } + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public partial class SignedInfo : Collections.ICollection, Collections.IEnumerable + { + public string CanonicalizationMethod { get { throw null; } set { } } + public Transform CanonicalizationMethodObject { get { throw null; } } + public int Count { get { throw null; } } + public string? Id { get { throw null; } set { } } + public bool IsReadOnly { get { throw null; } } + public bool IsSynchronized { get { throw null; } } + public Collections.ArrayList References { get { throw null; } } + public string? SignatureLength { get { throw null; } set { } } + public string? SignatureMethod { get { throw null; } set { } } + public object SyncRoot { get { throw null; } } + + public void AddReference(Reference reference) { } + public void CopyTo(Array array, int index) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + + public partial class SignedXml + { + protected Signature m_signature; + protected string? m_strSigningKeyName; + public const string XmlDecryptionTransformUrl = "http://www.w3.org/2002/07/decrypt#XML"; + public const string XmlDsigBase64TransformUrl = "http://www.w3.org/2000/09/xmldsig#base64"; + public const string XmlDsigC14NTransformUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + public const string XmlDsigC14NWithCommentsTransformUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"; + public const string XmlDsigCanonicalizationUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + public const string XmlDsigCanonicalizationWithCommentsUrl = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"; + public const string XmlDsigDSAUrl = "http://www.w3.org/2000/09/xmldsig#dsa-sha1"; + public const string XmlDsigEnvelopedSignatureTransformUrl = "http://www.w3.org/2000/09/xmldsig#enveloped-signature"; + public const string XmlDsigExcC14NTransformUrl = "http://www.w3.org/2001/10/xml-exc-c14n#"; + public const string XmlDsigExcC14NWithCommentsTransformUrl = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"; + public const string XmlDsigHMACSHA1Url = "http://www.w3.org/2000/09/xmldsig#hmac-sha1"; + public const string XmlDsigMinimalCanonicalizationUrl = "http://www.w3.org/2000/09/xmldsig#minimal"; + public const string XmlDsigNamespaceUrl = "http://www.w3.org/2000/09/xmldsig#"; + public const string XmlDsigRSASHA1Url = "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + public const string XmlDsigRSASHA256Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"; + public const string XmlDsigRSASHA384Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"; + public const string XmlDsigRSASHA512Url = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"; + public const string XmlDsigSHA1Url = "http://www.w3.org/2000/09/xmldsig#sha1"; + public const string XmlDsigSHA256Url = "http://www.w3.org/2001/04/xmlenc#sha256"; + public const string XmlDsigSHA384Url = "http://www.w3.org/2001/04/xmldsig-more#sha384"; + public const string XmlDsigSHA512Url = "http://www.w3.org/2001/04/xmlenc#sha512"; + public const string XmlDsigXPathTransformUrl = "http://www.w3.org/TR/1999/REC-xpath-19991116"; + public const string XmlDsigXsltTransformUrl = "http://www.w3.org/TR/1999/REC-xslt-19991116"; + public const string XmlLicenseTransformUrl = "urn:mpeg:mpeg21:2003:01-REL-R-NS:licenseTransform"; + public SignedXml() { } + public SignedXml(System.Xml.XmlDocument document) { } + public SignedXml(System.Xml.XmlElement elem) { } + public EncryptedXml EncryptedXml { get { throw null; } set { } } + public KeyInfo KeyInfo { get { throw null; } set { } } + public System.Xml.XmlResolver Resolver { set { } } + public Collections.ObjectModel.Collection SafeCanonicalizationMethods { get { throw null; } } + public Signature Signature { get { throw null; } } + public Func SignatureFormatValidator { get { throw null; } set { } } + public string? SignatureLength { get { throw null; } } + public string? SignatureMethod { get { throw null; } } + public byte[]? SignatureValue { get { throw null; } } + public SignedInfo? SignedInfo { get { throw null; } } + public AsymmetricAlgorithm? SigningKey { get { throw null; } set { } } + public string? SigningKeyName { get { throw null; } set { } } + + public void AddObject(DataObject dataObject) { } + public void AddReference(Reference reference) { } + public bool CheckSignature() { throw null; } + public bool CheckSignature(AsymmetricAlgorithm key) { throw null; } + public bool CheckSignature(KeyedHashAlgorithm macAlg) { throw null; } + public bool CheckSignature(X509Certificates.X509Certificate2 certificate, bool verifySignatureOnly) { throw null; } + public bool CheckSignatureReturningKey(out AsymmetricAlgorithm? signingKey) { throw null; } + public void ComputeSignature() { } + public void ComputeSignature(KeyedHashAlgorithm macAlg) { } + public virtual System.Xml.XmlElement? GetIdElement(System.Xml.XmlDocument? document, string idValue) { throw null; } + protected virtual AsymmetricAlgorithm? GetPublicKey() { throw null; } + public System.Xml.XmlElement GetXml() { throw null; } + public void LoadXml(System.Xml.XmlElement value) { } + } + public abstract partial class Transform + { + public string? Algorithm { get { throw null; } set { } } + public System.Xml.XmlElement? Context { get { throw null; } set { } } + public abstract Type[] InputTypes { get; } + public abstract Type[] OutputTypes { get; } + public Collections.Hashtable PropagatedNamespaces { get { throw null; } } + public System.Xml.XmlResolver? Resolver { set { } } + + public virtual byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected abstract System.Xml.XmlNodeList? GetInnerXml(); + public abstract object GetOutput(); + public abstract object GetOutput(Type type); + public System.Xml.XmlElement GetXml() { throw null; } + public abstract void LoadInnerXml(System.Xml.XmlNodeList nodeList); + public abstract void LoadInput(object obj); + } + public partial class TransformChain + { + public int Count { get { throw null; } } + + public Transform this[int index] { get { throw null; } } + + public void Add(Transform transform) { } + public Collections.IEnumerator GetEnumerator() { throw null; } + } + public partial class XmlDecryptionTransform : Transform + { + public EncryptedXml EncryptedXml { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public void AddExceptUri(string uri) { } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + protected virtual bool IsTargetElement(System.Xml.XmlElement? inputElement, string idValue) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigBase64Transform : Transform + { + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigC14NTransform : Transform + { + public XmlDsigC14NTransform() { } + public XmlDsigC14NTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public override byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigC14NWithCommentsTransform : XmlDsigC14NTransform + { + } + + public partial class XmlDsigEnvelopedSignatureTransform : Transform + { + public XmlDsigEnvelopedSignatureTransform() { } + public XmlDsigEnvelopedSignatureTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigExcC14NTransform : Transform + { + public XmlDsigExcC14NTransform() { } + public XmlDsigExcC14NTransform(bool includeComments, string? inclusiveNamespacesPrefixList) { } + public XmlDsigExcC14NTransform(bool includeComments) { } + public XmlDsigExcC14NTransform(string inclusiveNamespacesPrefixList) { } + public string? InclusiveNamespacesPrefixList { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + public override byte[] GetDigestedOutput(HashAlgorithm hash) { throw null; } + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigExcC14NWithCommentsTransform : XmlDsigExcC14NTransform + { + public XmlDsigExcC14NWithCommentsTransform() { } + public XmlDsigExcC14NWithCommentsTransform(string inclusiveNamespacesPrefixList) { } + } + + public partial class XmlDsigXPathTransform : Transform + { + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlDsigXsltTransform : Transform + { + public XmlDsigXsltTransform() { } + public XmlDsigXsltTransform(bool includeComments) { } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } + + public partial class XmlLicenseTransform : Transform + { + public IRelDecryptor? Decryptor { get { throw null; } set { } } + public override Type[] InputTypes { get { throw null; } } + public override Type[] OutputTypes { get { throw null; } } + + protected override System.Xml.XmlNodeList? GetInnerXml() { throw null; } + public override object GetOutput() { throw null; } + public override object GetOutput(Type type) { throw null; } + public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) { } + public override void LoadInput(object obj) { } + } +} \ No newline at end of file From f4b825ed38f2f38a1ee0d2100e90757d33c3c352 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Thu, 21 May 2026 13:40:37 +0000 Subject: [PATCH 2/4] Add missing IndexerName attributes --- .../8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs | 2 ++ .../8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs | 2 ++ .../8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs | 2 ++ .../lib/netstandard2.0/System.Security.Cryptography.Xml.cs | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs index 0fa94c6739..9a88ba46dc 100644 --- a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net6.0/System.Security.Cryptography.Xml.cs @@ -232,6 +232,7 @@ public sealed partial class EncryptionPropertyCollection : Collections.IList, Co public bool IsReadOnly { get { throw null; } } public bool IsSynchronized { get { throw null; } } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] public EncryptionProperty this[int index] { get { throw null; } set { } } public object SyncRoot { get { throw null; } } @@ -372,6 +373,7 @@ public sealed partial class ReferenceList : Collections.IList, Collections.IColl public int Count { get { throw null; } } public bool IsSynchronized { get { throw null; } } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] public EncryptedReference this[int index] { get { throw null; } set { } } public object SyncRoot { get { throw null; } } diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs index 4ba9197d2e..e836746539 100644 --- a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net7.0/System.Security.Cryptography.Xml.cs @@ -241,6 +241,7 @@ public sealed partial class EncryptionPropertyCollection : Collections.IList, Co public bool IsReadOnly { get { throw null; } } public bool IsSynchronized { get { throw null; } } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] public EncryptionProperty this[int index] { get { throw null; } set { } } public object SyncRoot { get { throw null; } } @@ -383,6 +384,7 @@ public sealed partial class ReferenceList : Collections.IList, Collections.IColl public int Count { get { throw null; } } public bool IsSynchronized { get { throw null; } } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] public EncryptedReference this[int index] { get { throw null; } set { } } public object SyncRoot { get { throw null; } } diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs index 9e732e986c..d4dc6039c6 100644 --- a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/net8.0/System.Security.Cryptography.Xml.cs @@ -242,6 +242,7 @@ public sealed partial class EncryptionPropertyCollection : Collections.IList, Co public bool IsReadOnly { get { throw null; } } public bool IsSynchronized { get { throw null; } } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] public EncryptionProperty this[int index] { get { throw null; } set { } } public object SyncRoot { get { throw null; } } @@ -384,6 +385,7 @@ public sealed partial class ReferenceList : Collections.IList, Collections.IColl public int Count { get { throw null; } } public bool IsSynchronized { get { throw null; } } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] public EncryptedReference this[int index] { get { throw null; } set { } } public object SyncRoot { get { throw null; } } diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/netstandard2.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/netstandard2.0/System.Security.Cryptography.Xml.cs index 34aadce3af..c300e2d5de 100644 --- a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/netstandard2.0/System.Security.Cryptography.Xml.cs +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/lib/netstandard2.0/System.Security.Cryptography.Xml.cs @@ -209,6 +209,7 @@ public sealed partial class EncryptionPropertyCollection : Collections.IList, Co public bool IsReadOnly { get { throw null; } } public bool IsSynchronized { get { throw null; } } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] public EncryptionProperty this[int index] { get { throw null; } set { } } public object SyncRoot { get { throw null; } } @@ -346,6 +347,7 @@ public sealed partial class ReferenceList : Collections.IList, Collections.IColl public int Count { get { throw null; } } public bool IsSynchronized { get { throw null; } } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] public EncryptedReference this[int index] { get { throw null; } set { } } public object SyncRoot { get { throw null; } } From 82dd1a6992a4309ec785c2032193647515393047 Mon Sep 17 00:00:00 2001 From: wigodbe Date: Thu, 21 May 2026 09:20:46 -0700 Subject: [PATCH 3/4] Add nuspecs --- .../system.security.cryptography.pkcs.nuspec | 38 ++++++++++ .../system.security.cryptography.xml.nuspec | 73 +++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/system.security.cryptography.pkcs.nuspec create mode 100644 src/referencePackages/src/system.security.cryptography.xml/8.0.3/system.security.cryptography.xml.nuspec diff --git a/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/system.security.cryptography.pkcs.nuspec b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/system.security.cryptography.pkcs.nuspec new file mode 100644 index 0000000000..d51d914401 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.1/system.security.cryptography.pkcs.nuspec @@ -0,0 +1,38 @@ + + + + System.Security.Cryptography.Pkcs + 8.0.1 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Provides support for PKCS and CMS algorithms. + +Commonly Used Types: +System.Security.Cryptography.Pkcs.EnvelopedCms + https://go.microsoft.com/fwlink/?LinkID=799421 + © Microsoft Corporation. All rights reserved. + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.3/system.security.cryptography.xml.nuspec b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/system.security.cryptography.xml.nuspec new file mode 100644 index 0000000000..9700be848c --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.3/system.security.cryptography.xml.nuspec @@ -0,0 +1,73 @@ + + + + System.Security.Cryptography.Xml + 8.0.3 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Provides classes to support the creation and validation of XML digital signatures. The classes in this namespace implement the World Wide Web Consortium Recommendation, "XML-Signature Syntax and Processing", described at http://www.w3.org/TR/xmldsig-core/. + +Commonly Used Types: +System.Security.Cryptography.Xml.CipherData +System.Security.Cryptography.Xml.CipherReference +System.Security.Cryptography.Xml.DataObject +System.Security.Cryptography.Xml.DataReference +System.Security.Cryptography.Xml.DSAKeyValue +System.Security.Cryptography.Xml.EncryptedData +System.Security.Cryptography.Xml.EncryptedKey +System.Security.Cryptography.Xml.EncryptedReference +System.Security.Cryptography.Xml.EncryptedType +System.Security.Cryptography.Xml.EncryptedXml +System.Security.Cryptography.Xml.EncryptionMethod +System.Security.Cryptography.Xml.EncryptionProperty +System.Security.Cryptography.Xml.EncryptionPropertyCollection +System.Security.Cryptography.Xml.KeyInfo +System.Security.Cryptography.Xml.KeyInfoClause +System.Security.Cryptography.Xml.KeyInfoEncryptedKey +System.Security.Cryptography.Xml.KeyInfoName +System.Security.Cryptography.Xml.KeyInfoNode +System.Security.Cryptography.Xml.KeyInfoRetrievalMethod +System.Security.Cryptography.Xml.KeyInfoX509Data +System.Security.Cryptography.Xml.KeyReference +System.Security.Cryptography.Xml.Reference +System.Security.Cryptography.Xml.ReferenceList +System.Security.Cryptography.Xml.RSAKeyValue +System.Security.Cryptography.Xml.Signature +System.Security.Cryptography.Xml.SignedInfo +System.Security.Cryptography.Xml.SignedXml +System.Security.Cryptography.Xml.Transform +System.Security.Cryptography.Xml.TransformChain +System.Security.Cryptography.Xml.XmlDecryptionTransform +System.Security.Cryptography.Xml.XmlDsigBase64Transform +System.Security.Cryptography.Xml.XmlDsigC14NTransform +System.Security.Cryptography.Xml.XmlDsigC14NWithCommentsTransform +System.Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform +System.Security.Cryptography.Xml.XmlDsigExcC14NTransform +System.Security.Cryptography.Xml.XmlDsigExcC14NWithCommentsTransform +System.Security.Cryptography.Xml.XmlDsigXPathTransform +System.Security.Cryptography.Xml.XmlDsigXsltTransform +System.Security.Cryptography.Xml.XmlLicenseTransform + https://go.microsoft.com/fwlink/?LinkID=799421 + © Microsoft Corporation. All rights reserved. + true + + + + + + + + + + + + + + + + + + + \ No newline at end of file From c11c0dae50371113a741e7d4e42f1404be9e9115 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Thu, 21 May 2026 16:56:57 +0000 Subject: [PATCH 4/4] Add the DependencyPackageProjects for the new projects --- eng/Build.props | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eng/Build.props b/eng/Build.props index c4063b5dd3..2dd2c33cf9 100644 --- a/eng/Build.props +++ b/eng/Build.props @@ -70,6 +70,9 @@ + + +