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.SHA384" /> hash function.</summary>
|
|
// Token: 0x020003EF RID: 1007
|
|
[Token(Token = "0x20003EF")]
|
|
[ComVisible(true)]
|
|
public class HMACSHA384 : HMAC
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA384" /> class by using a randomly generated key.</summary>
|
|
// Token: 0x060021D5 RID: 8661 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021D5")]
|
|
[Address(RVA = "0x2DA8D40", Offset = "0x2DA7B40", VA = "0x182DA8D40")]
|
|
public HMACSHA384()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA384" /> class by using the specified key data.</summary>
|
|
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA384" /> 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-384) 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: 0x060021D6 RID: 8662 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021D6")]
|
|
[Address(RVA = "0x2DA8C50", Offset = "0x2DA7A50", VA = "0x182DA8C50")]
|
|
public HMACSHA384(byte[] key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x170004A0 RID: 1184
|
|
// (get) Token: 0x060021D7 RID: 8663 RVA: 0x00014A48 File Offset: 0x00012C48
|
|
[Token(Token = "0x170004A0")]
|
|
private int BlockSize
|
|
{
|
|
[Token(Token = "0x60021D7")]
|
|
[Address(RVA = "0x2DA8E80", Offset = "0x2DA7C80", VA = "0x182DA8E80")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Provides a workaround for the .NET Framework 2.0 implementation of the <see cref="T:System.Security.Cryptography.HMACSHA384" /> algorithm, which is inconsistent with the .NET Framework 2.0 Service Pack 1 implementation of the algorithm.</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: 0x170004A1 RID: 1185
|
|
// (get) Token: 0x060021D8 RID: 8664 RVA: 0x00014A60 File Offset: 0x00012C60
|
|
// (set) Token: 0x060021D9 RID: 8665 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170004A1")]
|
|
public bool ProduceLegacyHmacValues
|
|
{
|
|
[Token(Token = "0x60021D8")]
|
|
[Address(RVA = "0x75C260", Offset = "0x75B060", VA = "0x18075C260")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
[Token(Token = "0x60021D9")]
|
|
[Address(RVA = "0x2DA8EA0", Offset = "0x2DA7CA0", VA = "0x182DA8EA0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x04001361 RID: 4961
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4001361")]
|
|
private bool m_useLegacyBlockSize;
|
|
}
|
|
}
|