mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-21 02:46:10 +00:00
50 lines
1.5 KiB
C#
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: ADE0A079-11DB-4A46-8BDE-D2A592CA8DEA
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Expiro.w-67b630ead60119692b9abbdfd8717c96904ef041127c2cae033c86b718eaa61e.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());
|
|||
|
}
|
|||
|
}
|
|||
|
}
|