Files
2026-04-08 23:40:05 +02:00

52 lines
1.9 KiB
C#

using System;
using System.IO;
using System.Runtime.InteropServices;
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: 0x0200177B RID: 6011
[Token(Token = "0x200177B")]
[StructLayout(3)]
public class KekRecipientInformation : RecipientInformation
{
// Token: 0x0600A272 RID: 41586 RVA: 0x0025D35C File Offset: 0x0025B55C
[Token(Token = "0x600A272")]
[Address(RVA = "0x65E5A0", Offset = "0x65CFA0", VA = "0x18065E5A0")]
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: 0x0600A273 RID: 41587 RVA: 0x0025D3AC File Offset: 0x0025B5AC
[Token(Token = "0x600A273")]
[Address(RVA = "0x65E390", Offset = "0x65CD90", VA = "0x18065E390", 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: 0x04006AD8 RID: 27352
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006AD8")]
private KekRecipientInfo info;
}
}