72 lines
3.0 KiB
C#
72 lines
3.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Computes a Hash-based Message Authentication Code (HMAC) using the <see cref="T:System.Security.Cryptography.SHA512" /> hash function.</summary>
|
|
// Token: 0x0200040C RID: 1036
|
|
[Token(Token = "0x200040C")]
|
|
[ComVisible(true)]
|
|
public class HMACSHA512 : HMAC
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA512" /> class with a randomly generated key.</summary>
|
|
// Token: 0x060023E6 RID: 9190 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023E6")]
|
|
[Address(RVA = "0xC0AC90", Offset = "0xC09C90", VA = "0x180C0AC90")]
|
|
public HMACSHA512()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA512" /> class with the specified key data.</summary>
|
|
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA512" /> encryption. The key can be any length. However, the recommended size is 128 bytes. If the key is more than 128 bytes long, it is hashed (using SHA-512) to derive a 128-byte key. If it is less than 128 bytes long, it is padded to 128 bytes.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> parameter is <see langword="null" />.</exception>
|
|
// Token: 0x060023E7 RID: 9191 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023E7")]
|
|
[Address(RVA = "0xC0ABA0", Offset = "0xC09BA0", VA = "0x180C0ABA0")]
|
|
public HMACSHA512(byte[] key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000519 RID: 1305
|
|
// (get) Token: 0x060023E8 RID: 9192 RVA: 0x00016E48 File Offset: 0x00015048
|
|
[Token(Token = "0x17000519")]
|
|
private int BlockSize
|
|
{
|
|
[Token(Token = "0x60023E8")]
|
|
[Address(RVA = "0xC0AB60", Offset = "0xC09B60", VA = "0x180C0AB60")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Provides a workaround for the .NET Framework 2.0 implementation of the <see cref="T:System.Security.Cryptography.HMACSHA512" /> algorithm, which is inconsistent with the .NET Framework 2.0 Service Pack 1 implementation.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> to enable .NET Framework 2.0 Service Pack 1 applications to interact with .NET Framework 2.0 applications; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x1700051A RID: 1306
|
|
// (get) Token: 0x060023E9 RID: 9193 RVA: 0x00016E60 File Offset: 0x00015060
|
|
// (set) Token: 0x060023EA RID: 9194 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700051A")]
|
|
public bool ProduceLegacyHmacValues
|
|
{
|
|
[Token(Token = "0x60023E9")]
|
|
[Address(RVA = "0x4B4FC0", Offset = "0x4B3FC0", VA = "0x1804B4FC0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
[Token(Token = "0x60023EA")]
|
|
[Address(RVA = "0xC0AB80", Offset = "0xC09B80", VA = "0x180C0AB80")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x04001425 RID: 5157
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4001425")]
|
|
private bool m_useLegacyBlockSize;
|
|
}
|
|
}
|