Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x0200040F RID: 1039
[Token(Token = "0x200040F")]
[ComVisible(true)]
public class MACTripleDES : KeyedHashAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MACTripleDES" /> class.</summary>
// Token: 0x060023F7 RID: 9207 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F7")]
[Address(RVA = "0xC0CE20", Offset = "0xC0BE20", VA = "0x180C0CE20")]
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: 0x060023F8 RID: 9208 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F8")]
[Address(RVA = "0xC0CC10", Offset = "0xC0BC10", VA = "0x180C0CC10")]
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: 0x060023F9 RID: 9209 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F9")]
[Address(RVA = "0xC0CC60", Offset = "0xC0BC60", VA = "0x180C0CC60")]
public MACTripleDES(string strTripleDES, byte[] rgbKey)
{
}
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.MACTripleDES" />.</summary>
// Token: 0x060023FA RID: 9210 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023FA")]
[Address(RVA = "0xC0CC00", Offset = "0xC0BC00", VA = "0x180C0CC00", 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: 0x17000520 RID: 1312
// (get) Token: 0x060023FB RID: 9211 RVA: 0x00016E78 File Offset: 0x00015078
// (set) Token: 0x060023FC RID: 9212 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000520")]
[ComVisible(false)]
public PaddingMode Padding
{
[Token(Token = "0x60023FB")]
[Address(RVA = "0xC0CF80", Offset = "0xC0BF80", VA = "0x180C0CF80")]
get
{
return (PaddingMode)0;
}
[Token(Token = "0x60023FC")]
[Address(RVA = "0xC0CFB0", Offset = "0xC0BFB0", VA = "0x180C0CFB0")]
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: 0x060023FD RID: 9213 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023FD")]
[Address(RVA = "0xC0C940", Offset = "0xC0B940", VA = "0x180C0C940", 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: 0x060023FE RID: 9214 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023FE")]
[Address(RVA = "0xC0CAB0", Offset = "0xC0BAB0", VA = "0x180C0CAB0", 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: 0x060023FF RID: 9215 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023FF")]
[Address(RVA = "0xC0C870", Offset = "0xC0B870", VA = "0x180C0C870", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x04001427 RID: 5159
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001427")]
private ICryptoTransform m_encryptor;
// Token: 0x04001428 RID: 5160
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001428")]
private CryptoStream _cs;
// Token: 0x04001429 RID: 5161
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001429")]
private TailStream _ts;
// Token: 0x0400142A RID: 5162
[Token(Token = "0x400142A")]
private const int m_bitsPerByte = 8;
// Token: 0x0400142B RID: 5163
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x400142B")]
private int m_bytesPerBlock;
// Token: 0x0400142C RID: 5164
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x400142C")]
private TripleDES des;
}
}