// 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-00001-msil\Virus.Win32.Expiro.w-1f15ee7e9f7da02b6bfb4c5a5e6484eb9fa71b82d3699c54bcc7a31794b4a66d.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); } }