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: 0x02000420 RID: 1056
[Token(Token = "0x2000420")]
[ComVisible(true)]
public abstract class RSA : AsymmetricAlgorithm
{
/// Initializes a new instance of the class.
// Token: 0x06002488 RID: 9352 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002488")]
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
protected RSA()
{
}
/// Creates an instance of the default implementation of the algorithm.
/// A new instance of the default implementation of .
// Token: 0x06002489 RID: 9353 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002489")]
[Address(RVA = "0x1026CE0", Offset = "0x1025CE0", VA = "0x181026CE0")]
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: 0x0600248A RID: 9354 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600248A")]
[Address(RVA = "0x1026C50", Offset = "0x1025C50", VA = "0x181026C50")]
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: 0x0600248B RID: 9355 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600248B")]
[Address(RVA = "0x1026ED0", Offset = "0x1025ED0", VA = "0x181026ED0", 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: 0x0600248C RID: 9356 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600248C")]
[Address(RVA = "0x1026DB0", Offset = "0x1025DB0", VA = "0x181026DB0", 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: 0x0600248D RID: 9357 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600248D")]
[Address(RVA = "0x1027A40", Offset = "0x1026A40", VA = "0x181027A40", 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: 0x0600248E RID: 9358 RVA: 0x00017178 File Offset: 0x00015378
[Token(Token = "0x600248E")]
[Address(RVA = "0x10281F0", Offset = "0x10271F0", VA = "0x1810281F0", 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: 0x0600248F RID: 9359 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600248F")]
[Address(RVA = "0x10275E0", Offset = "0x10265E0", VA = "0x1810275E0", 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: 0x06002490 RID: 9360 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002490")]
[Address(RVA = "0x10275A0", Offset = "0x10265A0", VA = "0x1810275A0", 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: 0x06002491 RID: 9361 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002491")]
[Address(RVA = "0x1027620", Offset = "0x1026620", VA = "0x181027620")]
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: 0x06002492 RID: 9362 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002492")]
[Address(RVA = "0x10276E0", Offset = "0x10266E0", VA = "0x1810276E0", 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: 0x06002493 RID: 9363 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002493")]
[Address(RVA = "0x10278E0", Offset = "0x10268E0", VA = "0x1810278E0", 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: 0x06002494 RID: 9364 RVA: 0x00017190 File Offset: 0x00015390
[Token(Token = "0x6002494")]
[Address(RVA = "0x1027EF0", Offset = "0x1026EF0", VA = "0x181027EF0")]
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: 0x06002495 RID: 9365 RVA: 0x000171A8 File Offset: 0x000153A8
[Token(Token = "0x6002495")]
[Address(RVA = "0x1027FB0", Offset = "0x1026FB0", VA = "0x181027FB0", 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: 0x06002496 RID: 9366 RVA: 0x000171C0 File Offset: 0x000153C0
[Token(Token = "0x6002496")]
[Address(RVA = "0x1027D40", Offset = "0x1026D40", VA = "0x181027D40")]
public bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return default(bool);
}
// Token: 0x06002497 RID: 9367 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002497")]
[Address(RVA = "0x1026DF0", Offset = "0x1025DF0", VA = "0x181026DF0")]
private static Exception DerivedClassMustOverride()
{
return null;
}
// Token: 0x06002498 RID: 9368 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002498")]
[Address(RVA = "0x1027530", Offset = "0x1026530", VA = "0x181027530")]
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: 0x06002499 RID: 9369 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002499")]
[Address(RVA = "0x1026D40", Offset = "0x1025D40", VA = "0x181026D40", 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: 0x0600249A RID: 9370 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600249A")]
[Address(RVA = "0x1026E60", Offset = "0x1025E60", VA = "0x181026E60", 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: 0x17000536 RID: 1334
// (get) Token: 0x0600249B RID: 9371 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000536")]
public override string KeyExchangeAlgorithm
{
[Token(Token = "0x600249B")]
[Address(RVA = "0x1028230", Offset = "0x1027230", VA = "0x181028230", Slot = "10")]
get
{
return null;
}
}
/// Gets the name of the signature algorithm available with this implementation of .
/// Returns "RSA".
// Token: 0x17000537 RID: 1335
// (get) Token: 0x0600249C RID: 9372 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000537")]
public override string SignatureAlgorithm
{
[Token(Token = "0x600249C")]
[Address(RVA = "0x1028260", Offset = "0x1027260", VA = "0x181028260", 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: 0x0600249D RID: 9373 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600249D")]
[Address(RVA = "0x1026F10", Offset = "0x1025F10", VA = "0x181026F10", 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: 0x0600249E RID: 9374 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600249E")]
[Address(RVA = "0x1027A80", Offset = "0x1026A80", VA = "0x181027A80", 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: 0x0600249F RID: 9375
[Token(Token = "0x600249F")]
[Address(Slot = "24")]
public abstract RSAParameters ExportParameters(bool includePrivateParameters);
/// When overridden in a derived class, imports the specified .
/// The parameters for .
// Token: 0x060024A0 RID: 9376
[Token(Token = "0x60024A0")]
[Address(Slot = "25")]
public abstract void ImportParameters(RSAParameters parameters);
}
}