// Decompiled with JetBrains decompiler // Type: Microsoft.InfoCards.TransformCryptoSession // Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // MVID: 1D4D5564-A025-490C-AF1D-DF4FBB709D1F // Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Virus.Win32.Expiro.w-f8f9f26e940480624825f6bddbea86e70fc4aa746c4dd8efa7d98dcb477000ed.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); } }