60 lines
2.2 KiB
C#
60 lines
2.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Computes masks according to PKCS #1 for use by key exchange algorithms.</summary>
|
|
// Token: 0x02000414 RID: 1044
|
|
[Token(Token = "0x2000414")]
|
|
[ComVisible(true)]
|
|
public class PKCS1MaskGenerationMethod : MaskGenerationMethod
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PKCS1MaskGenerationMethod" /> class.</summary>
|
|
// Token: 0x06002429 RID: 9257 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002429")]
|
|
[Address(RVA = "0xC0F1D0", Offset = "0xC0E1D0", VA = "0x180C0F1D0")]
|
|
public PKCS1MaskGenerationMethod()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the name of the hash algorithm type to use for generating the mask.</summary>
|
|
/// <returns>The name of the type that implements the hash algorithm to use for computing the mask.</returns>
|
|
// Token: 0x1700052A RID: 1322
|
|
// (get) Token: 0x0600242A RID: 9258 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x0600242B RID: 9259 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700052A")]
|
|
public string HashName
|
|
{
|
|
[Token(Token = "0x600242A")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x600242B")]
|
|
[Address(RVA = "0xC0F210", Offset = "0xC0E210", VA = "0x180C0F210")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Generates and returns a mask from the specified random seed of the specified length.</summary>
|
|
/// <param name="rgbSeed">The random seed to use for computing the mask.</param>
|
|
/// <param name="cbReturn">The length of the generated mask in bytes.</param>
|
|
/// <returns>A randomly generated mask whose length is equal to the <paramref name="cbReturn" /> parameter.</returns>
|
|
// Token: 0x0600242C RID: 9260 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600242C")]
|
|
[Address(RVA = "0xC0F150", Offset = "0xC0E150", VA = "0x180C0F150", Slot = "4")]
|
|
public override byte[] GenerateMask(byte[] rgbSeed, int cbReturn)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0400143A RID: 5178
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400143A")]
|
|
private string HashNameValue;
|
|
}
|
|
}
|