a
This commit is contained in:
@@ -0,0 +1,133 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Accesses the cryptography configuration information.</summary>
|
||||
// Token: 0x02000420 RID: 1056
|
||||
[Token(Token = "0x2000420")]
|
||||
[ComVisible(true)]
|
||||
public class CryptoConfig
|
||||
{
|
||||
/// <summary>Encodes the specified object identifier (OID).</summary>
|
||||
/// <param name="str">The OID to encode.</param>
|
||||
/// <returns>A byte array containing the encoded OID.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="str" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">An error occurred while encoding the OID.</exception>
|
||||
// Token: 0x06002395 RID: 9109 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002395")]
|
||||
[Address(RVA = "0x298CF90", Offset = "0x298BD90", VA = "0x18298CF90")]
|
||||
public static byte[] EncodeOID(string str)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002396 RID: 9110 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002396")]
|
||||
[Address(RVA = "0x298CE00", Offset = "0x298BC00", VA = "0x18298CE00")]
|
||||
private static byte[] EncodeLongNumber(long x)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Indicates whether the runtime should enforce the policy to create only Federal Information Processing Standard (FIPS) certified algorithms.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> to enforce the policy; otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x170004E8 RID: 1256
|
||||
// (get) Token: 0x06002397 RID: 9111 RVA: 0x00015360 File Offset: 0x00013560
|
||||
[Token(Token = "0x170004E8")]
|
||||
[MonoLimitation("nothing is FIPS certified so it never make sense to restrict to this (empty) subset")]
|
||||
public static bool AllowOnlyFipsAlgorithms
|
||||
{
|
||||
[Token(Token = "0x6002397")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Adds a set of names to algorithm mappings to be used for the current application domain.</summary>
|
||||
/// <param name="algorithm">The algorithm to map to.</param>
|
||||
/// <param name="names">An array of names to map to the algorithm.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="algorithm" /> or <paramref name="names" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="algorithm" /> cannot be accessed from outside the assembly.
|
||||
/// -or-
|
||||
/// One of the entries in the <paramref name="names" /> parameter is empty or <see langword="null" />.</exception>
|
||||
// Token: 0x06002398 RID: 9112 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002398")]
|
||||
[Address(RVA = "0x298BB00", Offset = "0x298A900", VA = "0x18298BB00")]
|
||||
public static void AddAlgorithm(Type algorithm, params string[] names)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Adds a set of names to object identifier (OID) mappings to be used for the current application domain.</summary>
|
||||
/// <param name="oid">The object identifier (OID) to map to.</param>
|
||||
/// <param name="names">An array of names to map to the OID.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="oid" /> or <paramref name="names" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">One of the entries in the <paramref name="names" /> parameter is empty or <see langword="null" />.</exception>
|
||||
// Token: 0x06002399 RID: 9113 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002399")]
|
||||
[Address(RVA = "0x298BB50", Offset = "0x298A950", VA = "0x18298BB50")]
|
||||
public static void AddOID(string oid, params string[] names)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Creates a new instance of the specified cryptographic object.</summary>
|
||||
/// <param name="name">The simple name of the cryptographic object of which to create an instance.</param>
|
||||
/// <returns>A new instance of the specified cryptographic object.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="name" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
|
||||
// Token: 0x0600239A RID: 9114 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600239A")]
|
||||
[Address(RVA = "0x298CDF0", Offset = "0x298BBF0", VA = "0x18298CDF0")]
|
||||
public static object CreateFromName(string name)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Creates a new instance of the specified cryptographic object with the specified arguments.</summary>
|
||||
/// <param name="name">The simple name of the cryptographic object of which to create an instance.</param>
|
||||
/// <param name="args">The arguments used to create the specified cryptographic object.</param>
|
||||
/// <returns>A new instance of the specified cryptographic object.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="name" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
|
||||
// Token: 0x0600239B RID: 9115 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600239B")]
|
||||
[Address(RVA = "0x298BBA0", Offset = "0x298A9A0", VA = "0x18298BBA0")]
|
||||
public static object CreateFromName(string name, params object[] args)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600239C RID: 9116 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600239C")]
|
||||
[Address(RVA = "0x298D3E0", Offset = "0x298C1E0", VA = "0x18298D3E0")]
|
||||
internal static string MapNameToOID(string name, object arg)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Gets the object identifier (OID) of the algorithm corresponding to the specified simple name.</summary>
|
||||
/// <param name="name">The simple name of the algorithm for which to get the OID.</param>
|
||||
/// <returns>The OID of the specified algorithm.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
|
||||
// Token: 0x0600239D RID: 9117 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600239D")]
|
||||
[Address(RVA = "0x298D3F0", Offset = "0x298C1F0", VA = "0x18298D3F0")]
|
||||
public static string MapNameToOID(string name)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptoConfig" /> class.</summary>
|
||||
// Token: 0x0600239E RID: 9118 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600239E")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public CryptoConfig()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user