60 lines
2.0 KiB
C#
60 lines
2.0 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Smime
|
|
{
|
|
// Token: 0x02001E5E RID: 7774
|
|
[Token(Token = "0x2001E5E")]
|
|
public class SmimeEncryptionKeyPreferenceAttribute : AttributeX509
|
|
{
|
|
// Token: 0x0600C4E4 RID: 50404 RVA: 0x002CF05C File Offset: 0x002CD25C
|
|
[Token(Token = "0x600C4E4")]
|
|
[Address(RVA = "0x272FDE0", Offset = "0x272EBE0", VA = "0x18272FDE0")]
|
|
public SmimeEncryptionKeyPreferenceAttribute(IssuerAndSerialNumber issAndSer)
|
|
{
|
|
DerObjectIdentifier encrypKeyPref = SmimeAttributes.EncrypKeyPref;
|
|
int num;
|
|
int num2;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, issAndSer);
|
|
num2 = 0;
|
|
num = 0;
|
|
DerSet derSet = new DerSet(derTaggedObject);
|
|
base..ctor();
|
|
this.attrType = encrypKeyPref;
|
|
this.attrValues = derSet;
|
|
}
|
|
|
|
// Token: 0x0600C4E5 RID: 50405 RVA: 0x002CF09C File Offset: 0x002CD29C
|
|
[Token(Token = "0x600C4E5")]
|
|
[Address(RVA = "0x272FFA0", Offset = "0x272EDA0", VA = "0x18272FFA0")]
|
|
public SmimeEncryptionKeyPreferenceAttribute(RecipientKeyIdentifier rKeyID)
|
|
{
|
|
DerObjectIdentifier encrypKeyPref = SmimeAttributes.EncrypKeyPref;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, rKeyID);
|
|
num = 0;
|
|
DerSet derSet = new DerSet(derTaggedObject);
|
|
base..ctor();
|
|
this.attrType = encrypKeyPref;
|
|
this.attrValues = derSet;
|
|
}
|
|
|
|
// Token: 0x0600C4E6 RID: 50406 RVA: 0x002CF0D8 File Offset: 0x002CD2D8
|
|
[Token(Token = "0x600C4E6")]
|
|
[Address(RVA = "0x272FEC0", Offset = "0x272ECC0", VA = "0x18272FEC0")]
|
|
public SmimeEncryptionKeyPreferenceAttribute(Asn1OctetString sKeyID)
|
|
{
|
|
DerObjectIdentifier encrypKeyPref = SmimeAttributes.EncrypKeyPref;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 2, sKeyID);
|
|
num = 0;
|
|
DerSet derSet = new DerSet(derTaggedObject);
|
|
base..ctor();
|
|
this.attrType = encrypKeyPref;
|
|
this.attrValues = derSet;
|
|
}
|
|
}
|
|
}
|