using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// Represents the base class from which all implementations of the algorithm inherit.
// Token: 0x02000404 RID: 1028
[Token(Token = "0x2000404")]
[ComVisible(true)]
public abstract class RSA : AsymmetricAlgorithm
{
/// Initializes a new instance of the class.
// Token: 0x0600227C RID: 8828 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600227C")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
protected RSA()
{
}
/// Creates an instance of the default implementation of the algorithm.
/// A new instance of the default implementation of .
// Token: 0x0600227D RID: 8829 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600227D")]
[Address(RVA = "0x2DB6A80", Offset = "0x2DB5880", VA = "0x182DB6A80")]
public new static RSA Create()
{
return null;
}
/// Creates an instance of the specified implementation of .
/// The name of the implementation of to use.
/// A new instance of the specified implementation of .
// Token: 0x0600227E RID: 8830 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600227E")]
[Address(RVA = "0x2DB69F0", Offset = "0x2DB57F0", VA = "0x182DB69F0")]
public new static RSA Create(string algName)
{
return null;
}
/// When overridden in a derived class, encrypts the input data using the specified padding mode.
/// The data to encrypt.
/// The padding mode.
/// The encrypted data.
/// A derived class must override this method.
// Token: 0x0600227F RID: 8831 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600227F")]
[Address(RVA = "0x2DB6C70", Offset = "0x2DB5A70", VA = "0x182DB6C70", Slot = "13")]
public virtual byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
{
return null;
}
/// When overridden in a derived class, decrypts the input data using the specified padding mode.
/// The data to decrypt.
/// The padding mode.
/// The decrypted data.
/// A derived class must override this method.
// Token: 0x06002280 RID: 8832 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002280")]
[Address(RVA = "0x2DB6B50", Offset = "0x2DB5950", VA = "0x182DB6B50", Slot = "14")]
public virtual byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
{
return null;
}
/// When overridden in a derived class, computes the signature for the specified hash value by encrypting it with the private key using the specified padding.
/// The hash value of the data to be signed.
/// The hash algorithm used to create the hash value of the data.
/// The padding.
/// The RSA signature for the specified hash value.
/// A derived class must override this method.
// Token: 0x06002281 RID: 8833 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002281")]
[Address(RVA = "0x2DB77D0", Offset = "0x2DB65D0", VA = "0x182DB77D0", Slot = "15")]
public virtual byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// Verifies that a digital signature is valid by determining the hash value in the signature using the specified hash algorithm and padding, and comparing it to the provided hash value.
/// The hash value of the signed data.
/// The signature data to be verified.
/// The hash algorithm used to create the hash value.
/// The padding mode.
///
/// if the signature is valid; otherwise, .
/// A derived class must override this method.
// Token: 0x06002282 RID: 8834 RVA: 0x00014DA8 File Offset: 0x00012FA8
[Token(Token = "0x6002282")]
[Address(RVA = "0x2DB7F60", Offset = "0x2DB6D60", VA = "0x182DB7F60", Slot = "16")]
public virtual bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return default(bool);
}
/// 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 in hash the data.
/// The hashed data.
/// A derived class must override this method.
// Token: 0x06002283 RID: 8835 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002283")]
[Address(RVA = "0x2DB7380", Offset = "0x2DB6180", VA = "0x182DB7380", Slot = "17")]
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 hash algorithm.
/// The hashed data.
/// A derived class must override this method.
// Token: 0x06002284 RID: 8836 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002284")]
[Address(RVA = "0x2DB7340", Offset = "0x2DB6140", VA = "0x182DB7340", Slot = "18")]
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 padding mode, 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 padding mode.
/// The RSA signature for the specified data.
///
/// is .
/// -or-
/// is .
///
/// . is or .
// Token: 0x06002285 RID: 8837 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002285")]
[Address(RVA = "0x2DB73C0", Offset = "0x2DB61C0", VA = "0x182DB73C0")]
public byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// Computes the hash value of a portion of the specified byte array using the specified hash algorithm and padding mode, 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 padding mode.
/// The RSA signature for the specified data.
///
/// 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: 0x06002286 RID: 8838 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002286")]
[Address(RVA = "0x2DB7480", Offset = "0x2DB6280", VA = "0x182DB7480", Slot = "19")]
public virtual byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// Computes the hash value of the specified stream using the specified hash algorithm and padding mode, 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 padding mode.
/// The RSA signature for the specified data.
///
/// is .
/// -or-
/// is .
///
/// . is or .
// Token: 0x06002287 RID: 8839 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002287")]
[Address(RVA = "0x2DB7670", Offset = "0x2DB6470", VA = "0x182DB7670", Slot = "20")]
public virtual byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and padding, 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.
/// The padding mode.
///
/// if the signature is valid; otherwise, .
///
/// is .
/// -or-
/// is .
/// -or-
/// is .
///
/// . is or .
// Token: 0x06002288 RID: 8840 RVA: 0x00014DC0 File Offset: 0x00012FC0
[Token(Token = "0x6002288")]
[Address(RVA = "0x2DB7C70", Offset = "0x2DB6A70", VA = "0x182DB7C70")]
public bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
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 padding, 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.
/// The padding mode.
///
/// if the signature is valid; otherwise, .
///
/// is .
/// -or-
/// 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: 0x06002289 RID: 8841 RVA: 0x00014DD8 File Offset: 0x00012FD8
[Token(Token = "0x6002289")]
[Address(RVA = "0x2DB7D30", Offset = "0x2DB6B30", VA = "0x182DB7D30", Slot = "21")]
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
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 padding, 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.
/// The padding mode.
///
/// if the signature is valid; otherwise, .
///
/// is .
/// -or-
/// is .
/// -or-
/// is .
///
/// . is or .
// Token: 0x0600228A RID: 8842 RVA: 0x00014DF0 File Offset: 0x00012FF0
[Token(Token = "0x600228A")]
[Address(RVA = "0x2DB7AD0", Offset = "0x2DB68D0", VA = "0x182DB7AD0")]
public bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return default(bool);
}
// Token: 0x0600228B RID: 8843 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600228B")]
[Address(RVA = "0x2DB6B90", Offset = "0x2DB5990", VA = "0x182DB6B90")]
private static Exception DerivedClassMustOverride()
{
return null;
}
// Token: 0x0600228C RID: 8844 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600228C")]
[Address(RVA = "0x2DB72D0", Offset = "0x2DB60D0", VA = "0x182DB72D0")]
internal static Exception HashAlgorithmNameNullOrEmpty()
{
return null;
}
/// When overridden in a derived class, decrypts the input data using the private key.
/// The cipher text to be decrypted.
/// The resulting decryption of the parameter in plain text.
/// This method call is not supported. This exception is thrown starting with the .NET Framework 4.6.
// Token: 0x0600228D RID: 8845 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600228D")]
[Address(RVA = "0x2DB6AE0", Offset = "0x2DB58E0", VA = "0x182DB6AE0", Slot = "22")]
public virtual byte[] DecryptValue(byte[] rgb)
{
return null;
}
/// When overridden in a derived class, encrypts the input data using the public key.
/// The plain text to be encrypted.
/// The resulting encryption of the parameter as cipher text.
/// This method call is not supported. This exception is thrown starting with the .NET Framework 4.6.
// Token: 0x0600228E RID: 8846 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600228E")]
[Address(RVA = "0x2DB6C00", Offset = "0x2DB5A00", VA = "0x182DB6C00", Slot = "23")]
public virtual byte[] EncryptValue(byte[] rgb)
{
return null;
}
/// Gets the name of the key exchange algorithm available with this implementation of .
/// Returns "RSA".
// Token: 0x170004BF RID: 1215
// (get) Token: 0x0600228F RID: 8847 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004BF")]
public override string KeyExchangeAlgorithm
{
[Token(Token = "0x600228F")]
[Address(RVA = "0x2DB7FA0", Offset = "0x2DB6DA0", VA = "0x182DB7FA0", Slot = "10")]
get
{
return null;
}
}
/// Gets the name of the signature algorithm available with this implementation of .
/// Returns "RSA".
// Token: 0x170004C0 RID: 1216
// (get) Token: 0x06002290 RID: 8848 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C0")]
public override string SignatureAlgorithm
{
[Token(Token = "0x6002290")]
[Address(RVA = "0x2DB7FD0", Offset = "0x2DB6DD0", VA = "0x182DB7FD0", Slot = "9")]
get
{
return null;
}
}
/// Initializes an object from the key information from an XML string.
/// The XML string containing key information.
/// The parameter is .
/// The format of the parameter is not valid.
/// .NET Core only: This member is not supported.
// Token: 0x06002291 RID: 8849 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002291")]
[Address(RVA = "0x2DB6CB0", Offset = "0x2DB5AB0", VA = "0x182DB6CB0", Slot = "11")]
public override void FromXmlString(string xmlString)
{
}
/// Creates and returns an XML string containing the key of the current object.
///
/// to include a public and private RSA key; to include only the public key.
/// An XML string containing the key of the current object.
/// .NET Core only: This member is not supported.
// Token: 0x06002292 RID: 8850 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002292")]
[Address(RVA = "0x2DB7810", Offset = "0x2DB6610", VA = "0x182DB7810", 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: 0x06002293 RID: 8851
[Token(Token = "0x6002293")]
[Address(Slot = "24")]
public abstract RSAParameters ExportParameters(bool includePrivateParameters);
/// When overridden in a derived class, imports the specified .
/// The parameters for .
// Token: 0x06002294 RID: 8852
[Token(Token = "0x6002294")]
[Address(Slot = "25")]
public abstract void ImportParameters(RSAParameters parameters);
}
}