168 lines
6.0 KiB
C#
168 lines
6.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA512" /> hash algorithm for the input data using the managed library.</summary>
|
|
// Token: 0x0200042D RID: 1069
|
|
[Token(Token = "0x200042D")]
|
|
[ComVisible(true)]
|
|
public class SHA512Managed : SHA512
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA512Managed" /> class.</summary>
|
|
/// <exception cref="T:System.InvalidOperationException">The Federal Information Processing Standards (FIPS) security setting is enabled. This implementation is not part of the Windows Platform FIPS-validated cryptographic algorithms.</exception>
|
|
// Token: 0x0600252B RID: 9515 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600252B")]
|
|
[Address(RVA = "0x1033F60", Offset = "0x1032F60", VA = "0x181033F60")]
|
|
public SHA512Managed()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes an instance of the <see cref="T:System.Security.Cryptography.SHA512Managed" /> class using the managed library.</summary>
|
|
// Token: 0x0600252C RID: 9516 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600252C")]
|
|
[Address(RVA = "0x1033140", Offset = "0x1032140", VA = "0x181033140", Slot = "18")]
|
|
public override void Initialize()
|
|
{
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, routes data written to the object into the <see cref="T:System.Security.Cryptography.SHA512Managed" /> hash algorithm for computing the hash.</summary>
|
|
/// <param name="rgb">The input data.</param>
|
|
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
|
|
/// <param name="cbSize">The number of bytes in the array to use as data.</param>
|
|
// Token: 0x0600252D RID: 9517 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600252D")]
|
|
[Address(RVA = "0x1032F60", Offset = "0x1031F60", VA = "0x181032F60", Slot = "19")]
|
|
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
|
|
{
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.</summary>
|
|
/// <returns>The computed hash code.</returns>
|
|
// Token: 0x0600252E RID: 9518 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600252E")]
|
|
[Address(RVA = "0x1032F70", Offset = "0x1031F70", VA = "0x181032F70", Slot = "20")]
|
|
protected override byte[] HashFinal()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600252F RID: 9519 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600252F")]
|
|
[Address(RVA = "0x1032F80", Offset = "0x1031F80", VA = "0x181032F80")]
|
|
private void InitializeState()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002530 RID: 9520 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002530")]
|
|
[Address(RVA = "0x1033D00", Offset = "0x1032D00", VA = "0x181033D00")]
|
|
private void _HashData(byte[] partIn, int ibStart, int cbSize)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002531 RID: 9521 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002531")]
|
|
[Address(RVA = "0x1033AB0", Offset = "0x1032AB0", VA = "0x181033AB0")]
|
|
private byte[] _EndHash()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002532 RID: 9522 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002532")]
|
|
[Address(RVA = "0x1033240", Offset = "0x1032240", VA = "0x181033240")]
|
|
private unsafe static void SHATransform(ulong* expandedBuffer, ulong* state, byte* block)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002533 RID: 9523 RVA: 0x00017478 File Offset: 0x00015678
|
|
[Token(Token = "0x6002533")]
|
|
[Address(RVA = "0x1031DE0", Offset = "0x1030DE0", VA = "0x181031DE0")]
|
|
private static ulong RotateRight(ulong x, int n)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
// Token: 0x06002534 RID: 9524 RVA: 0x00017490 File Offset: 0x00015690
|
|
[Token(Token = "0x6002534")]
|
|
[Address(RVA = "0x1031B90", Offset = "0x1030B90", VA = "0x181031B90")]
|
|
private static ulong Ch(ulong x, ulong y, ulong z)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
// Token: 0x06002535 RID: 9525 RVA: 0x000174A8 File Offset: 0x000156A8
|
|
[Token(Token = "0x6002535")]
|
|
[Address(RVA = "0x1031DD0", Offset = "0x1030DD0", VA = "0x181031DD0")]
|
|
private static ulong Maj(ulong x, ulong y, ulong z)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
// Token: 0x06002536 RID: 9526 RVA: 0x000174C0 File Offset: 0x000156C0
|
|
[Token(Token = "0x6002536")]
|
|
[Address(RVA = "0x10339B0", Offset = "0x10329B0", VA = "0x1810339B0")]
|
|
private static ulong Sigma_0(ulong x)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
// Token: 0x06002537 RID: 9527 RVA: 0x000174D8 File Offset: 0x000156D8
|
|
[Token(Token = "0x6002537")]
|
|
[Address(RVA = "0x1033A30", Offset = "0x1032A30", VA = "0x181033A30")]
|
|
private static ulong Sigma_1(ulong x)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
// Token: 0x06002538 RID: 9528 RVA: 0x000174F0 File Offset: 0x000156F0
|
|
[Token(Token = "0x6002538")]
|
|
[Address(RVA = "0x1034040", Offset = "0x1033040", VA = "0x181034040")]
|
|
private static ulong sigma_0(ulong x)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
// Token: 0x06002539 RID: 9529 RVA: 0x00017508 File Offset: 0x00015708
|
|
[Token(Token = "0x6002539")]
|
|
[Address(RVA = "0x10340C0", Offset = "0x10330C0", VA = "0x1810340C0")]
|
|
private static ulong sigma_1(ulong x)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
// Token: 0x0600253A RID: 9530 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600253A")]
|
|
[Address(RVA = "0x1033190", Offset = "0x1032190", VA = "0x181033190")]
|
|
private unsafe static void SHA512Expand(ulong* x)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001496 RID: 5270
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4001496")]
|
|
private byte[] _buffer;
|
|
|
|
// Token: 0x04001497 RID: 5271
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4001497")]
|
|
private ulong _count;
|
|
|
|
// Token: 0x04001498 RID: 5272
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4001498")]
|
|
private ulong[] _stateSHA512;
|
|
|
|
// Token: 0x04001499 RID: 5273
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4001499")]
|
|
private ulong[] _W;
|
|
|
|
// Token: 0x0400149A RID: 5274
|
|
[Token(Token = "0x400149A")]
|
|
private static readonly ulong[] _K;
|
|
}
|
|
}
|