// Decompiled with JetBrains decompiler // Type: Microsoft.InfoCards.TransformCryptoSession // Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // MVID: ADE0A079-11DB-4A46-8BDE-D2A592CA8DEA // Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Expiro.w-67b630ead60119692b9abbdfd8717c96904ef041127c2cae033c86b718eaa61e.exe using System; using System.Diagnostics; using System.IO; using System.Security.Cryptography; using System.Security.Principal; namespace Microsoft.InfoCards { internal class TransformCryptoSession : CryptoSession { private ICryptoTransform m_icrypto; public TransformCryptoSession( Process process, DateTime expiration, WindowsIdentity identity, ICryptoTransform icrypto) : base(process, expiration, identity, (object) icrypto, CryptoSession.SessionType.Transfrom) { this.m_icrypto = icrypto; } protected override void OnDispose() => this.m_icrypto.Dispose(); protected override void OnWrite(BinaryWriter bwriter) { bwriter.Write(this.m_icrypto.InputBlockSize); bwriter.Write(this.m_icrypto.OutputBlockSize); bwriter.Write(this.m_icrypto.CanTransformMultipleBlocks); bwriter.Write(this.m_icrypto.CanReuseTransform); } public int TransformBlock(byte[] inData, out byte[] outData) { outData = new byte[this.m_icrypto.OutputBlockSize]; return this.m_icrypto.TransformBlock(inData, 0, inData.Length, outData, 0); } public byte[] TransformFinalBlock(byte[] inData) => this.m_icrypto.TransformFinalBlock(inData, 0, inData.Length); } }