161 lines
6.7 KiB
C#
161 lines
6.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
|
{
|
|
// Token: 0x020018B3 RID: 6323
|
|
[Token(Token = "0x20018B3")]
|
|
[StructLayout(3)]
|
|
public class MacData : Asn1Encodable
|
|
{
|
|
// Token: 0x0600A9D5 RID: 43477 RVA: 0x00279B88 File Offset: 0x00277D88
|
|
[Token(Token = "0x600A9D5")]
|
|
[Address(RVA = "0x27CFCD0", Offset = "0x27CE6D0", VA = "0x1827CFCD0")]
|
|
public static MacData GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A9D5)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.MacData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.MacData::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_22:
|
|
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_28)), ldstr:string("obj")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600A9D6 RID: 43478 RVA: 0x00279BD8 File Offset: 0x00277DD8
|
|
[Token(Token = "0x600A9D6")]
|
|
[Address(RVA = "0x27D01A0", Offset = "0x27CEBA0", VA = "0x1827D01A0")]
|
|
private MacData(Asn1Sequence seq)
|
|
{
|
|
for (;;)
|
|
{
|
|
base..ctor();
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DigestInfo digestInfo;
|
|
this.digInfo = digestInfo;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
if (parser2 != 0 && parser2 != 0)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable != (ulong)3L)
|
|
{
|
|
break;
|
|
}
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
if (parser3 != 0 && parser3 != 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
BigInteger one = BigInteger.One;
|
|
this.iterationCount = one;
|
|
}
|
|
|
|
// Token: 0x0600A9D7 RID: 43479 RVA: 0x00279C48 File Offset: 0x00277E48
|
|
[Token(Token = "0x600A9D7")]
|
|
[Address(RVA = "0x27D03F0", Offset = "0x27CEDF0", VA = "0x1827D03F0")]
|
|
public MacData(DigestInfo digInfo, byte[] salt, int iterationCount)
|
|
{
|
|
this.digInfo = digInfo;
|
|
BigInteger bigInteger = BigInteger.ValueOf((long)iterationCount);
|
|
this.iterationCount = bigInteger;
|
|
}
|
|
|
|
// Token: 0x17001AAB RID: 6827
|
|
// (get) Token: 0x0600A9D8 RID: 43480 RVA: 0x00279C78 File Offset: 0x00277E78
|
|
[Token(Token = "0x17001AAB")]
|
|
public DigestInfo Mac
|
|
{
|
|
[Token(Token = "0x600A9D8")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.digInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A9D9 RID: 43481 RVA: 0x00279C8C File Offset: 0x00277E8C
|
|
[Token(Token = "0x600A9D9")]
|
|
[Address(RVA = "0x27CFEC0", Offset = "0x27CE8C0", VA = "0x1827CFEC0")]
|
|
public byte[] GetSalt()
|
|
{
|
|
byte[] array = this.salt;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001AAC RID: 6828
|
|
// (get) Token: 0x0600A9DA RID: 43482 RVA: 0x00279CA8 File Offset: 0x00277EA8
|
|
[Token(Token = "0x17001AAC")]
|
|
public BigInteger IterationCount
|
|
{
|
|
[Token(Token = "0x600A9DA")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.iterationCount;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A9DB RID: 43483 RVA: 0x00279CBC File Offset: 0x00277EBC
|
|
[Token(Token = "0x600A9DB")]
|
|
[Address(RVA = "0x27CFF40", Offset = "0x27CE940", VA = "0x1827CFF40", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
DigestInfo digestInfo = this.digInfo;
|
|
if (digestInfo != 0)
|
|
{
|
|
}
|
|
array[0] = digestInfo;
|
|
DerOctetString derOctetString = new DerOctetString(this.salt);
|
|
if (derOctetString != 0)
|
|
{
|
|
}
|
|
array[1] = derOctetString;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
BigInteger bigInteger = this.iterationCount;
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DerInteger derInteger = new DerInteger(this.iterationCount);
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array2[0] = derInteger;
|
|
asn1EncodableVector.Add(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006ECB RID: 28363
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006ECB")]
|
|
internal DigestInfo digInfo;
|
|
|
|
// Token: 0x04006ECC RID: 28364
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006ECC")]
|
|
internal byte[] salt;
|
|
|
|
// Token: 0x04006ECD RID: 28365
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006ECD")]
|
|
internal BigInteger iterationCount;
|
|
}
|
|
}
|