171 lines
4.7 KiB
C#
171 lines
4.7 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.GM;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Rosstandart;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.TeleTrust;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tsp
|
|
{
|
|
// Token: 0x02001A45 RID: 6725
|
|
[Token(Token = "0x2001A45")]
|
|
public abstract class TspAlgorithms
|
|
{
|
|
// Token: 0x06009E52 RID: 40530 RVA: 0x00208B4C File Offset: 0x00206D4C
|
|
[Token(Token = "0x6009E52")]
|
|
[Address(RVA = "0x5F2E10", Offset = "0x5F1E10", VA = "0x1805F2E10")]
|
|
static TspAlgorithms()
|
|
{
|
|
string[] array = new string[13];
|
|
string gost = TspAlgorithms.Gost3411;
|
|
if (gost != 0)
|
|
{
|
|
}
|
|
array[0] = gost;
|
|
string gost3411_2012_ = TspAlgorithms.Gost3411_2012_256;
|
|
if (gost3411_2012_ != 0)
|
|
{
|
|
}
|
|
array[1] = gost3411_2012_;
|
|
string gost3411_2012_2 = TspAlgorithms.Gost3411_2012_512;
|
|
if (gost3411_2012_2 != 0)
|
|
{
|
|
}
|
|
array[2] = gost3411_2012_2;
|
|
string md = TspAlgorithms.MD5;
|
|
if (md != 0)
|
|
{
|
|
}
|
|
array[3] = md;
|
|
string ripeMD = TspAlgorithms.RipeMD128;
|
|
if (ripeMD != 0)
|
|
{
|
|
}
|
|
array[4] = ripeMD;
|
|
string ripeMD2 = TspAlgorithms.RipeMD160;
|
|
if (ripeMD2 != 0)
|
|
{
|
|
}
|
|
array[5] = ripeMD2;
|
|
string ripeMD3 = TspAlgorithms.RipeMD256;
|
|
if (ripeMD3 != 0)
|
|
{
|
|
}
|
|
array[6] = ripeMD3;
|
|
string sha = TspAlgorithms.Sha1;
|
|
if (sha != 0)
|
|
{
|
|
}
|
|
array[7] = sha;
|
|
string sha2 = TspAlgorithms.Sha224;
|
|
if (sha2 != 0)
|
|
{
|
|
}
|
|
array[8] = sha2;
|
|
string sha3 = TspAlgorithms.Sha256;
|
|
if (sha3 != 0)
|
|
{
|
|
}
|
|
array[9] = sha3;
|
|
string sha4 = TspAlgorithms.Sha384;
|
|
if (sha4 != 0)
|
|
{
|
|
}
|
|
array[10] = sha4;
|
|
string sha5 = TspAlgorithms.Sha512;
|
|
if (sha5 != 0)
|
|
{
|
|
}
|
|
array[11] = sha5;
|
|
string sm = TspAlgorithms.SM3;
|
|
if (sm != 0)
|
|
{
|
|
}
|
|
array[12] = sm;
|
|
IList list = Platform.CreateArrayList();
|
|
int num = 0;
|
|
TspAlgorithms.Allowed = list;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
IList allowed = TspAlgorithms.Allowed;
|
|
string text = array[num];
|
|
num += num;
|
|
num++;
|
|
num++;
|
|
text += text;
|
|
num += 2;
|
|
num += 19;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009E53 RID: 40531 RVA: 0x00208D94 File Offset: 0x00206F94
|
|
[Token(Token = "0x6009E53")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
protected TspAlgorithms()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04006A55 RID: 27221
|
|
[Token(Token = "0x4006A55")]
|
|
public static readonly string MD5 = PkcsObjectIdentifiers.MD5.identifier;
|
|
|
|
// Token: 0x04006A56 RID: 27222
|
|
[Token(Token = "0x4006A56")]
|
|
public static readonly string Sha1 = OiwObjectIdentifiers.IdSha1.identifier;
|
|
|
|
// Token: 0x04006A57 RID: 27223
|
|
[Token(Token = "0x4006A57")]
|
|
public static readonly string Sha224 = NistObjectIdentifiers.IdSha224.identifier;
|
|
|
|
// Token: 0x04006A58 RID: 27224
|
|
[Token(Token = "0x4006A58")]
|
|
public static readonly string Sha256 = NistObjectIdentifiers.IdSha256.identifier;
|
|
|
|
// Token: 0x04006A59 RID: 27225
|
|
[Token(Token = "0x4006A59")]
|
|
public static readonly string Sha384 = NistObjectIdentifiers.IdSha384.identifier;
|
|
|
|
// Token: 0x04006A5A RID: 27226
|
|
[Token(Token = "0x4006A5A")]
|
|
public static readonly string Sha512 = NistObjectIdentifiers.IdSha512.identifier;
|
|
|
|
// Token: 0x04006A5B RID: 27227
|
|
[Token(Token = "0x4006A5B")]
|
|
public static readonly string RipeMD128 = TeleTrusTObjectIdentifiers.RipeMD128.identifier;
|
|
|
|
// Token: 0x04006A5C RID: 27228
|
|
[Token(Token = "0x4006A5C")]
|
|
public static readonly string RipeMD160 = TeleTrusTObjectIdentifiers.RipeMD160.identifier;
|
|
|
|
// Token: 0x04006A5D RID: 27229
|
|
[Token(Token = "0x4006A5D")]
|
|
public static readonly string RipeMD256 = TeleTrusTObjectIdentifiers.RipeMD256.identifier;
|
|
|
|
// Token: 0x04006A5E RID: 27230
|
|
[Token(Token = "0x4006A5E")]
|
|
public static readonly string Gost3411 = CryptoProObjectIdentifiers.GostR3411.identifier;
|
|
|
|
// Token: 0x04006A5F RID: 27231
|
|
[Token(Token = "0x4006A5F")]
|
|
public static readonly string Gost3411_2012_256 = RosstandartObjectIdentifiers.id_tc26_gost_3411_12_256.identifier;
|
|
|
|
// Token: 0x04006A60 RID: 27232
|
|
[Token(Token = "0x4006A60")]
|
|
public static readonly string Gost3411_2012_512 = RosstandartObjectIdentifiers.id_tc26_gost_3411_12_512.identifier;
|
|
|
|
// Token: 0x04006A61 RID: 27233
|
|
[Token(Token = "0x4006A61")]
|
|
public static readonly string SM3 = GMObjectIdentifiers.sm3.identifier;
|
|
|
|
// Token: 0x04006A62 RID: 27234
|
|
[Token(Token = "0x4006A62")]
|
|
public static readonly IList Allowed;
|
|
}
|
|
}
|