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.SHA256" /> hash for the input data using the managed library.</summary>
|
|
// Token: 0x0200040D RID: 1037
|
|
[Token(Token = "0x200040D")]
|
|
[ComVisible(true)]
|
|
public class SHA256Managed : SHA256
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA256Managed" /> class using the managed library.</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: 0x060022F7 RID: 8951 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022F7")]
|
|
[Address(RVA = "0x2DFD310", Offset = "0x2DFC110", VA = "0x182DFD310")]
|
|
public SHA256Managed()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA256Managed" />.</summary>
|
|
// Token: 0x060022F8 RID: 8952 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022F8")]
|
|
[Address(RVA = "0x2DFC560", Offset = "0x2DFB360", VA = "0x182DFC560", 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.SHA256" /> 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: 0x060022F9 RID: 8953 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022F9")]
|
|
[Address(RVA = "0x2DFC3C0", Offset = "0x2DFB1C0", VA = "0x182DFC3C0", 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: 0x060022FA RID: 8954 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60022FA")]
|
|
[Address(RVA = "0x2DFC3D0", Offset = "0x2DFB1D0", VA = "0x182DFC3D0", Slot = "20")]
|
|
protected override byte[] HashFinal()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060022FB RID: 8955 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022FB")]
|
|
[Address(RVA = "0x2DFC3E0", Offset = "0x2DFB1E0", VA = "0x182DFC3E0")]
|
|
private void InitializeState()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060022FC RID: 8956 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022FC")]
|
|
[Address(RVA = "0x2DFD0C0", Offset = "0x2DFBEC0", VA = "0x182DFD0C0")]
|
|
private void _HashData(byte[] partIn, int ibStart, int cbSize)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060022FD RID: 8957 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60022FD")]
|
|
[Address(RVA = "0x2DFCE70", Offset = "0x2DFBC70", VA = "0x182DFCE70")]
|
|
private byte[] _EndHash()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060022FE RID: 8958 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022FE")]
|
|
[Address(RVA = "0x2DFC660", Offset = "0x2DFB460", VA = "0x182DFC660")]
|
|
private unsafe static void SHATransform(uint* expandedBuffer, uint* state, byte* block)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060022FF RID: 8959 RVA: 0x00014F58 File Offset: 0x00013158
|
|
[Token(Token = "0x60022FF")]
|
|
[Address(RVA = "0x1A607B0", Offset = "0x1A5F5B0", VA = "0x181A607B0")]
|
|
private static uint RotateRight(uint x, int n)
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
// Token: 0x06002300 RID: 8960 RVA: 0x00014F70 File Offset: 0x00013170
|
|
[Token(Token = "0x6002300")]
|
|
[Address(RVA = "0x1FDF250", Offset = "0x1FDE050", VA = "0x181FDF250")]
|
|
private static uint Ch(uint x, uint y, uint z)
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
// Token: 0x06002301 RID: 8961 RVA: 0x00014F88 File Offset: 0x00013188
|
|
[Token(Token = "0x6002301")]
|
|
[Address(RVA = "0x1FDF3D0", Offset = "0x1FDE1D0", VA = "0x181FDF3D0")]
|
|
private static uint Maj(uint x, uint y, uint z)
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
// Token: 0x06002302 RID: 8962 RVA: 0x00014FA0 File Offset: 0x000131A0
|
|
[Token(Token = "0x6002302")]
|
|
[Address(RVA = "0x2DFD3F0", Offset = "0x2DFC1F0", VA = "0x182DFD3F0")]
|
|
private static uint sigma_0(uint x)
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
// Token: 0x06002303 RID: 8963 RVA: 0x00014FB8 File Offset: 0x000131B8
|
|
[Token(Token = "0x6002303")]
|
|
[Address(RVA = "0x2DFD460", Offset = "0x2DFC260", VA = "0x182DFD460")]
|
|
private static uint sigma_1(uint x)
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
// Token: 0x06002304 RID: 8964 RVA: 0x00014FD0 File Offset: 0x000131D0
|
|
[Token(Token = "0x6002304")]
|
|
[Address(RVA = "0x2DFCD90", Offset = "0x2DFBB90", VA = "0x182DFCD90")]
|
|
private static uint Sigma_0(uint x)
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
// Token: 0x06002305 RID: 8965 RVA: 0x00014FE8 File Offset: 0x000131E8
|
|
[Token(Token = "0x6002305")]
|
|
[Address(RVA = "0x2DFCE00", Offset = "0x2DFBC00", VA = "0x182DFCE00")]
|
|
private static uint Sigma_1(uint x)
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
// Token: 0x06002306 RID: 8966 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002306")]
|
|
[Address(RVA = "0x2DFC5B0", Offset = "0x2DFB3B0", VA = "0x182DFC5B0")]
|
|
private unsafe static void SHA256Expand(uint* x)
|
|
{
|
|
}
|
|
|
|
// Token: 0x040013C9 RID: 5065
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40013C9")]
|
|
private byte[] _buffer;
|
|
|
|
// Token: 0x040013CA RID: 5066
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40013CA")]
|
|
private long _count;
|
|
|
|
// Token: 0x040013CB RID: 5067
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40013CB")]
|
|
private uint[] _stateSHA256;
|
|
|
|
// Token: 0x040013CC RID: 5068
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40013CC")]
|
|
private uint[] _W;
|
|
|
|
// Token: 0x040013CD RID: 5069
|
|
[Token(Token = "0x40013CD")]
|
|
private static readonly uint[] _K;
|
|
}
|
|
}
|