Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

43 lines
2.6 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.SHA1" /> hash function.</summary>
// Token: 0x020003ED RID: 1005
[Token(Token = "0x20003ED")]
[ComVisible(true)]
public class HMACSHA1 : HMAC
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA1" /> class with a randomly generated key.</summary>
// Token: 0x060021D0 RID: 8656 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D0")]
[Address(RVA = "0x2DA89C0", Offset = "0x2DA77C0", VA = "0x182DA89C0")]
public HMACSHA1()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA1" /> class with the specified key data.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA1" /> encryption. The key can be any length, but if it is more than 64 bytes long it is hashed (using SHA-1) to derive a 64-byte key. Therefore, the recommended size of the secret key is 64 bytes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> parameter is <see langword="null" />.</exception>
// Token: 0x060021D1 RID: 8657 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D1")]
[Address(RVA = "0x2DA8910", Offset = "0x2DA7710", VA = "0x182DA8910")]
public HMACSHA1(byte[] key)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA1" /> class with the specified key data and a value that specifies whether to use the managed version of the SHA1 algorithm.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA1" /> encryption. The key can be any length, but if it is more than 64 bytes long, it is hashed (using SHA-1) to derive a 64-byte key. Therefore, the recommended size of the secret key is 64 bytes.</param>
/// <param name="useManagedSha1">
/// <see langword="true" /> to use the managed implementation of the SHA1 algorithm (the <see cref="T:System.Security.Cryptography.SHA1Managed" /> class); <see langword="false" /> to use the unmanaged implementation (the <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> class).</param>
// Token: 0x060021D2 RID: 8658 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D2")]
[Address(RVA = "0x2DA8910", Offset = "0x2DA7710", VA = "0x182DA8910")]
public HMACSHA1(byte[] key, bool useManagedSha1)
{
}
}
}