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

241 lines
9.7 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all implementations of Hash-based Message Authentication Code (HMAC) must derive.</summary>
// Token: 0x02000406 RID: 1030
[Token(Token = "0x2000406")]
[ComVisible(true)]
public abstract class HMAC : KeyedHashAlgorithm
{
/// <summary>Gets or sets the block size to use in the hash value.</summary>
/// <returns>The block size to use in the hash value.</returns>
// Token: 0x17000514 RID: 1300
// (get) Token: 0x060023C8 RID: 9160 RVA: 0x00016E00 File Offset: 0x00015000
// (set) Token: 0x060023C9 RID: 9161 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000514")]
protected int BlockSizeValue
{
[Token(Token = "0x60023C8")]
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0")]
get
{
return 0;
}
[Token(Token = "0x60023C9")]
[Address(RVA = "0x4258B0", Offset = "0x4248B0", VA = "0x1804258B0")]
set
{
}
}
// Token: 0x060023CA RID: 9162 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023CA")]
[Address(RVA = "0xC0B340", Offset = "0xC0A340", VA = "0x180C0B340")]
private void UpdateIOPadBuffers()
{
}
// Token: 0x060023CB RID: 9163 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023CB")]
[Address(RVA = "0xC0B220", Offset = "0xC0A220", VA = "0x180C0B220")]
internal void InitializeKey(byte[] key)
{
}
/// <summary>Gets or sets the key to use in the hash algorithm.</summary>
/// <returns>The key to use in the hash algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An attempt is made to change the <see cref="P:System.Security.Cryptography.HMAC.Key" /> property after hashing has begun.</exception>
// Token: 0x17000515 RID: 1301
// (get) Token: 0x060023CC RID: 9164 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060023CD RID: 9165 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000515")]
public override byte[] Key
{
[Token(Token = "0x60023CC")]
[Address(RVA = "0xC0B4E0", Offset = "0xC0A4E0", VA = "0x180C0B4E0", Slot = "21")]
get
{
return null;
}
[Token(Token = "0x60023CD")]
[Address(RVA = "0xC0B600", Offset = "0xC0A600", VA = "0x180C0B600", Slot = "22")]
set
{
}
}
/// <summary>Gets or sets the name of the hash algorithm to use for hashing.</summary>
/// <returns>The name of the hash algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The current hash algorithm cannot be changed.</exception>
// Token: 0x17000516 RID: 1302
// (get) Token: 0x060023CE RID: 9166 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060023CF RID: 9167 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000516")]
public string HashName
{
[Token(Token = "0x60023CE")]
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
get
{
return null;
}
[Token(Token = "0x60023CF")]
[Address(RVA = "0xC0B560", Offset = "0xC0A560", VA = "0x180C0B560")]
set
{
}
}
/// <summary>Creates an instance of the default implementation of a Hash-based Message Authentication Code (HMAC).</summary>
/// <returns>A new SHA-1 instance, unless the default settings have been changed by using the &lt;cryptoClass&gt; element.</returns>
// Token: 0x060023D0 RID: 9168 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023D0")]
[Address(RVA = "0xC0AE60", Offset = "0xC09E60", VA = "0x180C0AE60")]
public new static HMAC Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of a Hash-based Message Authentication Code (HMAC).</summary>
/// <param name="algorithmName">The HMAC implementation to use. The following table shows the valid values for the <paramref name="algorithmName" /> parameter and the algorithms they map to.
/// Parameter value
///
/// Implements
///
/// System.Security.Cryptography.HMAC
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> System.Security.Cryptography.KeyedHashAlgorithm
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> HMACMD5
///
/// <see cref="T:System.Security.Cryptography.HMACMD5" /> System.Security.Cryptography.HMACMD5
///
/// <see cref="T:System.Security.Cryptography.HMACMD5" /> HMACRIPEMD160
///
/// <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> System.Security.Cryptography.HMACRIPEMD160
///
/// <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> HMACSHA1
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> System.Security.Cryptography.HMACSHA1
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> HMACSHA256
///
/// <see cref="T:System.Security.Cryptography.HMACSHA256" /> System.Security.Cryptography.HMACSHA256
///
/// <see cref="T:System.Security.Cryptography.HMACSHA256" /> HMACSHA384
///
/// <see cref="T:System.Security.Cryptography.HMACSHA384" /> System.Security.Cryptography.HMACSHA384
///
/// <see cref="T:System.Security.Cryptography.HMACSHA384" /> HMACSHA512
///
/// <see cref="T:System.Security.Cryptography.HMACSHA512" /> System.Security.Cryptography.HMACSHA512
///
/// <see cref="T:System.Security.Cryptography.HMACSHA512" /> MACTripleDES
///
/// <see cref="T:System.Security.Cryptography.MACTripleDES" /> System.Security.Cryptography.MACTripleDES
///
/// <see cref="T:System.Security.Cryptography.MACTripleDES" /></param>
/// <returns>A new instance of the specified HMAC implementation.</returns>
// Token: 0x060023D1 RID: 9169 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023D1")]
[Address(RVA = "0xC0ADD0", Offset = "0xC09DD0", VA = "0x180C0ADD0")]
public new static HMAC Create(string algorithmName)
{
return null;
}
/// <summary>Initializes an instance of the default implementation of <see cref="T:System.Security.Cryptography.HMAC" />.</summary>
// Token: 0x060023D2 RID: 9170 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023D2")]
[Address(RVA = "0xC0B2F0", Offset = "0xC0A2F0", VA = "0x180C0B2F0", Slot = "18")]
public override void Initialize()
{
}
/// <summary>When overridden in a derived class, routes data written to the object into the default <see cref="T:System.Security.Cryptography.HMAC" /> hash algorithm for computing the hash value.</summary>
/// <param name="rgb">The input data.</param>
/// <param name="ib">The offset into the byte array from which to begin using data.</param>
/// <param name="cb">The number of bytes in the array to use as data.</param>
// Token: 0x060023D3 RID: 9171 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023D3")]
[Address(RVA = "0xC0AFF0", Offset = "0xC09FF0", VA = "0x180C0AFF0", Slot = "19")]
protected override void HashCore(byte[] rgb, int ib, int cb)
{
}
/// <summary>When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.</summary>
/// <returns>The computed hash code in a byte array.</returns>
// Token: 0x060023D4 RID: 9172 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023D4")]
[Address(RVA = "0xC0B0A0", Offset = "0xC0A0A0", VA = "0x180C0B0A0", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.HMAC" /> class when a key change is legitimate and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x060023D5 RID: 9173 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023D5")]
[Address(RVA = "0xC0AEB0", Offset = "0xC09EB0", VA = "0x180C0AEB0", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060023D6 RID: 9174 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023D6")]
[Address(RVA = "0xC0AF90", Offset = "0xC09F90", VA = "0x180C0AF90")]
internal static HashAlgorithm GetHashAlgorithmWithFipsFallback(Func<HashAlgorithm> createStandardHashAlgorithmCallback, Func<HashAlgorithm> createFipsHashAlgorithmCallback)
{
return null;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMAC" /> class.</summary>
// Token: 0x060023D7 RID: 9175 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023D7")]
[Address(RVA = "0xC0B4D0", Offset = "0xC0A4D0", VA = "0x180C0B4D0")]
protected HMAC()
{
}
// Token: 0x0400141D RID: 5149
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x400141D")]
private int blockSizeValue;
// Token: 0x0400141E RID: 5150
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x400141E")]
internal string m_hashName;
// Token: 0x0400141F RID: 5151
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x400141F")]
internal HashAlgorithm m_hash1;
// Token: 0x04001420 RID: 5152
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001420")]
internal HashAlgorithm m_hash2;
// Token: 0x04001421 RID: 5153
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4001421")]
private byte[] m_inner;
// Token: 0x04001422 RID: 5154
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4001422")]
private byte[] m_outer;
// Token: 0x04001423 RID: 5155
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4001423")]
private bool m_hashing;
}
}