m
This commit is contained in:
+99
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers
|
||||
{
|
||||
// Token: 0x02001C97 RID: 7319
|
||||
[Token(Token = "0x2001C97")]
|
||||
public class PlainDsaEncoding : IDsaEncoding
|
||||
{
|
||||
// Token: 0x0600B531 RID: 46385 RVA: 0x00272CE0 File Offset: 0x00270EE0
|
||||
[Token(Token = "0x600B531")]
|
||||
[Address(RVA = "0x2362A90", Offset = "0x2361A90", VA = "0x182362A90", 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: 0x0600B532 RID: 46386 RVA: 0x00272D24 File Offset: 0x00270F24
|
||||
[Token(Token = "0x600B532")]
|
||||
[Address(RVA = "0x2362D70", Offset = "0x2361D70", VA = "0x182362D70", 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: 0x0600B533 RID: 46387 RVA: 0x00272D40 File Offset: 0x00270F40
|
||||
[Token(Token = "0x600B533")]
|
||||
[Address(RVA = "0x2362940", Offset = "0x2361940", VA = "0x182362940", Slot = "8")]
|
||||
protected virtual BigInteger CheckValue(BigInteger n, BigInteger x)
|
||||
{
|
||||
int num = x.CompareTo(n);
|
||||
return x;
|
||||
}
|
||||
|
||||
// Token: 0x0600B534 RID: 46388 RVA: 0x00272D5C File Offset: 0x00270F5C
|
||||
[Token(Token = "0x600B534")]
|
||||
[Address(RVA = "0x23629E0", Offset = "0x23619E0", VA = "0x1823629E0", Slot = "9")]
|
||||
protected virtual BigInteger DecodeValue(BigInteger n, byte[] buf, int off, int len)
|
||||
{
|
||||
BigInteger bigInteger;
|
||||
return bigInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600B535 RID: 46389 RVA: 0x00272D6C File Offset: 0x00270F6C
|
||||
[Token(Token = "0x600B535")]
|
||||
[Address(RVA = "0x2362C40", Offset = "0x2361C40", VA = "0x182362C40", 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: 0x0600B536 RID: 46390 RVA: 0x00272DA8 File Offset: 0x00270FA8
|
||||
[Token(Token = "0x600B536")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public PlainDsaEncoding()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B537 RID: 46391 RVA: 0x00272DBC File Offset: 0x00270FBC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600B537")]
|
||||
[Address(RVA = "0x2362E50", Offset = "0x2361E50", VA = "0x182362E50")]
|
||||
static PlainDsaEncoding()
|
||||
{
|
||||
PlainDsaEncoding plainDsaEncoding = new PlainDsaEncoding();
|
||||
}
|
||||
|
||||
// Token: 0x040072BD RID: 29373
|
||||
[Token(Token = "0x40072BD")]
|
||||
public static readonly PlainDsaEncoding Instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user