diff --git a/eng/Build.props b/eng/Build.props index 1fd94268b..0deb84ed0 100644 --- a/eng/Build.props +++ b/eng/Build.props @@ -34,6 +34,9 @@ + + + diff --git a/src/referencePackages/src/system.formats.asn1/8.0.0/System.Formats.Asn1.8.0.0.csproj b/src/referencePackages/src/system.formats.asn1/8.0.0/System.Formats.Asn1.8.0.0.csproj new file mode 100644 index 000000000..36e61afa8 --- /dev/null +++ b/src/referencePackages/src/system.formats.asn1/8.0.0/System.Formats.Asn1.8.0.0.csproj @@ -0,0 +1,14 @@ + + + + net6.0;net7.0;net8.0;netstandard2.0 + System.Formats.Asn1 + Open + + + + + + + + diff --git a/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net6.0/System.Formats.Asn1.cs b/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net6.0/System.Formats.Asn1.cs new file mode 100644 index 000000000..dbfaefac2 --- /dev/null +++ b/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net6.0/System.Formats.Asn1.cs @@ -0,0 +1,411 @@ +// 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.Formats.Asn1")] +[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 that can read and write the ASN.1 BER, CER, and DER data formats.\r\n\r\nCommonly Used Types:\r\nSystem.Formats.Asn1.AsnReader\r\nSystem.Formats.Asn1.AsnWriter")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Formats.Asn1")] +[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.Formats.Asn1 +{ + public readonly partial struct Asn1Tag : IEquatable + { + private readonly int _dummyPrimitive; + public static readonly Asn1Tag Boolean; + public static readonly Asn1Tag ConstructedBitString; + public static readonly Asn1Tag ConstructedOctetString; + public static readonly Asn1Tag Enumerated; + public static readonly Asn1Tag GeneralizedTime; + public static readonly Asn1Tag Integer; + public static readonly Asn1Tag Null; + public static readonly Asn1Tag ObjectIdentifier; + public static readonly Asn1Tag PrimitiveBitString; + public static readonly Asn1Tag PrimitiveOctetString; + public static readonly Asn1Tag Sequence; + public static readonly Asn1Tag SetOf; + public static readonly Asn1Tag UtcTime; + public Asn1Tag(TagClass tagClass, int tagValue, bool isConstructed = false) { } + + public Asn1Tag(UniversalTagNumber universalTagNumber, bool isConstructed = false) { } + + public bool IsConstructed { get { throw null; } } + + public TagClass TagClass { get { throw null; } } + + public int TagValue { get { throw null; } } + + public readonly Asn1Tag AsConstructed() { throw null; } + + public readonly Asn1Tag AsPrimitive() { throw null; } + + public readonly int CalculateEncodedSize() { throw null; } + + public static Asn1Tag Decode(ReadOnlySpan source, out int bytesConsumed) { throw null; } + + public readonly int Encode(Span destination) { throw null; } + + public readonly bool Equals(Asn1Tag other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public readonly bool HasSameClassAndValue(Asn1Tag other) { throw null; } + + public static bool operator ==(Asn1Tag left, Asn1Tag right) { throw null; } + + public static bool operator !=(Asn1Tag left, Asn1Tag right) { throw null; } + + public override readonly string ToString() { throw null; } + + public static bool TryDecode(ReadOnlySpan source, out Asn1Tag tag, out int bytesConsumed) { throw null; } + + public readonly bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + + public partial class AsnContentException : Exception + { + public AsnContentException() { } + + protected AsnContentException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + + public AsnContentException(string? message, Exception? inner) { } + + public AsnContentException(string? message) { } + } + + public static partial class AsnDecoder + { + public static byte[] ReadBitString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool ReadBoolean(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static string ReadCharacterString(ReadOnlySpan source, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Asn1Tag ReadEncodedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed) { throw null; } + + public static ReadOnlySpan ReadEnumeratedBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Enum ReadEnumeratedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, Type enumType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static TEnum ReadEnumeratedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) + where TEnum : Enum { throw null; } + + public static DateTimeOffset ReadGeneralizedTime(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Numerics.BigInteger ReadInteger(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static ReadOnlySpan ReadIntegerBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Collections.BitArray ReadNamedBitList(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Enum ReadNamedBitListValue(ReadOnlySpan source, AsnEncodingRules ruleSet, Type flagsEnumType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static TFlagsEnum ReadNamedBitListValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) + where TFlagsEnum : Enum { throw null; } + + public static void ReadNull(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static string ReadObjectIdentifier(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static byte[] ReadOctetString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static void ReadSequence(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static void ReadSetOf(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, bool skipSortOrderValidation = false, Asn1Tag? expectedTag = null) { throw null; } + + public static DateTimeOffset ReadUtcTime(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, int twoDigitYearMax = 2049, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadBitString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadCharacterString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, out int charsWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadCharacterStringBytes(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out int bytesConsumed, out int bytesWritten) { throw null; } + + public static bool TryReadEncodedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out Asn1Tag tag, out int contentOffset, out int contentLength, out int bytesConsumed) { throw null; } + + public static bool TryReadInt32(ReadOnlySpan source, AsnEncodingRules ruleSet, out int value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadInt64(ReadOnlySpan source, AsnEncodingRules ruleSet, out long value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadOctetString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadPrimitiveBitString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int unusedBitCount, out ReadOnlySpan value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadPrimitiveCharacterStringBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out ReadOnlySpan value, out int bytesConsumed) { throw null; } + + public static bool TryReadPrimitiveOctetString(ReadOnlySpan source, AsnEncodingRules ruleSet, out ReadOnlySpan value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public static bool TryReadUInt32(ReadOnlySpan source, AsnEncodingRules ruleSet, out uint value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public static bool TryReadUInt64(ReadOnlySpan source, AsnEncodingRules ruleSet, out ulong value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + } + + public enum AsnEncodingRules + { + BER = 0, + CER = 1, + DER = 2 + } + + public partial class AsnReader + { + public AsnReader(ReadOnlyMemory data, AsnEncodingRules ruleSet, AsnReaderOptions options = default) { } + + public bool HasData { get { throw null; } } + + public AsnEncodingRules RuleSet { get { throw null; } } + + public AsnReader Clone() { throw null; } + + public ReadOnlyMemory PeekContentBytes() { throw null; } + + public ReadOnlyMemory PeekEncodedValue() { throw null; } + + public Asn1Tag PeekTag() { throw null; } + + public byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = null) { throw null; } + + public bool ReadBoolean(Asn1Tag? expectedTag = null) { throw null; } + + public string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = null) { throw null; } + + public ReadOnlyMemory ReadEncodedValue() { throw null; } + + public ReadOnlyMemory ReadEnumeratedBytes(Asn1Tag? expectedTag = null) { throw null; } + + public Enum ReadEnumeratedValue(Type enumType, Asn1Tag? expectedTag = null) { throw null; } + + public TEnum ReadEnumeratedValue(Asn1Tag? expectedTag = null) + where TEnum : Enum { throw null; } + + public DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = null) { throw null; } + + public Numerics.BigInteger ReadInteger(Asn1Tag? expectedTag = null) { throw null; } + + public ReadOnlyMemory ReadIntegerBytes(Asn1Tag? expectedTag = null) { throw null; } + + public Collections.BitArray ReadNamedBitList(Asn1Tag? expectedTag = null) { throw null; } + + public Enum ReadNamedBitListValue(Type flagsEnumType, Asn1Tag? expectedTag = null) { throw null; } + + public TFlagsEnum ReadNamedBitListValue(Asn1Tag? expectedTag = null) + where TFlagsEnum : Enum { throw null; } + + public void ReadNull(Asn1Tag? expectedTag = null) { } + + public string ReadObjectIdentifier(Asn1Tag? expectedTag = null) { throw null; } + + public byte[] ReadOctetString(Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSequence(Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSetOf(bool skipSortOrderValidation, Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSetOf(Asn1Tag? expectedTag = null) { throw null; } + + public DateTimeOffset ReadUtcTime(int twoDigitYearMax, Asn1Tag? expectedTag = null) { throw null; } + + public DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = null) { throw null; } + + public void ThrowIfNotEmpty() { } + + public bool TryReadBitString(Span destination, out int unusedBitCount, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadCharacterString(Span destination, UniversalTagNumber encodingType, out int charsWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadCharacterStringBytes(Span destination, Asn1Tag expectedTag, out int bytesWritten) { throw null; } + + public bool TryReadInt32(out int value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadInt64(out long value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadOctetString(Span destination, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadPrimitiveBitString(out int unusedBitCount, out ReadOnlyMemory value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadPrimitiveCharacterStringBytes(Asn1Tag expectedTag, out ReadOnlyMemory contents) { throw null; } + + public bool TryReadPrimitiveOctetString(out ReadOnlyMemory contents, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public bool TryReadUInt32(out uint value, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public bool TryReadUInt64(out ulong value, Asn1Tag? expectedTag = null) { throw null; } + } + + public partial struct AsnReaderOptions + { + private int _dummyPrimitive; + public bool SkipSetSortOrderVerification { get { throw null; } set { } } + + public int UtcTimeTwoDigitYearMax { get { throw null; } set { } } + } + + public sealed partial class AsnWriter + { + public AsnWriter(AsnEncodingRules ruleSet, int initialCapacity) { } + + public AsnWriter(AsnEncodingRules ruleSet) { } + + public AsnEncodingRules RuleSet { get { throw null; } } + + public void CopyTo(AsnWriter destination) { } + + public byte[] Encode() { throw null; } + + public int Encode(Span destination) { throw null; } + + public bool EncodedValueEquals(AsnWriter other) { throw null; } + + public bool EncodedValueEquals(ReadOnlySpan other) { throw null; } + + public int GetEncodedLength() { throw null; } + + public void PopOctetString(Asn1Tag? tag = null) { } + + public void PopSequence(Asn1Tag? tag = null) { } + + public void PopSetOf(Asn1Tag? tag = null) { } + + public Scope PushOctetString(Asn1Tag? tag = null) { throw null; } + + public Scope PushSequence(Asn1Tag? tag = null) { throw null; } + + public Scope PushSetOf(Asn1Tag? tag = null) { throw null; } + + public void Reset() { } + + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + + public void WriteBitString(ReadOnlySpan value, int unusedBitCount = 0, Asn1Tag? tag = null) { } + + public void WriteBoolean(bool value, Asn1Tag? tag = null) { } + + public void WriteCharacterString(UniversalTagNumber encodingType, ReadOnlySpan str, Asn1Tag? tag = null) { } + + public void WriteCharacterString(UniversalTagNumber encodingType, string value, Asn1Tag? tag = null) { } + + public void WriteEncodedValue(ReadOnlySpan value) { } + + public void WriteEnumeratedValue(Enum value, Asn1Tag? tag = null) { } + + public void WriteEnumeratedValue(TEnum value, Asn1Tag? tag = null) + where TEnum : Enum { } + + public void WriteGeneralizedTime(DateTimeOffset value, bool omitFractionalSeconds = false, Asn1Tag? tag = null) { } + + public void WriteInteger(long value, Asn1Tag? tag = null) { } + + public void WriteInteger(Numerics.BigInteger value, Asn1Tag? tag = null) { } + + public void WriteInteger(ReadOnlySpan value, Asn1Tag? tag = null) { } + + [CLSCompliant(false)] + public void WriteInteger(ulong value, Asn1Tag? tag = null) { } + + public void WriteIntegerUnsigned(ReadOnlySpan value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(Collections.BitArray value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(Enum value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(TEnum value, Asn1Tag? tag = null) + where TEnum : Enum { } + + public void WriteNull(Asn1Tag? tag = null) { } + + public void WriteObjectIdentifier(ReadOnlySpan oidValue, Asn1Tag? tag = null) { } + + public void WriteObjectIdentifier(string oidValue, Asn1Tag? tag = null) { } + + public void WriteOctetString(ReadOnlySpan value, Asn1Tag? tag = null) { } + + public void WriteUtcTime(DateTimeOffset value, int twoDigitYearMax, Asn1Tag? tag = null) { } + + public void WriteUtcTime(DateTimeOffset value, Asn1Tag? tag = null) { } + + public readonly partial struct Scope : IDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly void Dispose() { } + } + } + + public enum TagClass + { + Universal = 0, + Application = 64, + ContextSpecific = 128, + Private = 192 + } + + public enum UniversalTagNumber + { + EndOfContents = 0, + Boolean = 1, + Integer = 2, + BitString = 3, + OctetString = 4, + Null = 5, + ObjectIdentifier = 6, + ObjectDescriptor = 7, + External = 8, + InstanceOf = 8, + Real = 9, + Enumerated = 10, + Embedded = 11, + UTF8String = 12, + RelativeObjectIdentifier = 13, + Time = 14, + Sequence = 16, + SequenceOf = 16, + Set = 17, + SetOf = 17, + NumericString = 18, + PrintableString = 19, + T61String = 20, + TeletexString = 20, + VideotexString = 21, + IA5String = 22, + UtcTime = 23, + GeneralizedTime = 24, + GraphicString = 25, + ISO646String = 26, + VisibleString = 26, + GeneralString = 27, + UniversalString = 28, + UnrestrictedCharacterString = 29, + BMPString = 30, + Date = 31, + TimeOfDay = 32, + DateTime = 33, + Duration = 34, + ObjectIdentifierIRI = 35, + RelativeObjectIdentifierIRI = 36 + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net7.0/System.Formats.Asn1.cs b/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net7.0/System.Formats.Asn1.cs new file mode 100644 index 000000000..cf76f392f --- /dev/null +++ b/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net7.0/System.Formats.Asn1.cs @@ -0,0 +1,411 @@ +// 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.Formats.Asn1")] +[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 that can read and write the ASN.1 BER, CER, and DER data formats.\r\n\r\nCommonly Used Types:\r\nSystem.Formats.Asn1.AsnReader\r\nSystem.Formats.Asn1.AsnWriter")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Formats.Asn1")] +[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.Formats.Asn1 +{ + public readonly partial struct Asn1Tag : IEquatable + { + private readonly int _dummyPrimitive; + public static readonly Asn1Tag Boolean; + public static readonly Asn1Tag ConstructedBitString; + public static readonly Asn1Tag ConstructedOctetString; + public static readonly Asn1Tag Enumerated; + public static readonly Asn1Tag GeneralizedTime; + public static readonly Asn1Tag Integer; + public static readonly Asn1Tag Null; + public static readonly Asn1Tag ObjectIdentifier; + public static readonly Asn1Tag PrimitiveBitString; + public static readonly Asn1Tag PrimitiveOctetString; + public static readonly Asn1Tag Sequence; + public static readonly Asn1Tag SetOf; + public static readonly Asn1Tag UtcTime; + public Asn1Tag(TagClass tagClass, int tagValue, bool isConstructed = false) { } + + public Asn1Tag(UniversalTagNumber universalTagNumber, bool isConstructed = false) { } + + public bool IsConstructed { get { throw null; } } + + public TagClass TagClass { get { throw null; } } + + public int TagValue { get { throw null; } } + + public readonly Asn1Tag AsConstructed() { throw null; } + + public readonly Asn1Tag AsPrimitive() { throw null; } + + public readonly int CalculateEncodedSize() { throw null; } + + public static Asn1Tag Decode(ReadOnlySpan source, out int bytesConsumed) { throw null; } + + public readonly int Encode(Span destination) { throw null; } + + public readonly bool Equals(Asn1Tag other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public readonly bool HasSameClassAndValue(Asn1Tag other) { throw null; } + + public static bool operator ==(Asn1Tag left, Asn1Tag right) { throw null; } + + public static bool operator !=(Asn1Tag left, Asn1Tag right) { throw null; } + + public override readonly string ToString() { throw null; } + + public static bool TryDecode(ReadOnlySpan source, out Asn1Tag tag, out int bytesConsumed) { throw null; } + + public readonly bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + + public partial class AsnContentException : Exception + { + public AsnContentException() { } + + protected AsnContentException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + + public AsnContentException(string? message, Exception? inner) { } + + public AsnContentException(string? message) { } + } + + public static partial class AsnDecoder + { + public static byte[] ReadBitString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool ReadBoolean(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static string ReadCharacterString(ReadOnlySpan source, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Asn1Tag ReadEncodedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed) { throw null; } + + public static ReadOnlySpan ReadEnumeratedBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Enum ReadEnumeratedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, Type enumType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static TEnum ReadEnumeratedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) + where TEnum : Enum { throw null; } + + public static DateTimeOffset ReadGeneralizedTime(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Numerics.BigInteger ReadInteger(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static ReadOnlySpan ReadIntegerBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Collections.BitArray ReadNamedBitList(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Enum ReadNamedBitListValue(ReadOnlySpan source, AsnEncodingRules ruleSet, Type flagsEnumType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static TFlagsEnum ReadNamedBitListValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) + where TFlagsEnum : Enum { throw null; } + + public static void ReadNull(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static string ReadObjectIdentifier(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static byte[] ReadOctetString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static void ReadSequence(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static void ReadSetOf(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, bool skipSortOrderValidation = false, Asn1Tag? expectedTag = null) { throw null; } + + public static DateTimeOffset ReadUtcTime(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, int twoDigitYearMax = 2049, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadBitString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadCharacterString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, out int charsWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadCharacterStringBytes(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out int bytesConsumed, out int bytesWritten) { throw null; } + + public static bool TryReadEncodedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out Asn1Tag tag, out int contentOffset, out int contentLength, out int bytesConsumed) { throw null; } + + public static bool TryReadInt32(ReadOnlySpan source, AsnEncodingRules ruleSet, out int value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadInt64(ReadOnlySpan source, AsnEncodingRules ruleSet, out long value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadOctetString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadPrimitiveBitString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int unusedBitCount, out ReadOnlySpan value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadPrimitiveCharacterStringBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out ReadOnlySpan value, out int bytesConsumed) { throw null; } + + public static bool TryReadPrimitiveOctetString(ReadOnlySpan source, AsnEncodingRules ruleSet, out ReadOnlySpan value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public static bool TryReadUInt32(ReadOnlySpan source, AsnEncodingRules ruleSet, out uint value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public static bool TryReadUInt64(ReadOnlySpan source, AsnEncodingRules ruleSet, out ulong value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + } + + public enum AsnEncodingRules + { + BER = 0, + CER = 1, + DER = 2 + } + + public partial class AsnReader + { + public AsnReader(ReadOnlyMemory data, AsnEncodingRules ruleSet, AsnReaderOptions options = default) { } + + public bool HasData { get { throw null; } } + + public AsnEncodingRules RuleSet { get { throw null; } } + + public AsnReader Clone() { throw null; } + + public ReadOnlyMemory PeekContentBytes() { throw null; } + + public ReadOnlyMemory PeekEncodedValue() { throw null; } + + public Asn1Tag PeekTag() { throw null; } + + public byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = null) { throw null; } + + public bool ReadBoolean(Asn1Tag? expectedTag = null) { throw null; } + + public string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = null) { throw null; } + + public ReadOnlyMemory ReadEncodedValue() { throw null; } + + public ReadOnlyMemory ReadEnumeratedBytes(Asn1Tag? expectedTag = null) { throw null; } + + public Enum ReadEnumeratedValue(Type enumType, Asn1Tag? expectedTag = null) { throw null; } + + public TEnum ReadEnumeratedValue(Asn1Tag? expectedTag = null) + where TEnum : Enum { throw null; } + + public DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = null) { throw null; } + + public Numerics.BigInteger ReadInteger(Asn1Tag? expectedTag = null) { throw null; } + + public ReadOnlyMemory ReadIntegerBytes(Asn1Tag? expectedTag = null) { throw null; } + + public Collections.BitArray ReadNamedBitList(Asn1Tag? expectedTag = null) { throw null; } + + public Enum ReadNamedBitListValue(Type flagsEnumType, Asn1Tag? expectedTag = null) { throw null; } + + public TFlagsEnum ReadNamedBitListValue(Asn1Tag? expectedTag = null) + where TFlagsEnum : Enum { throw null; } + + public void ReadNull(Asn1Tag? expectedTag = null) { } + + public string ReadObjectIdentifier(Asn1Tag? expectedTag = null) { throw null; } + + public byte[] ReadOctetString(Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSequence(Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSetOf(bool skipSortOrderValidation, Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSetOf(Asn1Tag? expectedTag = null) { throw null; } + + public DateTimeOffset ReadUtcTime(int twoDigitYearMax, Asn1Tag? expectedTag = null) { throw null; } + + public DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = null) { throw null; } + + public void ThrowIfNotEmpty() { } + + public bool TryReadBitString(Span destination, out int unusedBitCount, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadCharacterString(Span destination, UniversalTagNumber encodingType, out int charsWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadCharacterStringBytes(Span destination, Asn1Tag expectedTag, out int bytesWritten) { throw null; } + + public bool TryReadInt32(out int value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadInt64(out long value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadOctetString(Span destination, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadPrimitiveBitString(out int unusedBitCount, out ReadOnlyMemory value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadPrimitiveCharacterStringBytes(Asn1Tag expectedTag, out ReadOnlyMemory contents) { throw null; } + + public bool TryReadPrimitiveOctetString(out ReadOnlyMemory contents, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public bool TryReadUInt32(out uint value, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public bool TryReadUInt64(out ulong value, Asn1Tag? expectedTag = null) { throw null; } + } + + public partial struct AsnReaderOptions + { + private int _dummyPrimitive; + public bool SkipSetSortOrderVerification { get { throw null; } set { } } + + public int UtcTimeTwoDigitYearMax { get { throw null; } set { } } + } + + public sealed partial class AsnWriter + { + public AsnWriter(AsnEncodingRules ruleSet, int initialCapacity) { } + + public AsnWriter(AsnEncodingRules ruleSet) { } + + public AsnEncodingRules RuleSet { get { throw null; } } + + public void CopyTo(AsnWriter destination) { } + + public byte[] Encode() { throw null; } + + public int Encode(Span destination) { throw null; } + + public bool EncodedValueEquals(AsnWriter other) { throw null; } + + public bool EncodedValueEquals(ReadOnlySpan other) { throw null; } + + public int GetEncodedLength() { throw null; } + + public void PopOctetString(Asn1Tag? tag = null) { } + + public void PopSequence(Asn1Tag? tag = null) { } + + public void PopSetOf(Asn1Tag? tag = null) { } + + public Scope PushOctetString(Asn1Tag? tag = null) { throw null; } + + public Scope PushSequence(Asn1Tag? tag = null) { throw null; } + + public Scope PushSetOf(Asn1Tag? tag = null) { throw null; } + + public void Reset() { } + + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + + public void WriteBitString(ReadOnlySpan value, int unusedBitCount = 0, Asn1Tag? tag = null) { } + + public void WriteBoolean(bool value, Asn1Tag? tag = null) { } + + public void WriteCharacterString(UniversalTagNumber encodingType, ReadOnlySpan str, Asn1Tag? tag = null) { } + + public void WriteCharacterString(UniversalTagNumber encodingType, string value, Asn1Tag? tag = null) { } + + public void WriteEncodedValue(ReadOnlySpan value) { } + + public void WriteEnumeratedValue(Enum value, Asn1Tag? tag = null) { } + + public void WriteEnumeratedValue(TEnum value, Asn1Tag? tag = null) + where TEnum : Enum { } + + public void WriteGeneralizedTime(DateTimeOffset value, bool omitFractionalSeconds = false, Asn1Tag? tag = null) { } + + public void WriteInteger(long value, Asn1Tag? tag = null) { } + + public void WriteInteger(Numerics.BigInteger value, Asn1Tag? tag = null) { } + + public void WriteInteger(ReadOnlySpan value, Asn1Tag? tag = null) { } + + [CLSCompliant(false)] + public void WriteInteger(ulong value, Asn1Tag? tag = null) { } + + public void WriteIntegerUnsigned(ReadOnlySpan value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(Collections.BitArray value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(Enum value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(TEnum value, Asn1Tag? tag = null) + where TEnum : Enum { } + + public void WriteNull(Asn1Tag? tag = null) { } + + public void WriteObjectIdentifier(ReadOnlySpan oidValue, Asn1Tag? tag = null) { } + + public void WriteObjectIdentifier(string oidValue, Asn1Tag? tag = null) { } + + public void WriteOctetString(ReadOnlySpan value, Asn1Tag? tag = null) { } + + public void WriteUtcTime(DateTimeOffset value, int twoDigitYearMax, Asn1Tag? tag = null) { } + + public void WriteUtcTime(DateTimeOffset value, Asn1Tag? tag = null) { } + + public readonly partial struct Scope : IDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly void Dispose() { } + } + } + + public enum TagClass + { + Universal = 0, + Application = 64, + ContextSpecific = 128, + Private = 192 + } + + public enum UniversalTagNumber + { + EndOfContents = 0, + Boolean = 1, + Integer = 2, + BitString = 3, + OctetString = 4, + Null = 5, + ObjectIdentifier = 6, + ObjectDescriptor = 7, + External = 8, + InstanceOf = 8, + Real = 9, + Enumerated = 10, + Embedded = 11, + UTF8String = 12, + RelativeObjectIdentifier = 13, + Time = 14, + Sequence = 16, + SequenceOf = 16, + Set = 17, + SetOf = 17, + NumericString = 18, + PrintableString = 19, + T61String = 20, + TeletexString = 20, + VideotexString = 21, + IA5String = 22, + UtcTime = 23, + GeneralizedTime = 24, + GraphicString = 25, + ISO646String = 26, + VisibleString = 26, + GeneralString = 27, + UniversalString = 28, + UnrestrictedCharacterString = 29, + BMPString = 30, + Date = 31, + TimeOfDay = 32, + DateTime = 33, + Duration = 34, + ObjectIdentifierIRI = 35, + RelativeObjectIdentifierIRI = 36 + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net8.0/System.Formats.Asn1.cs b/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net8.0/System.Formats.Asn1.cs new file mode 100644 index 000000000..e9d535896 --- /dev/null +++ b/src/referencePackages/src/system.formats.asn1/8.0.0/lib/net8.0/System.Formats.Asn1.cs @@ -0,0 +1,412 @@ +// 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.Formats.Asn1")] +[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 that can read and write the ASN.1 BER, CER, and DER data formats.\r\n\r\nCommonly Used Types:\r\nSystem.Formats.Asn1.AsnReader\r\nSystem.Formats.Asn1.AsnWriter")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Formats.Asn1")] +[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.Formats.Asn1 +{ + public readonly partial struct Asn1Tag : IEquatable + { + private readonly int _dummyPrimitive; + public static readonly Asn1Tag Boolean; + public static readonly Asn1Tag ConstructedBitString; + public static readonly Asn1Tag ConstructedOctetString; + public static readonly Asn1Tag Enumerated; + public static readonly Asn1Tag GeneralizedTime; + public static readonly Asn1Tag Integer; + public static readonly Asn1Tag Null; + public static readonly Asn1Tag ObjectIdentifier; + public static readonly Asn1Tag PrimitiveBitString; + public static readonly Asn1Tag PrimitiveOctetString; + public static readonly Asn1Tag Sequence; + public static readonly Asn1Tag SetOf; + public static readonly Asn1Tag UtcTime; + public Asn1Tag(TagClass tagClass, int tagValue, bool isConstructed = false) { } + + public Asn1Tag(UniversalTagNumber universalTagNumber, bool isConstructed = false) { } + + public bool IsConstructed { get { throw null; } } + + public TagClass TagClass { get { throw null; } } + + public int TagValue { get { throw null; } } + + public readonly Asn1Tag AsConstructed() { throw null; } + + public readonly Asn1Tag AsPrimitive() { throw null; } + + public readonly int CalculateEncodedSize() { throw null; } + + public static Asn1Tag Decode(ReadOnlySpan source, out int bytesConsumed) { throw null; } + + public readonly int Encode(Span destination) { throw null; } + + public readonly bool Equals(Asn1Tag other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public readonly bool HasSameClassAndValue(Asn1Tag other) { throw null; } + + public static bool operator ==(Asn1Tag left, Asn1Tag right) { throw null; } + + public static bool operator !=(Asn1Tag left, Asn1Tag right) { throw null; } + + public override readonly string ToString() { throw null; } + + public static bool TryDecode(ReadOnlySpan source, out Asn1Tag tag, out int bytesConsumed) { throw null; } + + public readonly bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + + public partial class AsnContentException : Exception + { + public AsnContentException() { } + + [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 AsnContentException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + + public AsnContentException(string? message, Exception? inner) { } + + public AsnContentException(string? message) { } + } + + public static partial class AsnDecoder + { + public static byte[] ReadBitString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool ReadBoolean(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static string ReadCharacterString(ReadOnlySpan source, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Asn1Tag ReadEncodedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed) { throw null; } + + public static ReadOnlySpan ReadEnumeratedBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Enum ReadEnumeratedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, Type enumType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static TEnum ReadEnumeratedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) + where TEnum : Enum { throw null; } + + public static DateTimeOffset ReadGeneralizedTime(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Numerics.BigInteger ReadInteger(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static ReadOnlySpan ReadIntegerBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Collections.BitArray ReadNamedBitList(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Enum ReadNamedBitListValue(ReadOnlySpan source, AsnEncodingRules ruleSet, Type flagsEnumType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static TFlagsEnum ReadNamedBitListValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) + where TFlagsEnum : Enum { throw null; } + + public static void ReadNull(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static string ReadObjectIdentifier(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static byte[] ReadOctetString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static void ReadSequence(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static void ReadSetOf(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, bool skipSortOrderValidation = false, Asn1Tag? expectedTag = null) { throw null; } + + public static DateTimeOffset ReadUtcTime(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, int twoDigitYearMax = 2049, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadBitString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadCharacterString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, out int charsWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadCharacterStringBytes(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out int bytesConsumed, out int bytesWritten) { throw null; } + + public static bool TryReadEncodedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out Asn1Tag tag, out int contentOffset, out int contentLength, out int bytesConsumed) { throw null; } + + public static bool TryReadInt32(ReadOnlySpan source, AsnEncodingRules ruleSet, out int value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadInt64(ReadOnlySpan source, AsnEncodingRules ruleSet, out long value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadOctetString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadPrimitiveBitString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int unusedBitCount, out ReadOnlySpan value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadPrimitiveCharacterStringBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out ReadOnlySpan value, out int bytesConsumed) { throw null; } + + public static bool TryReadPrimitiveOctetString(ReadOnlySpan source, AsnEncodingRules ruleSet, out ReadOnlySpan value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public static bool TryReadUInt32(ReadOnlySpan source, AsnEncodingRules ruleSet, out uint value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public static bool TryReadUInt64(ReadOnlySpan source, AsnEncodingRules ruleSet, out ulong value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + } + + public enum AsnEncodingRules + { + BER = 0, + CER = 1, + DER = 2 + } + + public partial class AsnReader + { + public AsnReader(ReadOnlyMemory data, AsnEncodingRules ruleSet, AsnReaderOptions options = default) { } + + public bool HasData { get { throw null; } } + + public AsnEncodingRules RuleSet { get { throw null; } } + + public AsnReader Clone() { throw null; } + + public ReadOnlyMemory PeekContentBytes() { throw null; } + + public ReadOnlyMemory PeekEncodedValue() { throw null; } + + public Asn1Tag PeekTag() { throw null; } + + public byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = null) { throw null; } + + public bool ReadBoolean(Asn1Tag? expectedTag = null) { throw null; } + + public string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = null) { throw null; } + + public ReadOnlyMemory ReadEncodedValue() { throw null; } + + public ReadOnlyMemory ReadEnumeratedBytes(Asn1Tag? expectedTag = null) { throw null; } + + public Enum ReadEnumeratedValue(Type enumType, Asn1Tag? expectedTag = null) { throw null; } + + public TEnum ReadEnumeratedValue(Asn1Tag? expectedTag = null) + where TEnum : Enum { throw null; } + + public DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = null) { throw null; } + + public Numerics.BigInteger ReadInteger(Asn1Tag? expectedTag = null) { throw null; } + + public ReadOnlyMemory ReadIntegerBytes(Asn1Tag? expectedTag = null) { throw null; } + + public Collections.BitArray ReadNamedBitList(Asn1Tag? expectedTag = null) { throw null; } + + public Enum ReadNamedBitListValue(Type flagsEnumType, Asn1Tag? expectedTag = null) { throw null; } + + public TFlagsEnum ReadNamedBitListValue(Asn1Tag? expectedTag = null) + where TFlagsEnum : Enum { throw null; } + + public void ReadNull(Asn1Tag? expectedTag = null) { } + + public string ReadObjectIdentifier(Asn1Tag? expectedTag = null) { throw null; } + + public byte[] ReadOctetString(Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSequence(Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSetOf(bool skipSortOrderValidation, Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSetOf(Asn1Tag? expectedTag = null) { throw null; } + + public DateTimeOffset ReadUtcTime(int twoDigitYearMax, Asn1Tag? expectedTag = null) { throw null; } + + public DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = null) { throw null; } + + public void ThrowIfNotEmpty() { } + + public bool TryReadBitString(Span destination, out int unusedBitCount, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadCharacterString(Span destination, UniversalTagNumber encodingType, out int charsWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadCharacterStringBytes(Span destination, Asn1Tag expectedTag, out int bytesWritten) { throw null; } + + public bool TryReadInt32(out int value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadInt64(out long value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadOctetString(Span destination, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadPrimitiveBitString(out int unusedBitCount, out ReadOnlyMemory value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadPrimitiveCharacterStringBytes(Asn1Tag expectedTag, out ReadOnlyMemory contents) { throw null; } + + public bool TryReadPrimitiveOctetString(out ReadOnlyMemory contents, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public bool TryReadUInt32(out uint value, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public bool TryReadUInt64(out ulong value, Asn1Tag? expectedTag = null) { throw null; } + } + + public partial struct AsnReaderOptions + { + private int _dummyPrimitive; + public bool SkipSetSortOrderVerification { get { throw null; } set { } } + + public int UtcTimeTwoDigitYearMax { get { throw null; } set { } } + } + + public sealed partial class AsnWriter + { + public AsnWriter(AsnEncodingRules ruleSet, int initialCapacity) { } + + public AsnWriter(AsnEncodingRules ruleSet) { } + + public AsnEncodingRules RuleSet { get { throw null; } } + + public void CopyTo(AsnWriter destination) { } + + public byte[] Encode() { throw null; } + + public int Encode(Span destination) { throw null; } + + public bool EncodedValueEquals(AsnWriter other) { throw null; } + + public bool EncodedValueEquals(ReadOnlySpan other) { throw null; } + + public int GetEncodedLength() { throw null; } + + public void PopOctetString(Asn1Tag? tag = null) { } + + public void PopSequence(Asn1Tag? tag = null) { } + + public void PopSetOf(Asn1Tag? tag = null) { } + + public Scope PushOctetString(Asn1Tag? tag = null) { throw null; } + + public Scope PushSequence(Asn1Tag? tag = null) { throw null; } + + public Scope PushSetOf(Asn1Tag? tag = null) { throw null; } + + public void Reset() { } + + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + + public void WriteBitString(ReadOnlySpan value, int unusedBitCount = 0, Asn1Tag? tag = null) { } + + public void WriteBoolean(bool value, Asn1Tag? tag = null) { } + + public void WriteCharacterString(UniversalTagNumber encodingType, ReadOnlySpan str, Asn1Tag? tag = null) { } + + public void WriteCharacterString(UniversalTagNumber encodingType, string value, Asn1Tag? tag = null) { } + + public void WriteEncodedValue(ReadOnlySpan value) { } + + public void WriteEnumeratedValue(Enum value, Asn1Tag? tag = null) { } + + public void WriteEnumeratedValue(TEnum value, Asn1Tag? tag = null) + where TEnum : Enum { } + + public void WriteGeneralizedTime(DateTimeOffset value, bool omitFractionalSeconds = false, Asn1Tag? tag = null) { } + + public void WriteInteger(long value, Asn1Tag? tag = null) { } + + public void WriteInteger(Numerics.BigInteger value, Asn1Tag? tag = null) { } + + public void WriteInteger(ReadOnlySpan value, Asn1Tag? tag = null) { } + + [CLSCompliant(false)] + public void WriteInteger(ulong value, Asn1Tag? tag = null) { } + + public void WriteIntegerUnsigned(ReadOnlySpan value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(Collections.BitArray value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(Enum value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(TEnum value, Asn1Tag? tag = null) + where TEnum : Enum { } + + public void WriteNull(Asn1Tag? tag = null) { } + + public void WriteObjectIdentifier(ReadOnlySpan oidValue, Asn1Tag? tag = null) { } + + public void WriteObjectIdentifier(string oidValue, Asn1Tag? tag = null) { } + + public void WriteOctetString(ReadOnlySpan value, Asn1Tag? tag = null) { } + + public void WriteUtcTime(DateTimeOffset value, int twoDigitYearMax, Asn1Tag? tag = null) { } + + public void WriteUtcTime(DateTimeOffset value, Asn1Tag? tag = null) { } + + public readonly partial struct Scope : IDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly void Dispose() { } + } + } + + public enum TagClass + { + Universal = 0, + Application = 64, + ContextSpecific = 128, + Private = 192 + } + + public enum UniversalTagNumber + { + EndOfContents = 0, + Boolean = 1, + Integer = 2, + BitString = 3, + OctetString = 4, + Null = 5, + ObjectIdentifier = 6, + ObjectDescriptor = 7, + External = 8, + InstanceOf = 8, + Real = 9, + Enumerated = 10, + Embedded = 11, + UTF8String = 12, + RelativeObjectIdentifier = 13, + Time = 14, + Sequence = 16, + SequenceOf = 16, + Set = 17, + SetOf = 17, + NumericString = 18, + PrintableString = 19, + T61String = 20, + TeletexString = 20, + VideotexString = 21, + IA5String = 22, + UtcTime = 23, + GeneralizedTime = 24, + GraphicString = 25, + ISO646String = 26, + VisibleString = 26, + GeneralString = 27, + UniversalString = 28, + UnrestrictedCharacterString = 29, + BMPString = 30, + Date = 31, + TimeOfDay = 32, + DateTime = 33, + Duration = 34, + ObjectIdentifierIRI = 35, + RelativeObjectIdentifierIRI = 36 + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.formats.asn1/8.0.0/lib/netstandard2.0/System.Formats.Asn1.cs b/src/referencePackages/src/system.formats.asn1/8.0.0/lib/netstandard2.0/System.Formats.Asn1.cs new file mode 100644 index 000000000..e852a2785 --- /dev/null +++ b/src/referencePackages/src/system.formats.asn1/8.0.0/lib/netstandard2.0/System.Formats.Asn1.cs @@ -0,0 +1,411 @@ +// 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.Formats.Asn1")] +[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 that can read and write the ASN.1 BER, CER, and DER data formats.\r\n\r\nCommonly Used Types:\r\nSystem.Formats.Asn1.AsnReader\r\nSystem.Formats.Asn1.AsnWriter")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Formats.Asn1")] +[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.Formats.Asn1 +{ + public readonly partial struct Asn1Tag : IEquatable + { + private readonly int _dummyPrimitive; + public static readonly Asn1Tag Boolean; + public static readonly Asn1Tag ConstructedBitString; + public static readonly Asn1Tag ConstructedOctetString; + public static readonly Asn1Tag Enumerated; + public static readonly Asn1Tag GeneralizedTime; + public static readonly Asn1Tag Integer; + public static readonly Asn1Tag Null; + public static readonly Asn1Tag ObjectIdentifier; + public static readonly Asn1Tag PrimitiveBitString; + public static readonly Asn1Tag PrimitiveOctetString; + public static readonly Asn1Tag Sequence; + public static readonly Asn1Tag SetOf; + public static readonly Asn1Tag UtcTime; + public Asn1Tag(TagClass tagClass, int tagValue, bool isConstructed = false) { } + + public Asn1Tag(UniversalTagNumber universalTagNumber, bool isConstructed = false) { } + + public bool IsConstructed { get { throw null; } } + + public TagClass TagClass { get { throw null; } } + + public int TagValue { get { throw null; } } + + public readonly Asn1Tag AsConstructed() { throw null; } + + public readonly Asn1Tag AsPrimitive() { throw null; } + + public readonly int CalculateEncodedSize() { throw null; } + + public static Asn1Tag Decode(ReadOnlySpan source, out int bytesConsumed) { throw null; } + + public readonly int Encode(Span destination) { throw null; } + + public readonly bool Equals(Asn1Tag other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public readonly bool HasSameClassAndValue(Asn1Tag other) { throw null; } + + public static bool operator ==(Asn1Tag left, Asn1Tag right) { throw null; } + + public static bool operator !=(Asn1Tag left, Asn1Tag right) { throw null; } + + public override readonly string ToString() { throw null; } + + public static bool TryDecode(ReadOnlySpan source, out Asn1Tag tag, out int bytesConsumed) { throw null; } + + public readonly bool TryEncode(Span destination, out int bytesWritten) { throw null; } + } + + public partial class AsnContentException : Exception + { + public AsnContentException() { } + + protected AsnContentException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + + public AsnContentException(string? message, Exception? inner) { } + + public AsnContentException(string? message) { } + } + + public static partial class AsnDecoder + { + public static byte[] ReadBitString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool ReadBoolean(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static string ReadCharacterString(ReadOnlySpan source, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Asn1Tag ReadEncodedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed) { throw null; } + + public static ReadOnlySpan ReadEnumeratedBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Enum ReadEnumeratedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, Type enumType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static TEnum ReadEnumeratedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) + where TEnum : Enum { throw null; } + + public static DateTimeOffset ReadGeneralizedTime(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Numerics.BigInteger ReadInteger(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static ReadOnlySpan ReadIntegerBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Collections.BitArray ReadNamedBitList(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static Enum ReadNamedBitListValue(ReadOnlySpan source, AsnEncodingRules ruleSet, Type flagsEnumType, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static TFlagsEnum ReadNamedBitListValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) + where TFlagsEnum : Enum { throw null; } + + public static void ReadNull(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static string ReadObjectIdentifier(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static byte[] ReadOctetString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static void ReadSequence(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static void ReadSetOf(ReadOnlySpan source, AsnEncodingRules ruleSet, out int contentOffset, out int contentLength, out int bytesConsumed, bool skipSortOrderValidation = false, Asn1Tag? expectedTag = null) { throw null; } + + public static DateTimeOffset ReadUtcTime(ReadOnlySpan source, AsnEncodingRules ruleSet, out int bytesConsumed, int twoDigitYearMax = 2049, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadBitString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, out int unusedBitCount, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadCharacterString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, UniversalTagNumber encodingType, out int bytesConsumed, out int charsWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadCharacterStringBytes(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out int bytesConsumed, out int bytesWritten) { throw null; } + + public static bool TryReadEncodedValue(ReadOnlySpan source, AsnEncodingRules ruleSet, out Asn1Tag tag, out int contentOffset, out int contentLength, out int bytesConsumed) { throw null; } + + public static bool TryReadInt32(ReadOnlySpan source, AsnEncodingRules ruleSet, out int value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadInt64(ReadOnlySpan source, AsnEncodingRules ruleSet, out long value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadOctetString(ReadOnlySpan source, Span destination, AsnEncodingRules ruleSet, out int bytesConsumed, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadPrimitiveBitString(ReadOnlySpan source, AsnEncodingRules ruleSet, out int unusedBitCount, out ReadOnlySpan value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + public static bool TryReadPrimitiveCharacterStringBytes(ReadOnlySpan source, AsnEncodingRules ruleSet, Asn1Tag expectedTag, out ReadOnlySpan value, out int bytesConsumed) { throw null; } + + public static bool TryReadPrimitiveOctetString(ReadOnlySpan source, AsnEncodingRules ruleSet, out ReadOnlySpan value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public static bool TryReadUInt32(ReadOnlySpan source, AsnEncodingRules ruleSet, out uint value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public static bool TryReadUInt64(ReadOnlySpan source, AsnEncodingRules ruleSet, out ulong value, out int bytesConsumed, Asn1Tag? expectedTag = null) { throw null; } + } + + public enum AsnEncodingRules + { + BER = 0, + CER = 1, + DER = 2 + } + + public partial class AsnReader + { + public AsnReader(ReadOnlyMemory data, AsnEncodingRules ruleSet, AsnReaderOptions options = default) { } + + public bool HasData { get { throw null; } } + + public AsnEncodingRules RuleSet { get { throw null; } } + + public AsnReader Clone() { throw null; } + + public ReadOnlyMemory PeekContentBytes() { throw null; } + + public ReadOnlyMemory PeekEncodedValue() { throw null; } + + public Asn1Tag PeekTag() { throw null; } + + public byte[] ReadBitString(out int unusedBitCount, Asn1Tag? expectedTag = null) { throw null; } + + public bool ReadBoolean(Asn1Tag? expectedTag = null) { throw null; } + + public string ReadCharacterString(UniversalTagNumber encodingType, Asn1Tag? expectedTag = null) { throw null; } + + public ReadOnlyMemory ReadEncodedValue() { throw null; } + + public ReadOnlyMemory ReadEnumeratedBytes(Asn1Tag? expectedTag = null) { throw null; } + + public Enum ReadEnumeratedValue(Type enumType, Asn1Tag? expectedTag = null) { throw null; } + + public TEnum ReadEnumeratedValue(Asn1Tag? expectedTag = null) + where TEnum : Enum { throw null; } + + public DateTimeOffset ReadGeneralizedTime(Asn1Tag? expectedTag = null) { throw null; } + + public Numerics.BigInteger ReadInteger(Asn1Tag? expectedTag = null) { throw null; } + + public ReadOnlyMemory ReadIntegerBytes(Asn1Tag? expectedTag = null) { throw null; } + + public Collections.BitArray ReadNamedBitList(Asn1Tag? expectedTag = null) { throw null; } + + public Enum ReadNamedBitListValue(Type flagsEnumType, Asn1Tag? expectedTag = null) { throw null; } + + public TFlagsEnum ReadNamedBitListValue(Asn1Tag? expectedTag = null) + where TFlagsEnum : Enum { throw null; } + + public void ReadNull(Asn1Tag? expectedTag = null) { } + + public string ReadObjectIdentifier(Asn1Tag? expectedTag = null) { throw null; } + + public byte[] ReadOctetString(Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSequence(Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSetOf(bool skipSortOrderValidation, Asn1Tag? expectedTag = null) { throw null; } + + public AsnReader ReadSetOf(Asn1Tag? expectedTag = null) { throw null; } + + public DateTimeOffset ReadUtcTime(int twoDigitYearMax, Asn1Tag? expectedTag = null) { throw null; } + + public DateTimeOffset ReadUtcTime(Asn1Tag? expectedTag = null) { throw null; } + + public void ThrowIfNotEmpty() { } + + public bool TryReadBitString(Span destination, out int unusedBitCount, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadCharacterString(Span destination, UniversalTagNumber encodingType, out int charsWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadCharacterStringBytes(Span destination, Asn1Tag expectedTag, out int bytesWritten) { throw null; } + + public bool TryReadInt32(out int value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadInt64(out long value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadOctetString(Span destination, out int bytesWritten, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadPrimitiveBitString(out int unusedBitCount, out ReadOnlyMemory value, Asn1Tag? expectedTag = null) { throw null; } + + public bool TryReadPrimitiveCharacterStringBytes(Asn1Tag expectedTag, out ReadOnlyMemory contents) { throw null; } + + public bool TryReadPrimitiveOctetString(out ReadOnlyMemory contents, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public bool TryReadUInt32(out uint value, Asn1Tag? expectedTag = null) { throw null; } + + [CLSCompliant(false)] + public bool TryReadUInt64(out ulong value, Asn1Tag? expectedTag = null) { throw null; } + } + + public partial struct AsnReaderOptions + { + private int _dummyPrimitive; + public bool SkipSetSortOrderVerification { get { throw null; } set { } } + + public int UtcTimeTwoDigitYearMax { get { throw null; } set { } } + } + + public sealed partial class AsnWriter + { + public AsnWriter(AsnEncodingRules ruleSet, int initialCapacity) { } + + public AsnWriter(AsnEncodingRules ruleSet) { } + + public AsnEncodingRules RuleSet { get { throw null; } } + + public void CopyTo(AsnWriter destination) { } + + public byte[] Encode() { throw null; } + + public int Encode(Span destination) { throw null; } + + public bool EncodedValueEquals(AsnWriter other) { throw null; } + + public bool EncodedValueEquals(ReadOnlySpan other) { throw null; } + + public int GetEncodedLength() { throw null; } + + public void PopOctetString(Asn1Tag? tag = null) { } + + public void PopSequence(Asn1Tag? tag = null) { } + + public void PopSetOf(Asn1Tag? tag = null) { } + + public Scope PushOctetString(Asn1Tag? tag = null) { throw null; } + + public Scope PushSequence(Asn1Tag? tag = null) { throw null; } + + public Scope PushSetOf(Asn1Tag? tag = null) { throw null; } + + public void Reset() { } + + public bool TryEncode(Span destination, out int bytesWritten) { throw null; } + + public void WriteBitString(ReadOnlySpan value, int unusedBitCount = 0, Asn1Tag? tag = null) { } + + public void WriteBoolean(bool value, Asn1Tag? tag = null) { } + + public void WriteCharacterString(UniversalTagNumber encodingType, ReadOnlySpan str, Asn1Tag? tag = null) { } + + public void WriteCharacterString(UniversalTagNumber encodingType, string value, Asn1Tag? tag = null) { } + + public void WriteEncodedValue(ReadOnlySpan value) { } + + public void WriteEnumeratedValue(Enum value, Asn1Tag? tag = null) { } + + public void WriteEnumeratedValue(TEnum value, Asn1Tag? tag = null) + where TEnum : Enum { } + + public void WriteGeneralizedTime(DateTimeOffset value, bool omitFractionalSeconds = false, Asn1Tag? tag = null) { } + + public void WriteInteger(long value, Asn1Tag? tag = null) { } + + public void WriteInteger(Numerics.BigInteger value, Asn1Tag? tag = null) { } + + public void WriteInteger(ReadOnlySpan value, Asn1Tag? tag = null) { } + + [CLSCompliant(false)] + public void WriteInteger(ulong value, Asn1Tag? tag = null) { } + + public void WriteIntegerUnsigned(ReadOnlySpan value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(Collections.BitArray value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(Enum value, Asn1Tag? tag = null) { } + + public void WriteNamedBitList(TEnum value, Asn1Tag? tag = null) + where TEnum : Enum { } + + public void WriteNull(Asn1Tag? tag = null) { } + + public void WriteObjectIdentifier(ReadOnlySpan oidValue, Asn1Tag? tag = null) { } + + public void WriteObjectIdentifier(string oidValue, Asn1Tag? tag = null) { } + + public void WriteOctetString(ReadOnlySpan value, Asn1Tag? tag = null) { } + + public void WriteUtcTime(DateTimeOffset value, int twoDigitYearMax, Asn1Tag? tag = null) { } + + public void WriteUtcTime(DateTimeOffset value, Asn1Tag? tag = null) { } + + public readonly partial struct Scope : IDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly void Dispose() { } + } + } + + public enum TagClass + { + Universal = 0, + Application = 64, + ContextSpecific = 128, + Private = 192 + } + + public enum UniversalTagNumber + { + EndOfContents = 0, + Boolean = 1, + Integer = 2, + BitString = 3, + OctetString = 4, + Null = 5, + ObjectIdentifier = 6, + ObjectDescriptor = 7, + External = 8, + InstanceOf = 8, + Real = 9, + Enumerated = 10, + Embedded = 11, + UTF8String = 12, + RelativeObjectIdentifier = 13, + Time = 14, + Sequence = 16, + SequenceOf = 16, + Set = 17, + SetOf = 17, + NumericString = 18, + PrintableString = 19, + T61String = 20, + TeletexString = 20, + VideotexString = 21, + IA5String = 22, + UtcTime = 23, + GeneralizedTime = 24, + GraphicString = 25, + ISO646String = 26, + VisibleString = 26, + GeneralString = 27, + UniversalString = 28, + UnrestrictedCharacterString = 29, + BMPString = 30, + Date = 31, + TimeOfDay = 32, + DateTime = 33, + Duration = 34, + ObjectIdentifierIRI = 35, + RelativeObjectIdentifierIRI = 36 + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.formats.asn1/8.0.0/system.formats.asn1.nuspec b/src/referencePackages/src/system.formats.asn1/8.0.0/system.formats.asn1.nuspec new file mode 100644 index 000000000..6b68c66af --- /dev/null +++ b/src/referencePackages/src/system.formats.asn1/8.0.0/system.formats.asn1.nuspec @@ -0,0 +1,29 @@ + + + + System.Formats.Asn1 + 8.0.0 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Provides classes that can read and write the ASN.1 BER, CER, and DER data formats. + +Commonly Used Types: +System.Formats.Asn1.AsnReader +System.Formats.Asn1.AsnWriter + 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.pkcs/8.0.0/System.Security.Cryptography.Pkcs.8.0.0.csproj b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/System.Security.Cryptography.Pkcs.8.0.0.csproj new file mode 100644 index 000000000..e9481e313 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/System.Security.Cryptography.Pkcs.8.0.0.csproj @@ -0,0 +1,32 @@ + + + + net6.0;net7.0;net8.0;netstandard2.0;netstandard2.1 + System.Security.Cryptography.Pkcs + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/net6.0/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/net6.0/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 000000000..f1ea50931 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/net6.0/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,877 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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.0/lib/net7.0/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/net7.0/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 000000000..db13c7a33 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/net7.0/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,878 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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.0/lib/net8.0/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/net8.0/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 000000000..661c5479d --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/net8.0/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,878 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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.0/lib/netstandard2.0/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/netstandard2.0/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 000000000..dce068695 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/netstandard2.0/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,582 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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.0/lib/netstandard2.1/System.Security.Cryptography.Pkcs.cs b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/netstandard2.1/System.Security.Cryptography.Pkcs.cs new file mode 100644 index 000000000..b8c67a3d1 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/lib/netstandard2.1/System.Security.Cryptography.Pkcs.cs @@ -0,0 +1,874 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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.pkcs/8.0.0/system.security.cryptography.pkcs.nuspec b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/system.security.cryptography.pkcs.nuspec new file mode 100644 index 000000000..24721ec80 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.pkcs/8.0.0/system.security.cryptography.pkcs.nuspec @@ -0,0 +1,40 @@ + + + + System.Security.Cryptography.Pkcs + 8.0.0 + 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.0/System.Security.Cryptography.Xml.8.0.0.csproj b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/System.Security.Cryptography.Xml.8.0.0.csproj new file mode 100644 index 000000000..20d1b12ec --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/System.Security.Cryptography.Xml.8.0.0.csproj @@ -0,0 +1,27 @@ + + + + net6.0;net7.0;net8.0;netstandard2.0 + System.Security.Cryptography.Xml + Open + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/net6.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/net6.0/System.Security.Cryptography.Xml.cs new file mode 100644 index 000000000..b32baccf3 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/net6.0/System.Security.Cryptography.Xml.cs @@ -0,0 +1,936 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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; } } + + [System.Runtime.CompilerServices.IndexerName("ItemOf")] // Adding attribute manually as GenAPI filters it out + 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; } } + + [System.Runtime.CompilerServices.IndexerName("ItemOf")] // Adding attribute manually as GenAPI filters it out + 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.0/lib/net7.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/net7.0/System.Security.Cryptography.Xml.cs new file mode 100644 index 000000000..7809302cc --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/net7.0/System.Security.Cryptography.Xml.cs @@ -0,0 +1,955 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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; } } + + [System.Runtime.CompilerServices.IndexerName("ItemOf")] // Adding attribute manually as GenAPI filters it out + 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; } } + + [System.Runtime.CompilerServices.IndexerName("ItemOf")] // Adding attribute manually as GenAPI filters it out + 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.0/lib/net8.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/net8.0/System.Security.Cryptography.Xml.cs new file mode 100644 index 000000000..3590ef5b6 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/net8.0/System.Security.Cryptography.Xml.cs @@ -0,0 +1,956 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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; } } + + [System.Runtime.CompilerServices.IndexerName("ItemOf")] // Adding attribute manually as GenAPI filters it out + 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; } } + + [System.Runtime.CompilerServices.IndexerName("ItemOf")] // Adding attribute manually as GenAPI filters it out + 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.0/lib/netstandard2.0/System.Security.Cryptography.Xml.cs b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/netstandard2.0/System.Security.Cryptography.Xml.cs new file mode 100644 index 000000000..b9048736f --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/lib/netstandard2.0/System.Security.Cryptography.Xml.cs @@ -0,0 +1,900 @@ +// 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.23.53103")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.0+5535e31a712343a63f5d7d796cd874e563e5ac14")] +[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; } } + + [System.Runtime.CompilerServices.IndexerName("ItemOf")] // Adding attribute manually as GenAPI filters it out + 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; } } + + [System.Runtime.CompilerServices.IndexerName("ItemOf")] // Adding attribute manually as GenAPI filters it out + 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 diff --git a/src/referencePackages/src/system.security.cryptography.xml/8.0.0/system.security.cryptography.xml.nuspec b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/system.security.cryptography.xml.nuspec new file mode 100644 index 000000000..bce9c8e32 --- /dev/null +++ b/src/referencePackages/src/system.security.cryptography.xml/8.0.0/system.security.cryptography.xml.nuspec @@ -0,0 +1,73 @@ + + + + System.Security.Cryptography.Xml + 8.0.0 + 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