Files
2026-04-10 22:50:51 +02:00

159 lines
4.4 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs
{
// Token: 0x02001C4B RID: 7243
[Token(Token = "0x2001C4B")]
internal class MacCFBBlockCipher : IBlockCipher
{
// Token: 0x0600B534 RID: 46388 RVA: 0x00278F90 File Offset: 0x00277190
[Token(Token = "0x600B534")]
[Address(RVA = "0x1C2BE40", Offset = "0x1C2AC40", VA = "0x181C2BE40")]
public MacCFBBlockCipher(IBlockCipher cipher, int bitBlockSize)
{
this.cipher = cipher;
this.blockSize = bitBlockSize;
byte[] array = new byte[bitBlockSize];
this.IV = array;
byte[] array2 = new byte[array];
this.cfbV = array2;
byte[] array3 = new byte[array2];
this.cfbOutV = array3;
}
// Token: 0x0600B535 RID: 46389 RVA: 0x00278FE4 File Offset: 0x002771E4
[Token(Token = "0x600B535")]
[Address(RVA = "0x1C2BA10", Offset = "0x1C2A810", VA = "0x181C2BA10", Slot = "5")]
public void Init(bool forEncryption, ICipherParameters parameters)
{
while (parameters != 0 && parameters != 0)
{
if (parameters != 0)
{
byte[] iv = this.IV;
byte[] array;
int length = array.Length;
int num = iv.Length;
num = length;
num -= length;
int num2 = 0;
Array.Copy(array, num2, iv, num, num);
break;
}
}
byte[] iv2 = this.IV;
byte[] array2 = this.cfbV;
IBlockCipher blockCipher = this.cipher;
IBlockCipher blockCipher2 = this.cipher;
}
// Token: 0x17001C8B RID: 7307
// (get) Token: 0x0600B536 RID: 46390 RVA: 0x0027905C File Offset: 0x0027725C
[Token(Token = "0x17001C8B")]
public string AlgorithmName
{
[Token(Token = "0x600B536")]
[Address(RVA = "0x1C2BF20", Offset = "0x1C2AD20", VA = "0x181C2BF20", Slot = "4")]
get
{
IBlockCipher blockCipher = this.cipher;
int num = this.blockSize;
string text;
return text;
}
}
// Token: 0x17001C8C RID: 7308
// (get) Token: 0x0600B537 RID: 46391 RVA: 0x00279080 File Offset: 0x00277280
[Token(Token = "0x17001C8C")]
public bool IsPartialBlockOkay
{
[Token(Token = "0x600B537")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")]
get
{
return true;
}
}
// Token: 0x0600B538 RID: 46392 RVA: 0x00279090 File Offset: 0x00277290
[Token(Token = "0x600B538")]
[Address(RVA = "0x42EE50", Offset = "0x42DC50", VA = "0x18042EE50", Slot = "6")]
public int GetBlockSize()
{
return this.blockSize;
}
// Token: 0x0600B539 RID: 46393 RVA: 0x002790A4 File Offset: 0x002772A4
[Token(Token = "0x600B539")]
[Address(RVA = "0x1C2BBB0", Offset = "0x1C2A9B0", VA = "0x181C2BBB0", Slot = "8")]
public int ProcessBlock(byte[] input, int inOff, byte[] outBytes, int outOff)
{
IBlockCipher blockCipher = this.cipher;
byte[] array = this.cfbOutV;
byte[] array2 = this.cfbV;
int num = this.blockSize;
if (num > 0)
{
byte[] array3 = this.cfbOutV;
int num2 = this.blockSize;
}
byte[] array4 = this.cfbV;
int num3 = array4.Length;
int num4 = 0;
num3 -= num;
Array.Copy(array4, num, array4, num4, num3);
byte[] array5 = this.cfbV;
int num5 = this.blockSize;
int num6 = array5.Length;
num6 -= num5;
return this.blockSize;
}
// Token: 0x0600B53A RID: 46394 RVA: 0x0027913C File Offset: 0x0027733C
[Token(Token = "0x600B53A")]
[Address(RVA = "0x1C2BDD0", Offset = "0x1C2ABD0", VA = "0x181C2BDD0", Slot = "9")]
public void Reset()
{
byte[] iv = this.IV;
byte[] array = this.cfbV;
IBlockCipher blockCipher = this.cipher;
throw new NullReferenceException();
}
// Token: 0x0600B53B RID: 46395 RVA: 0x00279168 File Offset: 0x00277368
[Token(Token = "0x600B53B")]
[Address(RVA = "0x1C2B9A0", Offset = "0x1C2A7A0", VA = "0x181C2B9A0")]
public void GetMacBlock(byte[] mac)
{
IBlockCipher blockCipher = this.cipher;
}
// Token: 0x040072F5 RID: 29429
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40072F5")]
private byte[] IV;
// Token: 0x040072F6 RID: 29430
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40072F6")]
private byte[] cfbV;
// Token: 0x040072F7 RID: 29431
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40072F7")]
private byte[] cfbOutV;
// Token: 0x040072F8 RID: 29432
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40072F8")]
private readonly int blockSize;
// Token: 0x040072F9 RID: 29433
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40072F9")]
private readonly IBlockCipher cipher;
}
}