ホーム › Security.Cryptography › NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS
NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| ulKeyFlags | DWORD | 4 | +0 | +0 | 鍵に関するフラグ。鍵の属性や生成条件を示す。 |
| ullTrustletId | ULONGLONG | 8 | +8 | +8 | 鍵を所有するトラストレットの識別子(64ビット)。 |
| ulTrustletSecurityVersion | DWORD | 4 | +16 | +16 | トラストレットのセキュリティバージョン番号(SVN)。 |
| ulTrustletDebuggable | DWORD | 4 | +20 | +20 | トラストレットがデバッグ可能かを示す値。0以外でデバッグ可能。 |
各言語での定義
#include <windows.h>
// NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS (x64 24 / x86 24 バイト)
typedef struct NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS {
DWORD ulKeyFlags;
ULONGLONG ullTrustletId;
DWORD ulTrustletSecurityVersion;
DWORD ulTrustletDebuggable;
} NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS
{
public uint ulKeyFlags;
public ulong ullTrustletId;
public uint ulTrustletSecurityVersion;
public uint ulTrustletDebuggable;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS
Public ulKeyFlags As UInteger
Public ullTrustletId As ULong
Public ulTrustletSecurityVersion As UInteger
Public ulTrustletDebuggable As UInteger
End Structureimport ctypes
from ctypes import wintypes
class NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS(ctypes.Structure):
_fields_ = [
("ulKeyFlags", wintypes.DWORD),
("ullTrustletId", ctypes.c_ulonglong),
("ulTrustletSecurityVersion", wintypes.DWORD),
("ulTrustletDebuggable", wintypes.DWORD),
]#[repr(C)]
pub struct NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS {
pub ulKeyFlags: u32,
pub ullTrustletId: u64,
pub ulTrustletSecurityVersion: u32,
pub ulTrustletDebuggable: u32,
}import "golang.org/x/sys/windows"
type NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS struct {
ulKeyFlags uint32
ullTrustletId uint64
ulTrustletSecurityVersion uint32
ulTrustletDebuggable uint32
}type
NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS = record
ulKeyFlags: DWORD;
ullTrustletId: UInt64;
ulTrustletSecurityVersion: DWORD;
ulTrustletDebuggable: DWORD;
end;const NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS = extern struct {
ulKeyFlags: u32,
ullTrustletId: u64,
ulTrustletSecurityVersion: u32,
ulTrustletDebuggable: u32,
};type
NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS {.bycopy.} = object
ulKeyFlags: uint32
ullTrustletId: uint64
ulTrustletSecurityVersion: uint32
ulTrustletDebuggable: uint32struct NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS
{
uint ulKeyFlags;
ulong ullTrustletId;
uint ulTrustletSecurityVersion;
uint ulTrustletDebuggable;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS サイズ: 24 バイト(x64)
dim st, 6 ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; ulKeyFlags : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; ullTrustletId : ULONGLONG (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; ulTrustletSecurityVersion : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; ulTrustletDebuggable : DWORD (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS
#field int ulKeyFlags
#field int64 ullTrustletId
#field int ulTrustletSecurityVersion
#field int ulTrustletDebuggable
#endstruct
stdim st, NCRYPT_VBS_ROOT_KEY_ATTESTATION_CLAIM_DETAILS ; NSTRUCT 変数を確保
st->ulKeyFlags = 100
mes "ulKeyFlags=" + st->ulKeyFlags