Files
Aug2021-Cpp2IL-Dump/Photon3Unity3D/ExitGames/Client/Photon/Encryption/EncryptorNet.cs
T
2026-04-10 22:50:51 +02:00

88 lines
2.8 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using Cpp2IlInjected;
namespace ExitGames.Client.Photon.Encryption
{
// Token: 0x0200004D RID: 77
[Token(Token = "0x200004D")]
public class EncryptorNet : IPhotonEncryptor
{
// Token: 0x0600035D RID: 861 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600035D")]
[Address(RVA = "0x521B00", Offset = "0x520900", VA = "0x180521B00", Slot = "4")]
public void Init(byte[] encryptionSecret, byte[] hmacSecret, [Optional] byte[] ivBytes, bool chainingModeGCM = false)
{
}
// Token: 0x0600035E RID: 862 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600035E")]
[Address(RVA = "0x5217B0", Offset = "0x5205B0", VA = "0x1805217B0", Slot = "5")]
public void Encrypt(byte[] data, int len, byte[] output, ref int offset, bool ivPrefix = true)
{
}
// Token: 0x0600035F RID: 863 RVA: 0x0000209A File Offset: 0x0000029A
[Token(Token = "0x600035F")]
[Address(RVA = "0x521420", Offset = "0x520220", VA = "0x180521420", Slot = "6")]
public byte[] Decrypt(byte[] data, int offset, int len, out int outLen, bool ivPrefix = true)
{
return null;
}
// Token: 0x06000360 RID: 864 RVA: 0x0000209A File Offset: 0x0000029A
[Token(Token = "0x6000360")]
[Address(RVA = "0x5213B0", Offset = "0x5201B0", VA = "0x1805213B0", Slot = "7")]
public byte[] CreateHMAC(byte[] data, int offset, int count)
{
return null;
}
// Token: 0x06000361 RID: 865 RVA: 0x00003A08 File Offset: 0x00001C08
[Token(Token = "0x6000361")]
[Address(RVA = "0x5210B0", Offset = "0x51FEB0", VA = "0x1805210B0", Slot = "8")]
public bool CheckHMAC(byte[] data, int len)
{
return default(bool);
}
// Token: 0x06000362 RID: 866 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000362")]
[Address(RVA = "0x521C10", Offset = "0x520A10", VA = "0x180521C10")]
public EncryptorNet()
{
}
// Token: 0x0400022F RID: 559
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400022F")]
protected Aes encryptorIn;
// Token: 0x04000230 RID: 560
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000230")]
protected Aes encryptorOut;
// Token: 0x04000231 RID: 561
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000231")]
protected HMACSHA256 hmacsha256In;
// Token: 0x04000232 RID: 562
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000232")]
protected HMACSHA256 hmacsha256Out;
// Token: 0x04000233 RID: 563
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000233")]
private readonly byte[] reusedIvBuffer;
// Token: 0x04000234 RID: 564
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000234")]
private readonly byte[] reusedReadBuffer;
}
}