50 lines
1.9 KiB
C#
50 lines
1.9 KiB
C#
using System;
|
|
using System.IO;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
|
|
{
|
|
// Token: 0x02001D58 RID: 7512
|
|
[Token(Token = "0x2001D58")]
|
|
public class KekRecipientInformation : RecipientInformation
|
|
{
|
|
// Token: 0x0600BE4C RID: 48716 RVA: 0x002B576C File Offset: 0x002B396C
|
|
[Token(Token = "0x600BE4C")]
|
|
[Address(RVA = "0x200F140", Offset = "0x200DF40", VA = "0x18200F140")]
|
|
internal KekRecipientInformation(KekRecipientInfo info, CmsSecureReadable secureReadable)
|
|
{
|
|
AlgorithmIdentifier keyEncryptionAlgorithm = info.keyEncryptionAlgorithm;
|
|
base..ctor(keyEncryptionAlgorithm, secureReadable);
|
|
this.info = info;
|
|
RecipientID recipientID = new RecipientID();
|
|
this.rid = recipientID;
|
|
Stream octetStream = info.kekID.keyIdentifier.GetOctetStream();
|
|
byte[] array;
|
|
recipientID.keyIdentifier = array;
|
|
}
|
|
|
|
// Token: 0x0600BE4D RID: 48717 RVA: 0x002B57BC File Offset: 0x002B39BC
|
|
[Token(Token = "0x600BE4D")]
|
|
[Address(RVA = "0x200EF30", Offset = "0x200DD30", VA = "0x18200EF30", Slot = "4")]
|
|
public override CmsTypedStream GetContentStream(ICipherParameters key)
|
|
{
|
|
Stream octetStream = this.info.encryptedKey.GetOctetStream();
|
|
Asn1Object asn1Object = this.keyEncAlg.ToAsn1Object();
|
|
string contentAlgorithmName = base.GetContentAlgorithmName();
|
|
Stream.ReadWriteTask activeReadWriteTask = octetStream._activeReadWriteTask;
|
|
KeyParameter keyParameter;
|
|
return base.GetContentFromSessionKey(keyParameter);
|
|
}
|
|
|
|
// Token: 0x0400791B RID: 31003
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400791B")]
|
|
private KekRecipientInfo info;
|
|
}
|
|
}
|