MalwareSourceCode/MSIL/Virus/Win32/E/Virus.Win32.Expiro.w-1f15ee7e9f7da02b6bfb4c5a5e6484eb9fa71b82d3699c54bcc7a31794b4a66d/Microsoft/InfoCards/KeyBlock.cs

48 lines
1.6 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: Microsoft.InfoCards.KeyBlock
// 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.Runtime.InteropServices;
namespace Microsoft.InfoCards
{
[StructLayout(LayoutKind.Explicit, Size = 592)]
internal struct KeyBlock
{
public const int StructSize = 592;
public const int EncryptedKeyBlockSize = 512;
public const int Pkcs5IVBlockSize = 32;
public const int SaltBlockSize = 32;
public const int IVOffset = 0;
public const int SaltOffset = 32;
public const int IterationCountOffset = 64;
public const int EncryptedKeySizeOffset = 68;
public const int EncryptedKeyOffset = 72;
public const int ReservedPaddingOffset = 584;
public const int KeyTypeOffset = 588;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
[FieldOffset(0)]
public byte IV;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
[FieldOffset(32)]
public byte Salt;
[MarshalAs(UnmanagedType.I4)]
[FieldOffset(64)]
public int IterationCount;
[MarshalAs(UnmanagedType.I4)]
[FieldOffset(68)]
public int EncryptedKeySize;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)]
[FieldOffset(72)]
public byte EncryptedKey;
[MarshalAs(UnmanagedType.I4)]
[FieldOffset(584)]
private int ReservedPadding;
[MarshalAs(UnmanagedType.I4)]
[FieldOffset(588)]
public int KeyType;
}
}