53 lines
1.7 KiB
C#
53 lines
1.7 KiB
C#
using System;
|
|
using System.IO;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Extension
|
|
{
|
|
// Token: 0x0200191E RID: 6430
|
|
[Token(Token = "0x200191E")]
|
|
public class SubjectKeyIdentifierStructure : SubjectKeyIdentifier
|
|
{
|
|
// Token: 0x06009801 RID: 38913 RVA: 0x001F4FA8 File Offset: 0x001F31A8
|
|
[Token(Token = "0x6009801")]
|
|
[Address(RVA = "0x1625DC0", Offset = "0x1624BC0", VA = "0x181625DC0")]
|
|
public SubjectKeyIdentifierStructure(Asn1OctetString encodedValue)
|
|
{
|
|
Asn1Object asn1Object;
|
|
do
|
|
{
|
|
Stream octetStream = encodedValue.GetOctetStream();
|
|
if (asn1Object == 0)
|
|
{
|
|
}
|
|
}
|
|
while (asn1Object == 0);
|
|
}
|
|
|
|
// Token: 0x06009802 RID: 38914 RVA: 0x001F4FCC File Offset: 0x001F31CC
|
|
[Token(Token = "0x6009802")]
|
|
[Address(RVA = "0x1625C70", Offset = "0x1624A70", VA = "0x181625C70")]
|
|
private static Asn1OctetString FromPublicKey(AsymmetricKeyParameter pubKey)
|
|
{
|
|
Asn1Object asn1Object = new SubjectKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey)).ToAsn1Object();
|
|
if (asn1Object == 0 || asn1Object != 0)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009803 RID: 38915 RVA: 0x001F5008 File Offset: 0x001F3208
|
|
[Token(Token = "0x6009803")]
|
|
[Address(RVA = "0x1625E80", Offset = "0x1624C80", VA = "0x181625E80")]
|
|
public SubjectKeyIdentifierStructure(AsymmetricKeyParameter pubKey)
|
|
{
|
|
Asn1OctetString asn1OctetString = SubjectKeyIdentifierStructure.FromPublicKey(pubKey);
|
|
base..ctor(asn1OctetString);
|
|
}
|
|
}
|
|
}
|