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

118 lines
5.1 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all implementations of keyed hash algorithms must derive.</summary>
// Token: 0x0200040E RID: 1038
[Token(Token = "0x200040E")]
[ComVisible(true)]
public abstract class KeyedHashAlgorithm : HashAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.KeyedHashAlgorithm" /> class.</summary>
// Token: 0x060023F1 RID: 9201 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F1")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected KeyedHashAlgorithm()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.KeyedHashAlgorithm" /> 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: 0x060023F2 RID: 9202 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F2")]
[Address(RVA = "0xC0C6C0", Offset = "0xC0B6C0", VA = "0x180C0C6C0", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
/// <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 was made to change the <see cref="P:System.Security.Cryptography.KeyedHashAlgorithm.Key" /> property after hashing has begun.</exception>
// Token: 0x1700051F RID: 1311
// (get) Token: 0x060023F3 RID: 9203 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060023F4 RID: 9204 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700051F")]
public virtual byte[] Key
{
[Token(Token = "0x60023F3")]
[Address(RVA = "0xC0C720", Offset = "0xC0B720", VA = "0x180C0C720", Slot = "21")]
get
{
return null;
}
[Token(Token = "0x60023F4")]
[Address(RVA = "0xC0C7A0", Offset = "0xC0B7A0", VA = "0x180C0C7A0", Slot = "22")]
set
{
}
}
/// <summary>Creates an instance of the default implementation of a keyed hash algorithm.</summary>
/// <returns>A new <see cref="T:System.Security.Cryptography.HMACSHA1" /> instance, unless the default settings have been changed.</returns>
// Token: 0x060023F5 RID: 9205 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023F5")]
[Address(RVA = "0xC0C5E0", Offset = "0xC0B5E0", VA = "0x180C0C5E0")]
public new static KeyedHashAlgorithm Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of a keyed hash algorithm.</summary>
/// <param name="algName">The keyed hash algorithm implementation to use. The following table shows the valid values for the <paramref name="algName" /> 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 keyed hash algorithm.</returns>
// Token: 0x060023F6 RID: 9206 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023F6")]
[Address(RVA = "0xC0C630", Offset = "0xC0B630", VA = "0x180C0C630")]
public new static KeyedHashAlgorithm Create(string algName)
{
return null;
}
/// <summary>The key to use in the hash algorithm.</summary>
// Token: 0x04001426 RID: 5158
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001426")]
protected byte[] KeyValue;
}
}