135 lines
6.2 KiB
C#
135 lines
6.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Computes a Message Authentication Code (MAC) using <see cref="T:System.Security.Cryptography.TripleDES" /> for the input data <see cref="T:System.Security.Cryptography.CryptoStream" />.</summary>
|
|
// Token: 0x020003F3 RID: 1011
|
|
[Token(Token = "0x20003F3")]
|
|
[ComVisible(true)]
|
|
public class MACTripleDES : KeyedHashAlgorithm
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MACTripleDES" /> class.</summary>
|
|
// Token: 0x060021EB RID: 8683 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021EB")]
|
|
[Address(RVA = "0x2DAB150", Offset = "0x2DA9F50", VA = "0x182DAB150")]
|
|
public MACTripleDES()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MACTripleDES" /> class with the specified key data.</summary>
|
|
/// <param name="rgbKey">The secret key for <see cref="T:System.Security.Cryptography.MACTripleDES" /> encryption.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbKey" /> parameter is <see langword="null" />.</exception>
|
|
// Token: 0x060021EC RID: 8684 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021EC")]
|
|
[Address(RVA = "0x2DAAF40", Offset = "0x2DA9D40", VA = "0x182DAAF40")]
|
|
public MACTripleDES(byte[] rgbKey)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MACTripleDES" /> class with the specified key data and using the specified implementation of <see cref="T:System.Security.Cryptography.TripleDES" />.</summary>
|
|
/// <param name="strTripleDES">The name of the <see cref="T:System.Security.Cryptography.TripleDES" /> implementation to use.</param>
|
|
/// <param name="rgbKey">The secret key for <see cref="T:System.Security.Cryptography.MACTripleDES" /> encryption.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbKey" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The <paramref name="strTripleDES" /> parameter is not a valid name of a <see cref="T:System.Security.Cryptography.TripleDES" /> implementation.</exception>
|
|
// Token: 0x060021ED RID: 8685 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021ED")]
|
|
[Address(RVA = "0x2DAAF90", Offset = "0x2DA9D90", VA = "0x182DAAF90")]
|
|
public MACTripleDES(string strTripleDES, byte[] rgbKey)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.MACTripleDES" />.</summary>
|
|
// Token: 0x060021EE RID: 8686 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021EE")]
|
|
[Address(RVA = "0x1208C20", Offset = "0x1207A20", VA = "0x181208C20", Slot = "18")]
|
|
public override void Initialize()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the padding mode used in the hashing algorithm.</summary>
|
|
/// <returns>The padding mode used in the hashing algorithm.</returns>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The property cannot be set because the padding mode is invalid.</exception>
|
|
// Token: 0x170004A9 RID: 1193
|
|
// (get) Token: 0x060021EF RID: 8687 RVA: 0x00014AA8 File Offset: 0x00012CA8
|
|
// (set) Token: 0x060021F0 RID: 8688 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170004A9")]
|
|
[ComVisible(false)]
|
|
public PaddingMode Padding
|
|
{
|
|
[Token(Token = "0x60021EF")]
|
|
[Address(RVA = "0x2DAB2B0", Offset = "0x2DAA0B0", VA = "0x182DAB2B0")]
|
|
get
|
|
{
|
|
return (PaddingMode)0;
|
|
}
|
|
[Token(Token = "0x60021F0")]
|
|
[Address(RVA = "0x2DAB2E0", Offset = "0x2DAA0E0", VA = "0x182DAB2E0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Routes data written to the object into the <see cref="T:System.Security.Cryptography.TripleDES" /> encryptor for computing the Message Authentication Code (MAC).</summary>
|
|
/// <param name="rgbData">The input data.</param>
|
|
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
|
|
/// <param name="cbSize">The number of bytes in the array to use as data.</param>
|
|
// Token: 0x060021F1 RID: 8689 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021F1")]
|
|
[Address(RVA = "0x2DAAC80", Offset = "0x2DA9A80", VA = "0x182DAAC80", Slot = "19")]
|
|
protected override void HashCore(byte[] rgbData, int ibStart, int cbSize)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns the computed Message Authentication Code (MAC) after all data is written to the object.</summary>
|
|
/// <returns>The computed MAC.</returns>
|
|
// Token: 0x060021F2 RID: 8690 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60021F2")]
|
|
[Address(RVA = "0x2DAADF0", Offset = "0x2DA9BF0", VA = "0x182DAADF0", Slot = "20")]
|
|
protected override byte[] HashFinal()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Releases the resources used by the <see cref="T:System.Security.Cryptography.MACTripleDES" /> instance.</summary>
|
|
/// <param name="disposing">
|
|
/// <see langword="true" /> if the method is called from an <see cref="M:System.IDisposable.Dispose" /> implementation; otherwise, <see langword="false" />.</param>
|
|
// Token: 0x060021F3 RID: 8691 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021F3")]
|
|
[Address(RVA = "0x2DAABB0", Offset = "0x2DA99B0", VA = "0x182DAABB0", Slot = "17")]
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001364 RID: 4964
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4001364")]
|
|
private ICryptoTransform m_encryptor;
|
|
|
|
// Token: 0x04001365 RID: 4965
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4001365")]
|
|
private CryptoStream _cs;
|
|
|
|
// Token: 0x04001366 RID: 4966
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4001366")]
|
|
private TailStream _ts;
|
|
|
|
// Token: 0x04001367 RID: 4967
|
|
[Token(Token = "0x4001367")]
|
|
private const int m_bitsPerByte = 8;
|
|
|
|
// Token: 0x04001368 RID: 4968
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4001368")]
|
|
private int m_bytesPerBlock;
|
|
|
|
// Token: 0x04001369 RID: 4969
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4001369")]
|
|
private TripleDES des;
|
|
}
|
|
}
|