scripts
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA1" /> hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited. </summary>
|
||||
// Token: 0x0200052C RID: 1324
|
||||
[ComVisible(true)]
|
||||
public sealed class SHA1CryptoServiceProvider : SHA1
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> class.</summary>
|
||||
// Token: 0x06003096 RID: 12438 RVA: 0x000A69D4 File Offset: 0x000A4BD4
|
||||
public SHA1CryptoServiceProvider()
|
||||
{
|
||||
this.sha = new SHA1Internal();
|
||||
}
|
||||
|
||||
// Token: 0x06003097 RID: 12439 RVA: 0x000A69E8 File Offset: 0x000A4BE8
|
||||
~SHA1CryptoServiceProvider()
|
||||
{
|
||||
this.Dispose(false);
|
||||
}
|
||||
|
||||
// Token: 0x06003098 RID: 12440 RVA: 0x000A6A24 File Offset: 0x000A4C24
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x06003099 RID: 12441 RVA: 0x000A6A30 File Offset: 0x000A4C30
|
||||
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
|
||||
{
|
||||
this.State = 1;
|
||||
this.sha.HashCore(rgb, ibStart, cbSize);
|
||||
}
|
||||
|
||||
// Token: 0x0600309A RID: 12442 RVA: 0x000A6A48 File Offset: 0x000A4C48
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
this.State = 0;
|
||||
return this.sha.HashFinal();
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" />.</summary>
|
||||
/// <PermissionSet>
|
||||
/// <IPermission class="System.Security.Permissions.KeyContainerPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
|
||||
/// </PermissionSet>
|
||||
// Token: 0x0600309B RID: 12443 RVA: 0x000A6A5C File Offset: 0x000A4C5C
|
||||
public override void Initialize()
|
||||
{
|
||||
this.sha.Initialize();
|
||||
}
|
||||
|
||||
// Token: 0x040013CE RID: 5070
|
||||
private SHA1Internal sha;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user