66 lines
1.9 KiB
C#
66 lines
1.9 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
|
{
|
|
// Token: 0x02001CEB RID: 7403
|
|
[Token(Token = "0x2001CEB")]
|
|
public class ParametersWithID : ICipherParameters
|
|
{
|
|
// Token: 0x0600B72E RID: 46894 RVA: 0x00279EF4 File Offset: 0x002780F4
|
|
[Token(Token = "0x600B72E")]
|
|
[Address(RVA = "0x22E2FE0", Offset = "0x22E1FE0", VA = "0x1822E2FE0")]
|
|
public ParametersWithID(ICipherParameters parameters, byte[] id)
|
|
{
|
|
int length = id.Length;
|
|
base..ctor();
|
|
this.parameters = parameters;
|
|
int num = 0;
|
|
byte[] array = Arrays.CopyOfRange(id, num, length);
|
|
this.id = array;
|
|
}
|
|
|
|
// Token: 0x0600B72F RID: 46895 RVA: 0x00279F30 File Offset: 0x00278130
|
|
[Token(Token = "0x600B72F")]
|
|
[Address(RVA = "0x22E2F40", Offset = "0x22E1F40", VA = "0x1822E2F40")]
|
|
public ParametersWithID(ICipherParameters parameters, byte[] id, int idOff, int idLen)
|
|
{
|
|
this.parameters = parameters;
|
|
byte[] array;
|
|
this.id = array;
|
|
}
|
|
|
|
// Token: 0x0600B730 RID: 46896 RVA: 0x00279F54 File Offset: 0x00278154
|
|
[Token(Token = "0x600B730")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
public byte[] GetID()
|
|
{
|
|
return this.id;
|
|
}
|
|
|
|
// Token: 0x17001CE6 RID: 7398
|
|
// (get) Token: 0x0600B731 RID: 46897 RVA: 0x00279F68 File Offset: 0x00278168
|
|
[Token(Token = "0x17001CE6")]
|
|
public ICipherParameters Parameters
|
|
{
|
|
[Token(Token = "0x600B731")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.parameters;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040073BD RID: 29629
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40073BD")]
|
|
private readonly ICipherParameters parameters;
|
|
|
|
// Token: 0x040073BE RID: 29630
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40073BE")]
|
|
private readonly byte[] id;
|
|
}
|
|
}
|