Files
2026-04-08 23:40:05 +02:00

102 lines
3.1 KiB
C#

using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers
{
// Token: 0x020015DA RID: 5594
[Token(Token = "0x20015DA")]
[StructLayout(3)]
public class PlainDsaEncoding : IDsaEncoding
{
// Token: 0x06009589 RID: 38281 RVA: 0x002124B0 File Offset: 0x002106B0
[Token(Token = "0x6009589")]
[Address(RVA = "0x1E47390", Offset = "0x1E45D90", VA = "0x181E47390", Slot = "6")]
public virtual BigInteger[] Decode(BigInteger n, byte[] encoding)
{
do
{
int unsignedByteLength = BigIntegers.GetUnsignedByteLength(n);
}
while (encoding.Length != n);
BigInteger[] array = new BigInteger[2];
BigInteger bigInteger;
if (bigInteger != 0)
{
}
array[0] = bigInteger;
BigInteger bigInteger2;
if (bigInteger2 != 0)
{
}
array[1] = bigInteger2;
return array;
}
// Token: 0x0600958A RID: 38282 RVA: 0x002124F4 File Offset: 0x002106F4
[Token(Token = "0x600958A")]
[Address(RVA = "0x1E47670", Offset = "0x1E46070", VA = "0x181E47670", Slot = "7")]
public virtual byte[] Encode(BigInteger n, BigInteger r, BigInteger s)
{
int num = 0;
int unsignedByteLength = BigIntegers.GetUnsignedByteLength(n);
return new byte[num];
}
// Token: 0x0600958B RID: 38283 RVA: 0x00212510 File Offset: 0x00210710
[Token(Token = "0x600958B")]
[Address(RVA = "0x1E47240", Offset = "0x1E45C40", VA = "0x181E47240", Slot = "8")]
protected virtual BigInteger CheckValue(BigInteger n, BigInteger x)
{
int num = x.CompareTo(n);
return x;
}
// Token: 0x0600958C RID: 38284 RVA: 0x0021252C File Offset: 0x0021072C
[Token(Token = "0x600958C")]
[Address(RVA = "0x1E472E0", Offset = "0x1E45CE0", VA = "0x181E472E0", Slot = "9")]
protected virtual BigInteger DecodeValue(BigInteger n, byte[] buf, int off, int len)
{
BigInteger bigInteger;
return bigInteger;
}
// Token: 0x0600958D RID: 38285 RVA: 0x0021253C File Offset: 0x0021073C
[Token(Token = "0x600958D")]
[Address(RVA = "0x1E47540", Offset = "0x1E45F40", VA = "0x181E47540", Slot = "10")]
protected virtual void EncodeValue(BigInteger n, BigInteger x, byte[] buf, int off, int len)
{
byte[] array;
int length = array.Length;
int num = Math.Max(0, length);
int num2 = array.Length;
num2 -= num;
ulong num3;
ulong num4;
Array.Copy(array, num, buf, (int)num3, (int)num4);
}
// Token: 0x0600958E RID: 38286 RVA: 0x00212578 File Offset: 0x00210778
[Token(Token = "0x600958E")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public PlainDsaEncoding()
{
}
// Token: 0x0600958F RID: 38287 RVA: 0x0021258C File Offset: 0x0021078C
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600958F")]
[Address(RVA = "0x1E47750", Offset = "0x1E46150", VA = "0x181E47750")]
static PlainDsaEncoding()
{
PlainDsaEncoding plainDsaEncoding = new PlainDsaEncoding();
}
// Token: 0x040062C1 RID: 25281
[Token(Token = "0x40062C1")]
public static readonly PlainDsaEncoding Instance;
}
}