using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// Represents the abstract base class from which all implementations of the Digital Signature Algorithm () must inherit.
// Token: 0x020003E6 RID: 998
[Token(Token = "0x20003E6")]
[ComVisible(true)]
public abstract class DSA : AsymmetricAlgorithm
{
/// Initializes a new instance of the class.
// Token: 0x0600218B RID: 8587 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600218B")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
protected DSA()
{
}
/// Creates the default cryptographic object used to perform the asymmetric algorithm.
/// A cryptographic object used to perform the asymmetric algorithm.
// 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;
}
/// Creates the specified cryptographic object used to perform the asymmetric algorithm.
/// The name of the specific implementation of to use.
/// A cryptographic object used to perform the asymmetric algorithm.
// 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;
}
/// When overridden in a derived class, creates the signature for the specified data.
/// The data to be signed.
/// The digital signature for the specified data.
// Token: 0x0600218E RID: 8590
[Token(Token = "0x600218E")]
[Address(Slot = "13")]
public abstract byte[] CreateSignature(byte[] rgbHash);
/// When overridden in a derived class, verifies the signature for the specified data.
/// The hash of the data signed with .
/// The signature to be verified for rgbData.
///
/// if matches the signature computed using the specified hash algorithm and key on ; otherwise, .
// Token: 0x0600218F RID: 8591
[Token(Token = "0x600218F")]
[Address(Slot = "14")]
public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature);
/// When overridden in a derived class, computes the hash value of a specified portion of a byte array by using a specified hashing algorithm.
/// The data to be hashed.
/// The index of the first byte in that is to be hashed.
/// The number of bytes to hash.
/// The algorithm to use to hash the data.
/// The hashed data.
/// A derived class must override this method.
// 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;
}
/// When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm.
/// The binary stream to hash.
/// The algorithm to use to hash the data.
/// The hashed data.
/// A derived class must override this method.
// 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;
}
/// Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value.
/// The input data for which to compute the hash.
/// The hash algorithm to use to create the hash value.
/// The DSA signature for the specified data.
///
/// is .
///
/// . is or .
// 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;
}
/// Computes the hash value of a portion of the specified byte array using the specified hash algorithm and signs the resulting hash value.
/// The input data for which to compute the hash.
/// The offset into the array at which to begin using data.
/// The number of bytes in the array to use as data.
/// The hash algorithm to use to create the hash value.
/// The DSA signature for the specified data.
///
/// is .
///
/// . is or .
///
/// is less than zero.
/// -or-
/// is less than zero.
/// -or-
/// + - 1 results in an index that is beyond the upper bound of .
// 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;
}
/// Computes the hash value of the specified stream using the specified hash algorithm and signs the resulting hash value.
/// The input stream for which to compute the hash.
/// The hash algorithm to use to create the hash value.
/// The DSA signature for the specified data.
///
/// is .
///
/// . is or .
// 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;
}
/// 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.
/// The signed data.
/// The signature data to be verified.
/// The hash algorithm used to create the hash value of the data.
///
/// if the digital signature is valid; otherwise, .
///
/// is .
/// -or-
/// is .
///
/// . is or .
// 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);
}
/// 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.
/// The signed data.
/// The starting index at which to compute the hash.
/// The number of bytes to hash.
/// The signature data to be verified.
/// The hash algorithm used to create the hash value of the data.
///
/// if the digital signature is valid; otherwise, .
///
/// is .
/// -or-
/// is .
///
/// . is or .
///
/// is less than zero.
/// -or-
/// is less than zero.
/// -or-
/// + - 1 results in an index that is beyond the upper bound of .
// 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);
}
/// 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.
/// The signed data.
/// The signature data to be verified.
/// The hash algorithm used to create the hash value of the data.
///
/// if the digital signature is valid; otherwise, .
///
/// is .
/// -or-
/// is .
///
/// . is or .
// 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);
}
/// Reconstructs a object from an XML string.
/// The XML string to use to reconstruct the object.
/// The parameter is .
/// The format of the parameter is not valid.
// 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)
{
}
/// Creates and returns an XML string representation of the current object.
///
/// to include private parameters; otherwise, .
/// An XML string encoding of the current object.
// 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;
}
/// When overridden in a derived class, exports the .
///
/// to include private parameters; otherwise, .
/// The parameters for .
// Token: 0x0600219A RID: 8602
[Token(Token = "0x600219A")]
[Address(Slot = "21")]
public abstract DSAParameters ExportParameters(bool includePrivateParameters);
/// When overridden in a derived class, imports the specified .
/// The parameters for .
// 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;
}
}
}