96 lines
2.9 KiB
C#
96 lines
2.9 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers
|
|
{
|
|
// Token: 0x02001BBC RID: 7100
|
|
[Token(Token = "0x2001BBC")]
|
|
public class StandardDsaEncoding : IDsaEncoding
|
|
{
|
|
// Token: 0x0600B1A1 RID: 45473 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600B1A1")]
|
|
[Address(RVA = "0x18A4300", Offset = "0x18A3100", VA = "0x1818A4300", Slot = "6")]
|
|
public virtual BigInteger[] Decode(BigInteger n, byte[] encoding)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600B1A2 RID: 45474 RVA: 0x0026AD48 File Offset: 0x00268F48
|
|
[Token(Token = "0x600B1A2")]
|
|
[Address(RVA = "0x18A45E0", Offset = "0x18A33E0", VA = "0x1818A45E0", Slot = "7")]
|
|
public virtual byte[] Encode(BigInteger n, BigInteger r, BigInteger s)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
BigInteger bigInteger;
|
|
if (bigInteger != 0)
|
|
{
|
|
}
|
|
array[0] = bigInteger;
|
|
BigInteger bigInteger2;
|
|
if (bigInteger2 != 0)
|
|
{
|
|
}
|
|
array[1] = bigInteger2;
|
|
return new DerSequence(array).GetEncoded("DER");
|
|
}
|
|
|
|
// Token: 0x0600B1A3 RID: 45475 RVA: 0x0026AD8C File Offset: 0x00268F8C
|
|
[Token(Token = "0x600B1A3")]
|
|
[Address(RVA = "0x18A4140", Offset = "0x18A2F40", VA = "0x1818A4140", Slot = "8")]
|
|
protected virtual BigInteger CheckValue(BigInteger n, BigInteger x)
|
|
{
|
|
if (n != 0)
|
|
{
|
|
int num = x.CompareTo(n);
|
|
}
|
|
return x;
|
|
}
|
|
|
|
// Token: 0x0600B1A4 RID: 45476 RVA: 0x0026ADAC File Offset: 0x00268FAC
|
|
[Token(Token = "0x600B1A4")]
|
|
[Address(RVA = "0x18A41E0", Offset = "0x18A2FE0", VA = "0x1818A41E0", Slot = "9")]
|
|
protected virtual BigInteger DecodeValue(BigInteger n, Asn1Sequence s, int pos)
|
|
{
|
|
Asn1SequenceParser parser;
|
|
do
|
|
{
|
|
parser = s.Parser;
|
|
}
|
|
while (parser == 0 || parser == 0);
|
|
BigInteger bigInteger;
|
|
return bigInteger;
|
|
}
|
|
|
|
// Token: 0x0600B1A5 RID: 45477 RVA: 0x0026ADD4 File Offset: 0x00268FD4
|
|
[Token(Token = "0x600B1A5")]
|
|
[Address(RVA = "0x18A4560", Offset = "0x18A3360", VA = "0x1818A4560", Slot = "10")]
|
|
protected virtual DerInteger EncodeValue(BigInteger n, BigInteger x)
|
|
{
|
|
DerInteger derInteger;
|
|
return derInteger;
|
|
}
|
|
|
|
// Token: 0x0600B1A6 RID: 45478 RVA: 0x0026ADE4 File Offset: 0x00268FE4
|
|
[Token(Token = "0x600B1A6")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public StandardDsaEncoding()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600B1A7 RID: 45479 RVA: 0x0026ADF8 File Offset: 0x00268FF8
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600B1A7")]
|
|
[Address(RVA = "0x18A4770", Offset = "0x18A3570", VA = "0x1818A4770")]
|
|
static StandardDsaEncoding()
|
|
{
|
|
StandardDsaEncoding standardDsaEncoding = new StandardDsaEncoding();
|
|
}
|
|
|
|
// Token: 0x04007122 RID: 28962
|
|
[Token(Token = "0x4007122")]
|
|
public static readonly StandardDsaEncoding Instance;
|
|
}
|
|
}
|