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: 0x02001E38 RID: 7736
|
|
[Token(Token = "0x2001E38")]
|
|
public class KekRecipientInformation : RecipientInformation
|
|
{
|
|
// Token: 0x0600C21A RID: 49690 RVA: 0x002BE064 File Offset: 0x002BC264
|
|
[Token(Token = "0x600C21A")]
|
|
[Address(RVA = "0x292FC40", Offset = "0x292EC40", VA = "0x18292FC40")]
|
|
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: 0x0600C21B RID: 49691 RVA: 0x002BE0B4 File Offset: 0x002BC2B4
|
|
[Token(Token = "0x600C21B")]
|
|
[Address(RVA = "0x292FA30", Offset = "0x292EA30", VA = "0x18292FA30", 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: 0x04007AD4 RID: 31444
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007AD4")]
|
|
private KekRecipientInfo info;
|
|
}
|
|
}
|