This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,39 @@
using System;
using System.Runtime.InteropServices;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA1" /> hash for the input data.</summary>
// Token: 0x0200052A RID: 1322
[ComVisible(true)]
public abstract class SHA1 : HashAlgorithm
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA1" />.</summary>
/// <exception cref="T:System.InvalidOperationException">The policy on this object is not compliant with the FIPS algorithm.</exception>
// Token: 0x0600308A RID: 12426 RVA: 0x000A5E40 File Offset: 0x000A4040
protected SHA1()
{
this.HashSizeValue = 160;
}
/// <summary>Creates an instance of the default implementation of <see cref="T:System.Security.Cryptography.SHA1" />.</summary>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA1" />.</returns>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode" />
/// </PermissionSet>
// Token: 0x0600308B RID: 12427 RVA: 0x000A5E54 File Offset: 0x000A4054
public new static SHA1 Create()
{
return SHA1.Create("System.Security.Cryptography.SHA1");
}
/// <summary>Creates an instance of the specified implementation of <see cref="T:System.Security.Cryptography.SHA1" />.</summary>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA1" /> using the specified implementation.</returns>
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA1" /> to be used. </param>
// Token: 0x0600308C RID: 12428 RVA: 0x000A5E60 File Offset: 0x000A4060
public new static SHA1 Create(string hashName)
{
return (SHA1)CryptoConfig.CreateFromName(hashName);
}
}
}