using System; using System.Runtime.InteropServices; namespace System.Security.Cryptography { /// Computes the hash for the input data using the managed library. // Token: 0x0200052D RID: 1325 [ComVisible(true)] public class SHA1Managed : SHA1 { /// Initializes a new instance of the class. /// This class is not compliant with the FIPS algorithm. // Token: 0x0600309C RID: 12444 RVA: 0x000A6A6C File Offset: 0x000A4C6C public SHA1Managed() { this.sha = new SHA1Internal(); } /// Routes data written to the object into the hash algorithm for computing the hash. /// The input data. /// The offset into the byte array from which to begin using data. /// The number of bytes in the array to use as data. // Token: 0x0600309D RID: 12445 RVA: 0x000A6A80 File Offset: 0x000A4C80 protected override void HashCore(byte[] rgb, int ibStart, int cbSize) { this.State = 1; this.sha.HashCore(rgb, ibStart, cbSize); } /// Returns the computed hash value after all data has been written to the object. /// The computed hash code. // Token: 0x0600309E RID: 12446 RVA: 0x000A6A98 File Offset: 0x000A4C98 protected override byte[] HashFinal() { this.State = 0; return this.sha.HashFinal(); } /// Initializes an instance of . // Token: 0x0600309F RID: 12447 RVA: 0x000A6AAC File Offset: 0x000A4CAC public override void Initialize() { this.sha.Initialize(); } // Token: 0x040013CF RID: 5071 private SHA1Internal sha; } }