MalwareSourceCode/MSIL/Virus/Win32/E/Virus.Win32.Expiro.w-69bb73081eac86b8cf86f45e33515d0095855636967076e2b593d7a30cd80a07/Microsoft/InfoCards/RemoteCryptoSignHashRequest.cs
2022-08-18 06:28:56 -05:00

50 lines
1.5 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Microsoft.InfoCards.RemoteCryptoSignHashRequest
// Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 516D8B44-4448-4D2C-8B8E-FFBB3FFE472B
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Expiro.w-69bb73081eac86b8cf86f45e33515d0095855636967076e2b593d7a30cd80a07.exe
using System.IO;
namespace Microsoft.InfoCards
{
internal class RemoteCryptoSignHashRequest : RpcCryptoRequest
{
private byte[] m_signature;
private byte[] m_hash;
private int m_hashType;
private int m_flags;
public RemoteCryptoSignHashRequest(
RpcCryptoContext context,
int hashType,
int flags,
byte[] hash)
: base(context)
{
this.m_hash = hash;
this.m_hashType = hashType;
this.m_flags = flags;
}
public override string Name => "RpcCryptoSignHashRequest";
public byte[] GetSignature() => this.m_signature;
protected override void MarshalOutArgs(Stream stream)
{
BinaryWriter binaryWriter = new BinaryWriter(stream);
binaryWriter.Write(this.m_hashType);
binaryWriter.Write(this.m_flags);
binaryWriter.Write(this.m_hash.Length);
binaryWriter.Write(this.m_hash, 0, this.m_hash.Length);
}
protected override void MarshalReturnArgs(Stream stream)
{
BinaryReader binaryReader = (BinaryReader) new InfoCardBinaryReader(stream);
this.m_signature = binaryReader.ReadBytes(binaryReader.ReadInt32());
}
}
}