121 lines
7.0 KiB
C#
121 lines
7.0 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro
|
|
{
|
|
// Token: 0x02001FDF RID: 8159
|
|
[Token(Token = "0x2001FDF")]
|
|
public sealed class Gost3410NamedParameters
|
|
{
|
|
// Token: 0x0600CC38 RID: 52280 RVA: 0x002E702C File Offset: 0x002E522C
|
|
[Token(Token = "0x600CC38")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
private Gost3410NamedParameters()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600CC39 RID: 52281 RVA: 0x002E7040 File Offset: 0x002E5240
|
|
[Token(Token = "0x600CC39")]
|
|
[Address(RVA = "0x23B6770", Offset = "0x23B5770", VA = "0x1823B6770")]
|
|
static Gost3410NamedParameters()
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable();
|
|
Gost3410NamedParameters.objIds = dictionary;
|
|
Gost3410NamedParameters.parameters = Platform.CreateHashtable();
|
|
BigInteger bigInteger = new BigInteger("127021248288932417465907042777176443525787653508916535812817507265705031260985098497423188333483401180925999995120988934130659205614996724254121049274349357074920312769561451689224110579311248812610229678534638401693520013288995000362260684222750813532307004517341633685004541062586971416883686778842537820383");
|
|
BigInteger bigInteger2 = new BigInteger("68363196144955700784444165611827252895102170888761442055095051287550314083023");
|
|
BigInteger bigInteger3 = new BigInteger("100997906755055304772081815535925224869841082572053457874823515875577147990529272777244152852699298796483356699682842027972896052747173175480590485607134746852141928680912561502802222185647539190902656116367847270145019066794290930185446216399730872221732889830323194097355403213400972588322876850946740663962");
|
|
Gost3410NamedParameters.cryptoProA = new Gost3410ParamSetParameters(1024, bigInteger, bigInteger2, bigInteger3);
|
|
BigInteger bigInteger4 = new BigInteger("139454871199115825601409655107690713107041707059928031797758001454375765357722984094124368522288239833039114681648076688236921220737322672160740747771700911134550432053804647694904686120113087816240740184800477047157336662926249423571248823968542221753660143391485680840520336859458494803187341288580489525163");
|
|
BigInteger bigInteger5 = new BigInteger("79885141663410976897627118935756323747307951916507639758300472692338873533959");
|
|
BigInteger bigInteger6 = new BigInteger("42941826148615804143873447737955502392672345968607143066798112994089471231420027060385216699563848719957657284814898909770759462613437669456364882730370838934791080835932647976778601915343474400961034231316672578686920482194932878633360203384797092684342247621055760235016132614780652761028509445403338652341");
|
|
Gost3410NamedParameters.cryptoProB = new Gost3410ParamSetParameters(1024, bigInteger4, bigInteger5, bigInteger6);
|
|
BigInteger bigInteger7 = new BigInteger("142011741597563481196368286022318089743276138395243738762872573441927459393512718973631166078467600360848946623567625795282774719212241929071046134208380636394084512691828894000571524625445295769349356752728956831541775441763139384457191755096847107846595662547942312293338483924514339614727760681880609734239");
|
|
BigInteger bigInteger8 = new BigInteger("91771529896554605945588149018382750217296858393520724172743325725474374979801");
|
|
BigInteger bigInteger9 = new BigInteger("133531813272720673433859519948319001217942375967847486899482359599369642528734712461590403327731821410328012529253871914788598993103310567744136196364803064721377826656898686468463277710150809401182608770201615324990468332931294920912776241137878030224355746606283971659376426832674269780880061631528163475887");
|
|
Gost3410NamedParameters.cryptoProXchA = new Gost3410ParamSetParameters(1024, bigInteger7, bigInteger8, bigInteger9);
|
|
IDictionary dictionary2 = Gost3410NamedParameters.parameters;
|
|
Gost3410ParamSetParameters gost3410ParamSetParameters = Gost3410NamedParameters.cryptoProA;
|
|
IDictionary dictionary3 = Gost3410NamedParameters.parameters;
|
|
Gost3410ParamSetParameters gost3410ParamSetParameters2 = Gost3410NamedParameters.cryptoProB;
|
|
IDictionary dictionary4 = Gost3410NamedParameters.parameters;
|
|
Gost3410ParamSetParameters gost3410ParamSetParameters3 = Gost3410NamedParameters.cryptoProXchA;
|
|
IDictionary dictionary5 = Gost3410NamedParameters.objIds;
|
|
DerObjectIdentifier gostR3410x94CryptoProA = CryptoProObjectIdentifiers.GostR3410x94CryptoProA;
|
|
IDictionary dictionary6 = Gost3410NamedParameters.objIds;
|
|
DerObjectIdentifier gostR3410x94CryptoProB = CryptoProObjectIdentifiers.GostR3410x94CryptoProB;
|
|
IDictionary dictionary7 = Gost3410NamedParameters.objIds;
|
|
DerObjectIdentifier gostR3410x94CryptoProXchA = CryptoProObjectIdentifiers.GostR3410x94CryptoProXchA;
|
|
}
|
|
|
|
// Token: 0x0600CC3A RID: 52282 RVA: 0x002E716C File Offset: 0x002E536C
|
|
[Token(Token = "0x600CC3A")]
|
|
[Address(RVA = "0x23B65D0", Offset = "0x23B55D0", VA = "0x1823B65D0")]
|
|
public static Gost3410ParamSetParameters GetByOid(DerObjectIdentifier oid)
|
|
{
|
|
IDictionary dictionary = Gost3410NamedParameters.parameters;
|
|
IDictionary dictionary2 = Gost3410NamedParameters.objIds;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001FFB RID: 8187
|
|
// (get) Token: 0x0600CC3B RID: 52283 RVA: 0x002E7190 File Offset: 0x002E5390
|
|
[Token(Token = "0x17001FFB")]
|
|
public static IEnumerable Names
|
|
{
|
|
[Token(Token = "0x600CC3B")]
|
|
[Address(RVA = "0x23B6BE0", Offset = "0x23B5BE0", VA = "0x1823B6BE0")]
|
|
get
|
|
{
|
|
IDictionary dictionary = Gost3410NamedParameters.objIds;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CC3C RID: 52284 RVA: 0x002E71A8 File Offset: 0x002E53A8
|
|
[Token(Token = "0x600CC3C")]
|
|
[Address(RVA = "0x23B6440", Offset = "0x23B5440", VA = "0x1823B6440")]
|
|
public static Gost3410ParamSetParameters GetByName(string name)
|
|
{
|
|
IDictionary dictionary = Gost3410NamedParameters.objIds;
|
|
IDictionary dictionary2 = Gost3410NamedParameters.objIds;
|
|
IDictionary dictionary3 = Gost3410NamedParameters.parameters;
|
|
IDictionary dictionary4 = Gost3410NamedParameters.objIds;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CC3D RID: 52285 RVA: 0x002E71E4 File Offset: 0x002E53E4
|
|
[Token(Token = "0x600CC3D")]
|
|
[Address(RVA = "0x23B66A0", Offset = "0x23B56A0", VA = "0x1823B66A0")]
|
|
public static DerObjectIdentifier GetOid(string name)
|
|
{
|
|
IDictionary dictionary = Gost3410NamedParameters.objIds;
|
|
IDictionary dictionary2 = Gost3410NamedParameters.objIds;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040081A7 RID: 33191
|
|
[Token(Token = "0x40081A7")]
|
|
private static readonly IDictionary objIds;
|
|
|
|
// Token: 0x040081A8 RID: 33192
|
|
[Token(Token = "0x40081A8")]
|
|
private static readonly IDictionary parameters;
|
|
|
|
// Token: 0x040081A9 RID: 33193
|
|
[Token(Token = "0x40081A9")]
|
|
private static readonly Gost3410ParamSetParameters cryptoProA;
|
|
|
|
// Token: 0x040081AA RID: 33194
|
|
[Token(Token = "0x40081AA")]
|
|
private static readonly Gost3410ParamSetParameters cryptoProB;
|
|
|
|
// Token: 0x040081AB RID: 33195
|
|
[Token(Token = "0x40081AB")]
|
|
private static readonly Gost3410ParamSetParameters cryptoProXchA;
|
|
}
|
|
}
|