100 lines
3.1 KiB
C#
100 lines
3.1 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers
|
|
{
|
|
// Token: 0x02001BB7 RID: 7095
|
|
[Token(Token = "0x2001BB7")]
|
|
public class PlainDsaEncoding : IDsaEncoding
|
|
{
|
|
// Token: 0x0600B163 RID: 45411 RVA: 0x00269B1C File Offset: 0x00267D1C
|
|
[Token(Token = "0x600B163")]
|
|
[Address(RVA = "0x189EC90", Offset = "0x189DA90", VA = "0x18189EC90", 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: 0x0600B164 RID: 45412 RVA: 0x00269B60 File Offset: 0x00267D60
|
|
[Token(Token = "0x600B164")]
|
|
[Address(RVA = "0x189EF70", Offset = "0x189DD70", VA = "0x18189EF70", 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: 0x0600B165 RID: 45413 RVA: 0x00269B7C File Offset: 0x00267D7C
|
|
[Token(Token = "0x600B165")]
|
|
[Address(RVA = "0x189EB40", Offset = "0x189D940", VA = "0x18189EB40", Slot = "8")]
|
|
protected virtual BigInteger CheckValue(BigInteger n, BigInteger x)
|
|
{
|
|
int num = x.CompareTo(n);
|
|
return x;
|
|
}
|
|
|
|
// Token: 0x0600B166 RID: 45414 RVA: 0x00269B98 File Offset: 0x00267D98
|
|
[Token(Token = "0x600B166")]
|
|
[Address(RVA = "0x189EBE0", Offset = "0x189D9E0", VA = "0x18189EBE0", Slot = "9")]
|
|
protected virtual BigInteger DecodeValue(BigInteger n, byte[] buf, int off, int len)
|
|
{
|
|
BigInteger bigInteger;
|
|
return bigInteger;
|
|
}
|
|
|
|
// Token: 0x0600B167 RID: 45415 RVA: 0x00269BA8 File Offset: 0x00267DA8
|
|
[Token(Token = "0x600B167")]
|
|
[Address(RVA = "0x189EE40", Offset = "0x189DC40", VA = "0x18189EE40", 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: 0x0600B168 RID: 45416 RVA: 0x00269BE4 File Offset: 0x00267DE4
|
|
[Token(Token = "0x600B168")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public PlainDsaEncoding()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600B169 RID: 45417 RVA: 0x00269BF8 File Offset: 0x00267DF8
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600B169")]
|
|
[Address(RVA = "0x189F050", Offset = "0x189DE50", VA = "0x18189F050")]
|
|
static PlainDsaEncoding()
|
|
{
|
|
PlainDsaEncoding plainDsaEncoding = new PlainDsaEncoding();
|
|
}
|
|
|
|
// Token: 0x04007104 RID: 28932
|
|
[Token(Token = "0x4007104")]
|
|
public static readonly PlainDsaEncoding Instance;
|
|
}
|
|
}
|