oh dear
This commit is contained in:
@@ -0,0 +1,268 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Represents the abstract base class from which all implementations of the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) must inherit.</summary>
|
||||
// Token: 0x020003E6 RID: 998
|
||||
[Token(Token = "0x20003E6")]
|
||||
[ComVisible(true)]
|
||||
public abstract class DSA : AsymmetricAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSA" /> class.</summary>
|
||||
// Token: 0x0600218B RID: 8587 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600218B")]
|
||||
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
||||
protected DSA()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Creates the default cryptographic object used to perform the asymmetric algorithm.</summary>
|
||||
/// <returns>A cryptographic object used to perform the asymmetric algorithm.</returns>
|
||||
// Token: 0x0600218C RID: 8588 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600218C")]
|
||||
[Address(RVA = "0x2DA6620", Offset = "0x2DA5420", VA = "0x182DA6620")]
|
||||
public new static DSA Create()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Creates the specified cryptographic object used to perform the asymmetric algorithm.</summary>
|
||||
/// <param name="algName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.DSA" /> to use.</param>
|
||||
/// <returns>A cryptographic object used to perform the asymmetric algorithm.</returns>
|
||||
// Token: 0x0600218D RID: 8589 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600218D")]
|
||||
[Address(RVA = "0x2DA6680", Offset = "0x2DA5480", VA = "0x182DA6680")]
|
||||
public new static DSA Create(string algName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>When overridden in a derived class, creates the <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</summary>
|
||||
/// <param name="rgbHash">The data to be signed.</param>
|
||||
/// <returns>The digital signature for the specified data.</returns>
|
||||
// Token: 0x0600218E RID: 8590
|
||||
[Token(Token = "0x600218E")]
|
||||
[Address(Slot = "13")]
|
||||
public abstract byte[] CreateSignature(byte[] rgbHash);
|
||||
|
||||
/// <summary>When overridden in a derived class, verifies the <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</summary>
|
||||
/// <param name="rgbHash">The hash of the data signed with <paramref name="rgbSignature" />.</param>
|
||||
/// <param name="rgbSignature">The signature to be verified for rgbData.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if <paramref name="rgbSignature" /> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash" />; otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x0600218F RID: 8591
|
||||
[Token(Token = "0x600218F")]
|
||||
[Address(Slot = "14")]
|
||||
public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature);
|
||||
|
||||
/// <summary>When overridden in a derived class, computes the hash value of a specified portion of a byte array by using a specified hashing algorithm.</summary>
|
||||
/// <param name="data">The data to be hashed.</param>
|
||||
/// <param name="offset">The index of the first byte in <paramref name="data" /> that is to be hashed.</param>
|
||||
/// <param name="count">The number of bytes to hash.</param>
|
||||
/// <param name="hashAlgorithm">The algorithm to use to hash the data.</param>
|
||||
/// <returns>The hashed data.</returns>
|
||||
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
|
||||
// Token: 0x06002190 RID: 8592 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002190")]
|
||||
[Address(RVA = "0x2DA70A0", Offset = "0x2DA5EA0", VA = "0x182DA70A0", Slot = "15")]
|
||||
protected virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm.</summary>
|
||||
/// <param name="data">The binary stream to hash.</param>
|
||||
/// <param name="hashAlgorithm">The algorithm to use to hash the data.</param>
|
||||
/// <returns>The hashed data.</returns>
|
||||
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
|
||||
// Token: 0x06002191 RID: 8593 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002191")]
|
||||
[Address(RVA = "0x2DA70E0", Offset = "0x2DA5EE0", VA = "0x182DA70E0", Slot = "16")]
|
||||
protected virtual byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value.</summary>
|
||||
/// <param name="data">The input data for which to compute the hash.</param>
|
||||
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
|
||||
/// <returns>The DSA signature for the specified data.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="data" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
||||
// Token: 0x06002192 RID: 8594 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002192")]
|
||||
[Address(RVA = "0x2DA7120", Offset = "0x2DA5F20", VA = "0x182DA7120")]
|
||||
public byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Computes the hash value of a portion of the specified byte array using the specified hash algorithm and signs the resulting hash value.</summary>
|
||||
/// <param name="data">The input data for which to compute the hash.</param>
|
||||
/// <param name="offset">The offset into the array at which to begin using data.</param>
|
||||
/// <param name="count">The number of bytes in the array to use as data.</param>
|
||||
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
|
||||
/// <returns>The DSA signature for the specified data.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="data" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="offset" /> is less than zero.
|
||||
/// -or-
|
||||
/// <paramref name="count" /> is less than zero.
|
||||
/// -or-
|
||||
/// <paramref name="offset" /> + <paramref name="count" /> - 1 results in an index that is beyond the upper bound of <paramref name="data" />.</exception>
|
||||
// Token: 0x06002193 RID: 8595 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002193")]
|
||||
[Address(RVA = "0x2DA71D0", Offset = "0x2DA5FD0", VA = "0x182DA71D0", Slot = "17")]
|
||||
public virtual byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Computes the hash value of the specified stream using the specified hash algorithm and signs the resulting hash value.</summary>
|
||||
/// <param name="data">The input stream for which to compute the hash.</param>
|
||||
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
|
||||
/// <returns>The DSA signature for the specified data.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="data" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
||||
// Token: 0x06002194 RID: 8596 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002194")]
|
||||
[Address(RVA = "0x2DA7350", Offset = "0x2DA6150", VA = "0x182DA7350", Slot = "18")]
|
||||
public virtual byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and comparing it to the provided signature.</summary>
|
||||
/// <param name="data">The signed data.</param>
|
||||
/// <param name="signature">The signature data to be verified.</param>
|
||||
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the digital signature is valid; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="data" /> is <see langword="null" />.
|
||||
/// -or-
|
||||
/// <paramref name="signature" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
||||
// Token: 0x06002195 RID: 8597 RVA: 0x00014940 File Offset: 0x00012B40
|
||||
[Token(Token = "0x6002195")]
|
||||
[Address(RVA = "0x2DA7910", Offset = "0x2DA6710", VA = "0x182DA7910")]
|
||||
public bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and comparing it to the provided signature.</summary>
|
||||
/// <param name="data">The signed data.</param>
|
||||
/// <param name="offset">The starting index at which to compute the hash.</param>
|
||||
/// <param name="count">The number of bytes to hash.</param>
|
||||
/// <param name="signature">The signature data to be verified.</param>
|
||||
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the digital signature is valid; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="data" /> is <see langword="null" />.
|
||||
/// -or-
|
||||
/// <paramref name="signature" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="offset" /> is less than zero.
|
||||
/// -or-
|
||||
/// <paramref name="count" /> is less than zero.
|
||||
/// -or-
|
||||
/// <paramref name="offset" /> + <paramref name="count" /> - 1 results in an index that is beyond the upper bound of <paramref name="data" />.</exception>
|
||||
// Token: 0x06002196 RID: 8598 RVA: 0x00014958 File Offset: 0x00012B58
|
||||
[Token(Token = "0x6002196")]
|
||||
[Address(RVA = "0x2DA7750", Offset = "0x2DA6550", VA = "0x182DA7750", Slot = "19")]
|
||||
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and comparing it to the provided signature.</summary>
|
||||
/// <param name="data">The signed data.</param>
|
||||
/// <param name="signature">The signature data to be verified.</param>
|
||||
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the digital signature is valid; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="data" /> is <see langword="null" />.
|
||||
/// -or-
|
||||
/// <paramref name="signature" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
||||
// Token: 0x06002197 RID: 8599 RVA: 0x00014970 File Offset: 0x00012B70
|
||||
[Token(Token = "0x6002197")]
|
||||
[Address(RVA = "0x2DA79D0", Offset = "0x2DA67D0", VA = "0x182DA79D0", Slot = "20")]
|
||||
public virtual bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Reconstructs a <see cref="T:System.Security.Cryptography.DSA" /> object from an XML string.</summary>
|
||||
/// <param name="xmlString">The XML string to use to reconstruct the <see cref="T:System.Security.Cryptography.DSA" /> object.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="xmlString" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The format of the <paramref name="xmlString" /> parameter is not valid.</exception>
|
||||
// Token: 0x06002198 RID: 8600 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002198")]
|
||||
[Address(RVA = "0x2DA6780", Offset = "0x2DA5580", VA = "0x182DA6780", Slot = "11")]
|
||||
public override void FromXmlString(string xmlString)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Creates and returns an XML string representation of the current <see cref="T:System.Security.Cryptography.DSA" /> object.</summary>
|
||||
/// <param name="includePrivateParameters">
|
||||
/// <see langword="true" /> to include private parameters; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>An XML string encoding of the current <see cref="T:System.Security.Cryptography.DSA" /> object.</returns>
|
||||
// Token: 0x06002199 RID: 8601 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002199")]
|
||||
[Address(RVA = "0x2DA7420", Offset = "0x2DA6220", VA = "0x182DA7420", Slot = "12")]
|
||||
public override string ToXmlString(bool includePrivateParameters)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>When overridden in a derived class, exports the <see cref="T:System.Security.Cryptography.DSAParameters" />.</summary>
|
||||
/// <param name="includePrivateParameters">
|
||||
/// <see langword="true" /> to include private parameters; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The parameters for <see cref="T:System.Security.Cryptography.DSA" />.</returns>
|
||||
// Token: 0x0600219A RID: 8602
|
||||
[Token(Token = "0x600219A")]
|
||||
[Address(Slot = "21")]
|
||||
public abstract DSAParameters ExportParameters(bool includePrivateParameters);
|
||||
|
||||
/// <summary>When overridden in a derived class, imports the specified <see cref="T:System.Security.Cryptography.DSAParameters" />.</summary>
|
||||
/// <param name="parameters">The parameters for <see cref="T:System.Security.Cryptography.DSA" />.</param>
|
||||
// Token: 0x0600219B RID: 8603
|
||||
[Token(Token = "0x600219B")]
|
||||
[Address(Slot = "22")]
|
||||
public abstract void ImportParameters(DSAParameters parameters);
|
||||
|
||||
// Token: 0x0600219C RID: 8604 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600219C")]
|
||||
[Address(RVA = "0x2DA6710", Offset = "0x2DA5510", VA = "0x182DA6710")]
|
||||
private static Exception DerivedClassMustOverride()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600219D RID: 8605 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600219D")]
|
||||
[Address(RVA = "0x2DA7030", Offset = "0x2DA5E30", VA = "0x182DA7030")]
|
||||
internal static Exception HashAlgorithmNameNullOrEmpty()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user