241 lines
9.7 KiB
C#
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: 0x020003EA RID: 1002
|
|
[Token(Token = "0x20003EA")]
|
|
[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: 0x1700049D RID: 1181
|
|
// (get) Token: 0x060021BC RID: 8636 RVA: 0x00014A30 File Offset: 0x00012C30
|
|
// (set) Token: 0x060021BD RID: 8637 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700049D")]
|
|
protected int BlockSizeValue
|
|
{
|
|
[Token(Token = "0x60021BC")]
|
|
[Address(RVA = "0x4730E0", Offset = "0x471EE0", VA = "0x1804730E0")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x60021BD")]
|
|
[Address(RVA = "0x6CBD90", Offset = "0x6CAB90", VA = "0x1806CBD90")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x060021BE RID: 8638 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021BE")]
|
|
[Address(RVA = "0x2DA9700", Offset = "0x2DA8500", VA = "0x182DA9700")]
|
|
private void UpdateIOPadBuffers()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060021BF RID: 8639 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021BF")]
|
|
[Address(RVA = "0x2DA95E0", Offset = "0x2DA83E0", VA = "0x182DA95E0")]
|
|
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: 0x1700049E RID: 1182
|
|
// (get) Token: 0x060021C0 RID: 8640 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060021C1 RID: 8641 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700049E")]
|
|
public override byte[] Key
|
|
{
|
|
[Token(Token = "0x60021C0")]
|
|
[Address(RVA = "0x2DA98A0", Offset = "0x2DA86A0", VA = "0x182DA98A0", Slot = "21")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60021C1")]
|
|
[Address(RVA = "0x2DA99C0", Offset = "0x2DA87C0", VA = "0x182DA99C0", 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: 0x1700049F RID: 1183
|
|
// (get) Token: 0x060021C2 RID: 8642 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060021C3 RID: 8643 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700049F")]
|
|
public string HashName
|
|
{
|
|
[Token(Token = "0x60021C2")]
|
|
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60021C3")]
|
|
[Address(RVA = "0x2DA9920", Offset = "0x2DA8720", VA = "0x182DA9920")]
|
|
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 <cryptoClass> element.</returns>
|
|
// Token: 0x060021C4 RID: 8644 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60021C4")]
|
|
[Address(RVA = "0x2DA9180", Offset = "0x2DA7F80", VA = "0x182DA9180")]
|
|
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: 0x060021C5 RID: 8645 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60021C5")]
|
|
[Address(RVA = "0x2DA90F0", Offset = "0x2DA7EF0", VA = "0x182DA90F0")]
|
|
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: 0x060021C6 RID: 8646 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021C6")]
|
|
[Address(RVA = "0x2DA96B0", Offset = "0x2DA84B0", VA = "0x182DA96B0", 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: 0x060021C7 RID: 8647 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021C7")]
|
|
[Address(RVA = "0x2DA93B0", Offset = "0x2DA81B0", VA = "0x182DA93B0", 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: 0x060021C8 RID: 8648 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60021C8")]
|
|
[Address(RVA = "0x2DA9460", Offset = "0x2DA8260", VA = "0x182DA9460", 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: 0x060021C9 RID: 8649 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021C9")]
|
|
[Address(RVA = "0x2DA91D0", Offset = "0x2DA7FD0", VA = "0x182DA91D0", Slot = "17")]
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060021CA RID: 8650 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60021CA")]
|
|
[Address(RVA = "0x2DA92B0", Offset = "0x2DA80B0", VA = "0x182DA92B0")]
|
|
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: 0x060021CB RID: 8651 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021CB")]
|
|
[Address(RVA = "0x2DA9890", Offset = "0x2DA8690", VA = "0x182DA9890")]
|
|
protected HMAC()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400135A RID: 4954
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400135A")]
|
|
private int blockSizeValue;
|
|
|
|
// Token: 0x0400135B RID: 4955
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400135B")]
|
|
internal string m_hashName;
|
|
|
|
// Token: 0x0400135C RID: 4956
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400135C")]
|
|
internal HashAlgorithm m_hash1;
|
|
|
|
// Token: 0x0400135D RID: 4957
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400135D")]
|
|
internal HashAlgorithm m_hash2;
|
|
|
|
// Token: 0x0400135E RID: 4958
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400135E")]
|
|
private byte[] m_inner;
|
|
|
|
// Token: 0x0400135F RID: 4959
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400135F")]
|
|
private byte[] m_outer;
|
|
|
|
// Token: 0x04001360 RID: 4960
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4001360")]
|
|
private bool m_hashing;
|
|
}
|
|
}
|