From e9b3467100d75548220cc6e71e005a97732d66e7 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 10 Jan 2019 14:29:55 +0100 Subject: sys/linux: add trusty support Add support for trusty tipc devices and several trusty app ports. Update #933 --- sys/linux/gen/386.go | 496 ++++++++++++++++++++++++++++++++++++++++- sys/linux/gen/amd64.go | 496 ++++++++++++++++++++++++++++++++++++++++- sys/linux/gen/arm.go | 496 ++++++++++++++++++++++++++++++++++++++++- sys/linux/gen/arm64.go | 496 ++++++++++++++++++++++++++++++++++++++++- sys/linux/gen/ppc64le.go | 496 ++++++++++++++++++++++++++++++++++++++++- sys/linux/trusty.txt | 354 +++++++++++++++++++++++++++++ sys/linux/trusty_386.const | 61 +++++ sys/linux/trusty_amd64.const | 61 +++++ sys/linux/trusty_arm.const | 61 +++++ sys/linux/trusty_arm64.const | 61 +++++ sys/linux/trusty_ppc64le.const | 61 +++++ 11 files changed, 3134 insertions(+), 5 deletions(-) create mode 100644 sys/linux/trusty.txt create mode 100644 sys/linux/trusty_386.const create mode 100644 sys/linux/trusty_amd64.const create mode 100644 sys/linux/trusty_arm.const create mode 100644 sys/linux/trusty_arm64.const create mode 100644 sys/linux/trusty_ppc64le.const (limited to 'sys/linux') diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index d22855270..44c7bf5b6 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -86,6 +86,11 @@ var resources_386 = []*ResourceDesc{ {Name: "fd_sr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_sr"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_timer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_timer"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_avb", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_avb"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -22068,6 +22073,361 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tpacket_req"}, FldName: "req"}, &StructType{Key: StructKey{Name: "tpacket_req3"}, FldName: "req3"}, }}}, + {Key: StructKey{Name: "trusty_authorization_bytes"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_bytes", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data_length", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, FldName: "ENUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, FldName: "ENUM_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, FldName: "UINT"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, FldName: "UINT_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, FldName: "ULONG"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, FldName: "ULONG_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, FldName: "DATE"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, FldName: "BOOL"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, FldName: "BIGNUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, FldName: "BYTES"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2147483648}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1879048192}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "data", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2415919104}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1610612736}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 268435456}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 536870912}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 805306368}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1073741824}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1342177280}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2684354560}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_set"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_set", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "indirect_data"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "elements_count", TypeSize: 4}}, Buf: "elements"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "elements_size", TypeSize: 4}}, BitSize: 8, Buf: "elements"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elements", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "trusty_authorization_elem"}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "READ_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "WRITE_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, FldName: "AVB_GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, FldName: "READ_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, FldName: "WRITE_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, FldName: "READ_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, FldName: "WRITE_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, FldName: "LOCK_BOOT_STATE"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_rollback_index"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_rollback_index", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "value", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "slot", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_blob"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_blob", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "data"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_enroll"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_enroll", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "enrolled_password"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "password_handle_len", TypeSize: 4}}, BitSize: 8, Buf: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_password_handle"}, FldName: "password_handle"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_error"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_error", TypeSize: 12}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_gatekeeper_error"}, FldName: "err"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_retry"}, FldName: "retry"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_enroll"}, FldName: "enroll"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_verify"}, FldName: "verify"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_retry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_retry", TypeSize: 16}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retry_timeout", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_verify"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_verify", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + }}}, + {Key: StructKey{Name: "trusty_km_attest_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_attest_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "attest_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_begin_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_begin_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "purpose", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_configure"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_configure", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_version", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_patchlevel", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_export_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_export_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_finish_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_finish_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "signature"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + }}}, + {Key: StructKey{Name: "trusty_km_get_key_characteristics"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_get_key_characteristics", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_hardware_auth_token"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hardware_auth_token", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "authenticator_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "authenticator_type", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "timestamp", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "mac"}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameter", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "seed"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "none", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameters_array", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "num_params", TypeSize: 4}}, Buf: "params"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "params", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}}}, + }}}, + {Key: StructKey{Name: "trusty_km_import_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_import_wrapped_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_wrapped_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapped_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapping_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "masking_key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "password_sid", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "biometric_sid", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, FldName: "GENERATE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, FldName: "BEGIN_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, FldName: "UPDATE_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, FldName: "FINISH_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, FldName: "ABORT_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, FldName: "IMPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, FldName: "EXPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, FldName: "GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, FldName: "ADD_RNG_ENTROPY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, FldName: "GET_SUPPORTED_ALGORITHMS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_BLOCK_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_PADDING_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_DIGESTS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_IMPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_EXPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, FldName: "GET_KEY_CHARACTERISTICS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, FldName: "ATTEST_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, FldName: "UPGRADE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, FldName: "CONFIGURE"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, FldName: "GET_HMAC_SHARING_PARAMETERS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, FldName: "COMPUTE_SHARED_HMAC"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, FldName: "VERIFY_AUTHORIZATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, FldName: "DELETE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, FldName: "DELETE_ALL_KEYS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, FldName: "IMPORT_WRAPPED_KEY"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "payload", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 32}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 64}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &StructType{Key: StructKey{Name: "trusty_km_begin_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 80}, + &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 72}, + &StructType{Key: StructKey{Name: "trusty_km_configure"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 92}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 88}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 24}, + &StructType{Key: StructKey{Name: "trusty_km_export_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &StructType{Key: StructKey{Name: "trusty_km_finish_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 76}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 60}, + &StructType{Key: StructKey{Name: "trusty_km_get_key_characteristics"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 36}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 40}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 48}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 56}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 52}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 44}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20}, + &StructType{Key: StructKey{Name: "trusty_km_import_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 100}, + &StructType{Key: StructKey{Name: "trusty_km_import_wrapped_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &StructType{Key: StructKey{Name: "trusty_km_update_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 68}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 84}, + &StructType{Key: StructKey{Name: "trusty_km_verify_authorization"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_secure_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_secure_msg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_supported_digests"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_supported_digests", TypeSize: 8}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "algorithm", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_purposes", FldName: "purpose", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5}}, + }}}, + {Key: StructKey{Name: "trusty_km_update_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_update_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_verify_authorization"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_verify_authorization", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "parameters_to_verify"}, + &StructType{Key: StructKey{Name: "trusty_km_hardware_auth_token"}, FldName: "auth_token"}, + }}}, + {Key: StructKey{Name: "trusty_password_handle"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_password_handle", TypeSize: 58}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "version", TypeSize: 1}}, Kind: 2, RangeEnd: 2}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "flags", TypeSize: 8}}, Kind: 2, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "salt", TypeSize: 8}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, {Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"}, &UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"}, @@ -31611,6 +31971,31 @@ var syscalls_386 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21524}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "winsize"}}}, }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 23}, Kind: 2, Values: []string{"com.android.trusty.avb\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_gatekeeper", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 30}, Kind: 2, Values: []string{"com.android.trusty.gatekeeper\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_keymaster_secure", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 36}, Kind: 2, Values: []string{"com.android.trusty.keymaster.secure\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_km", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}}, + }}, {NR: 54, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074287829}, @@ -34082,6 +34467,36 @@ var syscalls_386 = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 295, Name: "openat$trusty", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 295, Name: "openat$trusty_avb", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 295, Name: "openat$trusty_gatekeeper", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 295, Name: "openat$trusty_km", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 295, Name: "openat$trusty_km_secure", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 295, Name: "openat$tun", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}}, @@ -39152,6 +39567,31 @@ var syscalls_386 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "snd_seq_event"}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "data"}, }}, + {NR: 4, Name: "write$trusty", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_avb", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "trusty_avb_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_gatekeeper", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "trusty_gatekeeper_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_km", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "trusty_km_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_km_secure", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, {NR: 4, Name: "write$tun", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}}, @@ -44462,6 +44902,7 @@ var consts_386 = []ConstValue{ {Name: "TIPC_GROUP_LEAVE", Value: 136}, {Name: "TIPC_HIGH_IMPORTANCE", Value: 2}, {Name: "TIPC_IMPORTANCE", Value: 127}, + {Name: "TIPC_IOC_CONNECT", Value: 1074033280}, {Name: "TIPC_LINK_STATE", Value: 2}, {Name: "TIPC_LOW_IMPORTANCE"}, {Name: "TIPC_MAX_LINK_NAME", Value: 68}, @@ -44549,6 +44990,59 @@ var consts_386 = []ConstValue{ {Name: "TLS_CIPHER_AES_GCM_128", Value: 51}, {Name: "TLS_RX", Value: 2}, {Name: "TLS_TX", Value: 1}, + {Name: "TRUSTY_AVB_GET_VERSION", Value: 4}, + {Name: "TRUSTY_AVB_LOCK_BOOT_STATE", Value: 14}, + {Name: "TRUSTY_AVB_READ_LOCK_STATE", Value: 10}, + {Name: "TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES", Value: 6}, + {Name: "TRUSTY_AVB_READ_ROLLBACK_INDEX"}, + {Name: "TRUSTY_AVB_REQ_SHIFT", Value: 1}, + {Name: "TRUSTY_AVB_WRITE_LOCK_STATE", Value: 12}, + {Name: "TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES", Value: 8}, + {Name: "TRUSTY_AVB_WRITE_ROLLBACK_INDEX", Value: 2}, + {Name: "TRUSTY_ERROR_INVALID", Value: 1}, + {Name: "TRUSTY_ERROR_NONE"}, + {Name: "TRUSTY_ERROR_RETRY", Value: 2}, + {Name: "TRUSTY_ERROR_UNKNOWN", Value: 3}, + {Name: "TRUSTY_GK_ENROLL"}, + {Name: "TRUSTY_GK_VERIFY", Value: 2}, + {Name: "TRUSTY_KM_ABORT_OPERATION", Value: 16}, + {Name: "TRUSTY_KM_ADD_RNG_ENTROPY", Value: 32}, + {Name: "TRUSTY_KM_ATTEST_KEY", Value: 64}, + {Name: "TRUSTY_KM_BEGIN_OPERATION", Value: 4}, + {Name: "TRUSTY_KM_BIGNUM", Value: 2147483648}, + {Name: "TRUSTY_KM_BOOL", Value: 1879048192}, + {Name: "TRUSTY_KM_BYTES", Value: 2415919104}, + {Name: "TRUSTY_KM_COMPUTE_SHARED_HMAC", Value: 80}, + {Name: "TRUSTY_KM_CONFIGURE", Value: 72}, + {Name: "TRUSTY_KM_DATE", Value: 1610612736}, + {Name: "TRUSTY_KM_DELETE_ALL_KEYS", Value: 92}, + {Name: "TRUSTY_KM_DELETE_KEY", Value: 88}, + {Name: "TRUSTY_KM_DESTROY_ATTESTATION_IDS", Value: 96}, + {Name: "TRUSTY_KM_ENUM", Value: 268435456}, + {Name: "TRUSTY_KM_ENUM_REP", Value: 536870912}, + {Name: "TRUSTY_KM_EXPORT_KEY", Value: 24}, + {Name: "TRUSTY_KM_FINISH_OPERATION", Value: 12}, + {Name: "TRUSTY_KM_GENERATE_KEY"}, + {Name: "TRUSTY_KM_GET_AUTH_TOKEN_KEY"}, + {Name: "TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS", Value: 76}, + {Name: "TRUSTY_KM_GET_KEY_CHARACTERISTICS", Value: 60}, + {Name: "TRUSTY_KM_GET_SUPPORTED_ALGORITHMS", Value: 36}, + {Name: "TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES", Value: 40}, + {Name: "TRUSTY_KM_GET_SUPPORTED_DIGESTS", Value: 48}, + {Name: "TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS", Value: 56}, + {Name: "TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS", Value: 52}, + {Name: "TRUSTY_KM_GET_SUPPORTED_PADDING_MODES", Value: 44}, + {Name: "TRUSTY_KM_GET_VERSION", Value: 28}, + {Name: "TRUSTY_KM_IMPORT_KEY", Value: 20}, + {Name: "TRUSTY_KM_IMPORT_WRAPPED_KEY", Value: 100}, + {Name: "TRUSTY_KM_REQ_SHIFT", Value: 2}, + {Name: "TRUSTY_KM_UINT", Value: 805306368}, + {Name: "TRUSTY_KM_UINT_REP", Value: 1073741824}, + {Name: "TRUSTY_KM_ULONG", Value: 1342177280}, + {Name: "TRUSTY_KM_ULONG_REP", Value: 2684354560}, + {Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8}, + {Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68}, + {Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84}, {Name: "TUNATTACHFILTER", Value: 1074287829}, {Name: "TUNDETACHFILTER", Value: 1074287830}, {Name: "TUNGETFEATURES", Value: 2147767503}, @@ -46333,4 +46827,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "fd6c8c0d5453152c503a72e196385a9ec6ac32b2" +const revision_386 = "2add9eb5de33dbfa073790d7af2cb5a543062225" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 0d8eadbdf..9ba446de1 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -86,6 +86,11 @@ var resources_amd64 = []*ResourceDesc{ {Name: "fd_sr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_sr"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_timer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_timer"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_avb", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_avb"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -22489,6 +22494,361 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tpacket_req"}, FldName: "req"}, &StructType{Key: StructKey{Name: "tpacket_req3"}, FldName: "req3"}, }}}, + {Key: StructKey{Name: "trusty_authorization_bytes"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_bytes", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data_length", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, FldName: "ENUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, FldName: "ENUM_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, FldName: "UINT"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, FldName: "UINT_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, FldName: "ULONG"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, FldName: "ULONG_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, FldName: "DATE"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, FldName: "BOOL"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, FldName: "BIGNUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, FldName: "BYTES"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2147483648}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1879048192}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "data", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2415919104}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1610612736}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 268435456}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 536870912}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 805306368}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1073741824}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1342177280}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2684354560}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_set"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_set", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "indirect_data"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "elements_count", TypeSize: 4}}, Buf: "elements"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "elements_size", TypeSize: 4}}, BitSize: 8, Buf: "elements"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elements", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "trusty_authorization_elem"}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "READ_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "WRITE_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, FldName: "AVB_GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, FldName: "READ_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, FldName: "WRITE_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, FldName: "READ_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, FldName: "WRITE_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, FldName: "LOCK_BOOT_STATE"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_rollback_index"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_rollback_index", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "value", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "slot", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_blob"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_blob", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "data"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_enroll"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_enroll", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "enrolled_password"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "password_handle_len", TypeSize: 4}}, BitSize: 8, Buf: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_password_handle"}, FldName: "password_handle"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_error"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_error", TypeSize: 12}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_gatekeeper_error"}, FldName: "err"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_retry"}, FldName: "retry"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_enroll"}, FldName: "enroll"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_verify"}, FldName: "verify"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_retry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_retry", TypeSize: 16}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retry_timeout", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_verify"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_verify", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + }}}, + {Key: StructKey{Name: "trusty_km_attest_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_attest_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "attest_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_begin_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_begin_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "purpose", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_configure"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_configure", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_version", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_patchlevel", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_export_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_export_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_finish_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_finish_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "signature"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + }}}, + {Key: StructKey{Name: "trusty_km_get_key_characteristics"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_get_key_characteristics", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_hardware_auth_token"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hardware_auth_token", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "authenticator_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "authenticator_type", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "timestamp", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "mac"}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameter", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "seed"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "none", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameters_array", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "num_params", TypeSize: 4}}, Buf: "params"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "params", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}}}, + }}}, + {Key: StructKey{Name: "trusty_km_import_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_import_wrapped_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_wrapped_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapped_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapping_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "masking_key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "password_sid", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "biometric_sid", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, FldName: "GENERATE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, FldName: "BEGIN_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, FldName: "UPDATE_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, FldName: "FINISH_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, FldName: "ABORT_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, FldName: "IMPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, FldName: "EXPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, FldName: "GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, FldName: "ADD_RNG_ENTROPY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, FldName: "GET_SUPPORTED_ALGORITHMS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_BLOCK_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_PADDING_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_DIGESTS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_IMPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_EXPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, FldName: "GET_KEY_CHARACTERISTICS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, FldName: "ATTEST_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, FldName: "UPGRADE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, FldName: "CONFIGURE"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, FldName: "GET_HMAC_SHARING_PARAMETERS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, FldName: "COMPUTE_SHARED_HMAC"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, FldName: "VERIFY_AUTHORIZATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, FldName: "DELETE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, FldName: "DELETE_ALL_KEYS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, FldName: "IMPORT_WRAPPED_KEY"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "payload", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 32}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 64}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &StructType{Key: StructKey{Name: "trusty_km_begin_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 80}, + &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 72}, + &StructType{Key: StructKey{Name: "trusty_km_configure"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 92}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 88}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 24}, + &StructType{Key: StructKey{Name: "trusty_km_export_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &StructType{Key: StructKey{Name: "trusty_km_finish_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 76}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 60}, + &StructType{Key: StructKey{Name: "trusty_km_get_key_characteristics"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 36}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 40}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 48}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 56}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 52}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 44}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20}, + &StructType{Key: StructKey{Name: "trusty_km_import_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 100}, + &StructType{Key: StructKey{Name: "trusty_km_import_wrapped_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &StructType{Key: StructKey{Name: "trusty_km_update_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 68}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 84}, + &StructType{Key: StructKey{Name: "trusty_km_verify_authorization"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_secure_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_secure_msg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_supported_digests"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_supported_digests", TypeSize: 8}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "algorithm", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_purposes", FldName: "purpose", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5}}, + }}}, + {Key: StructKey{Name: "trusty_km_update_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_update_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_verify_authorization"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_verify_authorization", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "parameters_to_verify"}, + &StructType{Key: StructKey{Name: "trusty_km_hardware_auth_token"}, FldName: "auth_token"}, + }}}, + {Key: StructKey{Name: "trusty_password_handle"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_password_handle", TypeSize: 58}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "version", TypeSize: 1}}, Kind: 2, RangeEnd: 2}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "flags", TypeSize: 8}}, Kind: 2, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "salt", TypeSize: 8}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, {Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"}, &UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"}, @@ -32177,6 +32537,31 @@ var syscalls_amd64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21524}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "winsize"}}}, }}, + {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}}, + }}, + {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 23}, Kind: 2, Values: []string{"com.android.trusty.avb\x00"}}}, + }}, + {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT_gatekeeper", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 30}, Kind: 2, Values: []string{"com.android.trusty.gatekeeper\x00"}}}, + }}, + {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT_keymaster_secure", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 36}, Kind: 2, Values: []string{"com.android.trusty.keymaster.secure\x00"}}}, + }}, + {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT_km", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}}, + }}, {NR: 16, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074812117}, @@ -34698,6 +35083,36 @@ var syscalls_amd64 = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 257, Name: "openat$trusty", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 257, Name: "openat$trusty_avb", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 257, Name: "openat$trusty_gatekeeper", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 257, Name: "openat$trusty_km", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 257, Name: "openat$trusty_km_secure", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 257, Name: "openat$tun", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}}, @@ -39917,6 +40332,31 @@ var syscalls_amd64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "snd_seq_event"}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"}, }}, + {NR: 1, Name: "write$trusty", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 1, Name: "write$trusty_avb", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_avb_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 1, Name: "write$trusty_gatekeeper", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_gatekeeper_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 1, Name: "write$trusty_km", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_km_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 1, Name: "write$trusty_km_secure", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, {NR: 1, Name: "write$tun", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}}, @@ -45241,6 +45681,7 @@ var consts_amd64 = []ConstValue{ {Name: "TIPC_GROUP_LEAVE", Value: 136}, {Name: "TIPC_HIGH_IMPORTANCE", Value: 2}, {Name: "TIPC_IMPORTANCE", Value: 127}, + {Name: "TIPC_IOC_CONNECT", Value: 1074295424}, {Name: "TIPC_LINK_STATE", Value: 2}, {Name: "TIPC_LOW_IMPORTANCE"}, {Name: "TIPC_MAX_LINK_NAME", Value: 68}, @@ -45328,6 +45769,59 @@ var consts_amd64 = []ConstValue{ {Name: "TLS_CIPHER_AES_GCM_128", Value: 51}, {Name: "TLS_RX", Value: 2}, {Name: "TLS_TX", Value: 1}, + {Name: "TRUSTY_AVB_GET_VERSION", Value: 4}, + {Name: "TRUSTY_AVB_LOCK_BOOT_STATE", Value: 14}, + {Name: "TRUSTY_AVB_READ_LOCK_STATE", Value: 10}, + {Name: "TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES", Value: 6}, + {Name: "TRUSTY_AVB_READ_ROLLBACK_INDEX"}, + {Name: "TRUSTY_AVB_REQ_SHIFT", Value: 1}, + {Name: "TRUSTY_AVB_WRITE_LOCK_STATE", Value: 12}, + {Name: "TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES", Value: 8}, + {Name: "TRUSTY_AVB_WRITE_ROLLBACK_INDEX", Value: 2}, + {Name: "TRUSTY_ERROR_INVALID", Value: 1}, + {Name: "TRUSTY_ERROR_NONE"}, + {Name: "TRUSTY_ERROR_RETRY", Value: 2}, + {Name: "TRUSTY_ERROR_UNKNOWN", Value: 3}, + {Name: "TRUSTY_GK_ENROLL"}, + {Name: "TRUSTY_GK_VERIFY", Value: 2}, + {Name: "TRUSTY_KM_ABORT_OPERATION", Value: 16}, + {Name: "TRUSTY_KM_ADD_RNG_ENTROPY", Value: 32}, + {Name: "TRUSTY_KM_ATTEST_KEY", Value: 64}, + {Name: "TRUSTY_KM_BEGIN_OPERATION", Value: 4}, + {Name: "TRUSTY_KM_BIGNUM", Value: 2147483648}, + {Name: "TRUSTY_KM_BOOL", Value: 1879048192}, + {Name: "TRUSTY_KM_BYTES", Value: 2415919104}, + {Name: "TRUSTY_KM_COMPUTE_SHARED_HMAC", Value: 80}, + {Name: "TRUSTY_KM_CONFIGURE", Value: 72}, + {Name: "TRUSTY_KM_DATE", Value: 1610612736}, + {Name: "TRUSTY_KM_DELETE_ALL_KEYS", Value: 92}, + {Name: "TRUSTY_KM_DELETE_KEY", Value: 88}, + {Name: "TRUSTY_KM_DESTROY_ATTESTATION_IDS", Value: 96}, + {Name: "TRUSTY_KM_ENUM", Value: 268435456}, + {Name: "TRUSTY_KM_ENUM_REP", Value: 536870912}, + {Name: "TRUSTY_KM_EXPORT_KEY", Value: 24}, + {Name: "TRUSTY_KM_FINISH_OPERATION", Value: 12}, + {Name: "TRUSTY_KM_GENERATE_KEY"}, + {Name: "TRUSTY_KM_GET_AUTH_TOKEN_KEY"}, + {Name: "TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS", Value: 76}, + {Name: "TRUSTY_KM_GET_KEY_CHARACTERISTICS", Value: 60}, + {Name: "TRUSTY_KM_GET_SUPPORTED_ALGORITHMS", Value: 36}, + {Name: "TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES", Value: 40}, + {Name: "TRUSTY_KM_GET_SUPPORTED_DIGESTS", Value: 48}, + {Name: "TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS", Value: 56}, + {Name: "TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS", Value: 52}, + {Name: "TRUSTY_KM_GET_SUPPORTED_PADDING_MODES", Value: 44}, + {Name: "TRUSTY_KM_GET_VERSION", Value: 28}, + {Name: "TRUSTY_KM_IMPORT_KEY", Value: 20}, + {Name: "TRUSTY_KM_IMPORT_WRAPPED_KEY", Value: 100}, + {Name: "TRUSTY_KM_REQ_SHIFT", Value: 2}, + {Name: "TRUSTY_KM_UINT", Value: 805306368}, + {Name: "TRUSTY_KM_UINT_REP", Value: 1073741824}, + {Name: "TRUSTY_KM_ULONG", Value: 1342177280}, + {Name: "TRUSTY_KM_ULONG_REP", Value: 2684354560}, + {Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8}, + {Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68}, + {Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84}, {Name: "TUNATTACHFILTER", Value: 1074812117}, {Name: "TUNDETACHFILTER", Value: 1074812118}, {Name: "TUNGETFEATURES", Value: 2147767503}, @@ -47123,4 +47617,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "714db9567bad780c568ce486773f7508db10e38e" +const revision_amd64 = "85924b0693363419c2ea4f8588a815526691dd50" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 45c86eb0a..d2d0274b1 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -86,6 +86,11 @@ var resources_arm = []*ResourceDesc{ {Name: "fd_sr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_sr"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_timer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_timer"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_avb", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_avb"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -21949,6 +21954,361 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tpacket_req"}, FldName: "req"}, &StructType{Key: StructKey{Name: "tpacket_req3"}, FldName: "req3"}, }}}, + {Key: StructKey{Name: "trusty_authorization_bytes"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_bytes", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data_length", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, FldName: "ENUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, FldName: "ENUM_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, FldName: "UINT"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, FldName: "UINT_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, FldName: "ULONG"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, FldName: "ULONG_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, FldName: "DATE"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, FldName: "BOOL"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, FldName: "BIGNUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, FldName: "BYTES"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2147483648}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1879048192}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "data", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2415919104}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1610612736}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 268435456}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 536870912}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 805306368}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1073741824}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1342177280}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2684354560}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_set"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_set", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "indirect_data"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "elements_count", TypeSize: 4}}, Buf: "elements"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "elements_size", TypeSize: 4}}, BitSize: 8, Buf: "elements"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elements", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "trusty_authorization_elem"}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "READ_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "WRITE_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, FldName: "AVB_GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, FldName: "READ_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, FldName: "WRITE_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, FldName: "READ_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, FldName: "WRITE_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, FldName: "LOCK_BOOT_STATE"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_rollback_index"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_rollback_index", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "value", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "slot", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_blob"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_blob", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "data"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_enroll"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_enroll", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "enrolled_password"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "password_handle_len", TypeSize: 4}}, BitSize: 8, Buf: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_password_handle"}, FldName: "password_handle"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_error"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_error", TypeSize: 12}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_gatekeeper_error"}, FldName: "err"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_retry"}, FldName: "retry"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_enroll"}, FldName: "enroll"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_verify"}, FldName: "verify"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_retry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_retry", TypeSize: 16}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retry_timeout", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_verify"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_verify", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + }}}, + {Key: StructKey{Name: "trusty_km_attest_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_attest_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "attest_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_begin_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_begin_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "purpose", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_configure"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_configure", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_version", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_patchlevel", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_export_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_export_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_finish_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_finish_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "signature"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + }}}, + {Key: StructKey{Name: "trusty_km_get_key_characteristics"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_get_key_characteristics", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_hardware_auth_token"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hardware_auth_token", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "authenticator_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "authenticator_type", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "timestamp", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "mac"}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameter", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "seed"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "none", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameters_array", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "num_params", TypeSize: 4}}, Buf: "params"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "params", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}}}, + }}}, + {Key: StructKey{Name: "trusty_km_import_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_import_wrapped_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_wrapped_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapped_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapping_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "masking_key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "password_sid", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "biometric_sid", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, FldName: "GENERATE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, FldName: "BEGIN_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, FldName: "UPDATE_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, FldName: "FINISH_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, FldName: "ABORT_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, FldName: "IMPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, FldName: "EXPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, FldName: "GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, FldName: "ADD_RNG_ENTROPY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, FldName: "GET_SUPPORTED_ALGORITHMS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_BLOCK_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_PADDING_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_DIGESTS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_IMPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_EXPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, FldName: "GET_KEY_CHARACTERISTICS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, FldName: "ATTEST_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, FldName: "UPGRADE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, FldName: "CONFIGURE"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, FldName: "GET_HMAC_SHARING_PARAMETERS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, FldName: "COMPUTE_SHARED_HMAC"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, FldName: "VERIFY_AUTHORIZATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, FldName: "DELETE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, FldName: "DELETE_ALL_KEYS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, FldName: "IMPORT_WRAPPED_KEY"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "payload", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 32}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 64}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &StructType{Key: StructKey{Name: "trusty_km_begin_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 80}, + &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 72}, + &StructType{Key: StructKey{Name: "trusty_km_configure"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 92}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 88}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 24}, + &StructType{Key: StructKey{Name: "trusty_km_export_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &StructType{Key: StructKey{Name: "trusty_km_finish_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 76}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 60}, + &StructType{Key: StructKey{Name: "trusty_km_get_key_characteristics"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 36}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 40}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 48}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 56}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 52}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 44}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20}, + &StructType{Key: StructKey{Name: "trusty_km_import_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 100}, + &StructType{Key: StructKey{Name: "trusty_km_import_wrapped_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &StructType{Key: StructKey{Name: "trusty_km_update_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 68}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 84}, + &StructType{Key: StructKey{Name: "trusty_km_verify_authorization"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_secure_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_secure_msg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_supported_digests"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_supported_digests", TypeSize: 8}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "algorithm", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_purposes", FldName: "purpose", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5}}, + }}}, + {Key: StructKey{Name: "trusty_km_update_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_update_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_verify_authorization"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_verify_authorization", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "parameters_to_verify"}, + &StructType{Key: StructKey{Name: "trusty_km_hardware_auth_token"}, FldName: "auth_token"}, + }}}, + {Key: StructKey{Name: "trusty_password_handle"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_password_handle", TypeSize: 58}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "version", TypeSize: 1}}, Kind: 2, RangeEnd: 2}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "flags", TypeSize: 8}}, Kind: 2, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "salt", TypeSize: 8}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, {Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"}, &UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"}, @@ -31364,6 +31724,31 @@ var syscalls_arm = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21524}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "winsize"}}}, }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 23}, Kind: 2, Values: []string{"com.android.trusty.avb\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_gatekeeper", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 30}, Kind: 2, Values: []string{"com.android.trusty.gatekeeper\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_keymaster_secure", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 36}, Kind: 2, Values: []string{"com.android.trusty.keymaster.secure\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_km", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}}, + }}, {NR: 54, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074287829}, @@ -33851,6 +34236,36 @@ var syscalls_arm = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 322, Name: "openat$trusty", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 322, Name: "openat$trusty_avb", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 322, Name: "openat$trusty_gatekeeper", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 322, Name: "openat$trusty_km", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 322, Name: "openat$trusty_km_secure", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 322, Name: "openat$tun", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}}, @@ -39053,6 +39468,31 @@ var syscalls_arm = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "snd_seq_event"}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "data"}, }}, + {NR: 4, Name: "write$trusty", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_avb", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "trusty_avb_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_gatekeeper", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "trusty_gatekeeper_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_km", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "trusty_km_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_km_secure", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"}, + }}, {NR: 4, Name: "write$tun", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}}, @@ -44302,6 +44742,7 @@ var consts_arm = []ConstValue{ {Name: "TIPC_GROUP_LEAVE", Value: 136}, {Name: "TIPC_HIGH_IMPORTANCE", Value: 2}, {Name: "TIPC_IMPORTANCE", Value: 127}, + {Name: "TIPC_IOC_CONNECT", Value: 1074033280}, {Name: "TIPC_LINK_STATE", Value: 2}, {Name: "TIPC_LOW_IMPORTANCE"}, {Name: "TIPC_MAX_LINK_NAME", Value: 68}, @@ -44389,6 +44830,59 @@ var consts_arm = []ConstValue{ {Name: "TLS_CIPHER_AES_GCM_128", Value: 51}, {Name: "TLS_RX", Value: 2}, {Name: "TLS_TX", Value: 1}, + {Name: "TRUSTY_AVB_GET_VERSION", Value: 4}, + {Name: "TRUSTY_AVB_LOCK_BOOT_STATE", Value: 14}, + {Name: "TRUSTY_AVB_READ_LOCK_STATE", Value: 10}, + {Name: "TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES", Value: 6}, + {Name: "TRUSTY_AVB_READ_ROLLBACK_INDEX"}, + {Name: "TRUSTY_AVB_REQ_SHIFT", Value: 1}, + {Name: "TRUSTY_AVB_WRITE_LOCK_STATE", Value: 12}, + {Name: "TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES", Value: 8}, + {Name: "TRUSTY_AVB_WRITE_ROLLBACK_INDEX", Value: 2}, + {Name: "TRUSTY_ERROR_INVALID", Value: 1}, + {Name: "TRUSTY_ERROR_NONE"}, + {Name: "TRUSTY_ERROR_RETRY", Value: 2}, + {Name: "TRUSTY_ERROR_UNKNOWN", Value: 3}, + {Name: "TRUSTY_GK_ENROLL"}, + {Name: "TRUSTY_GK_VERIFY", Value: 2}, + {Name: "TRUSTY_KM_ABORT_OPERATION", Value: 16}, + {Name: "TRUSTY_KM_ADD_RNG_ENTROPY", Value: 32}, + {Name: "TRUSTY_KM_ATTEST_KEY", Value: 64}, + {Name: "TRUSTY_KM_BEGIN_OPERATION", Value: 4}, + {Name: "TRUSTY_KM_BIGNUM", Value: 2147483648}, + {Name: "TRUSTY_KM_BOOL", Value: 1879048192}, + {Name: "TRUSTY_KM_BYTES", Value: 2415919104}, + {Name: "TRUSTY_KM_COMPUTE_SHARED_HMAC", Value: 80}, + {Name: "TRUSTY_KM_CONFIGURE", Value: 72}, + {Name: "TRUSTY_KM_DATE", Value: 1610612736}, + {Name: "TRUSTY_KM_DELETE_ALL_KEYS", Value: 92}, + {Name: "TRUSTY_KM_DELETE_KEY", Value: 88}, + {Name: "TRUSTY_KM_DESTROY_ATTESTATION_IDS", Value: 96}, + {Name: "TRUSTY_KM_ENUM", Value: 268435456}, + {Name: "TRUSTY_KM_ENUM_REP", Value: 536870912}, + {Name: "TRUSTY_KM_EXPORT_KEY", Value: 24}, + {Name: "TRUSTY_KM_FINISH_OPERATION", Value: 12}, + {Name: "TRUSTY_KM_GENERATE_KEY"}, + {Name: "TRUSTY_KM_GET_AUTH_TOKEN_KEY"}, + {Name: "TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS", Value: 76}, + {Name: "TRUSTY_KM_GET_KEY_CHARACTERISTICS", Value: 60}, + {Name: "TRUSTY_KM_GET_SUPPORTED_ALGORITHMS", Value: 36}, + {Name: "TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES", Value: 40}, + {Name: "TRUSTY_KM_GET_SUPPORTED_DIGESTS", Value: 48}, + {Name: "TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS", Value: 56}, + {Name: "TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS", Value: 52}, + {Name: "TRUSTY_KM_GET_SUPPORTED_PADDING_MODES", Value: 44}, + {Name: "TRUSTY_KM_GET_VERSION", Value: 28}, + {Name: "TRUSTY_KM_IMPORT_KEY", Value: 20}, + {Name: "TRUSTY_KM_IMPORT_WRAPPED_KEY", Value: 100}, + {Name: "TRUSTY_KM_REQ_SHIFT", Value: 2}, + {Name: "TRUSTY_KM_UINT", Value: 805306368}, + {Name: "TRUSTY_KM_UINT_REP", Value: 1073741824}, + {Name: "TRUSTY_KM_ULONG", Value: 1342177280}, + {Name: "TRUSTY_KM_ULONG_REP", Value: 2684354560}, + {Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8}, + {Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68}, + {Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84}, {Name: "TUNATTACHFILTER", Value: 1074287829}, {Name: "TUNDETACHFILTER", Value: 1074287830}, {Name: "TUNGETFEATURES", Value: 2147767503}, @@ -46172,4 +46666,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "9a8f2f521bada026833882545a3c1dfde4f3ec87" +const revision_arm = "5fb6ba1fcab442e1305ff81004954b7ee140e165" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 457ece864..79c452772 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -86,6 +86,11 @@ var resources_arm64 = []*ResourceDesc{ {Name: "fd_sr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_sr"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_timer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_timer"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_avb", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_avb"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -22306,6 +22311,361 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tpacket_req"}, FldName: "req"}, &StructType{Key: StructKey{Name: "tpacket_req3"}, FldName: "req3"}, }}}, + {Key: StructKey{Name: "trusty_authorization_bytes"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_bytes", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data_length", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, FldName: "ENUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, FldName: "ENUM_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, FldName: "UINT"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, FldName: "UINT_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, FldName: "ULONG"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, FldName: "ULONG_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, FldName: "DATE"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, FldName: "BOOL"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, FldName: "BIGNUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, FldName: "BYTES"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2147483648}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1879048192}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "data", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2415919104}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1610612736}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 268435456}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 536870912}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 805306368}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1073741824}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1342177280}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2684354560}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_set"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_set", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "indirect_data"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "elements_count", TypeSize: 4}}, Buf: "elements"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "elements_size", TypeSize: 4}}, BitSize: 8, Buf: "elements"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elements", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "trusty_authorization_elem"}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "READ_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "WRITE_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, FldName: "AVB_GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, FldName: "READ_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, FldName: "WRITE_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, FldName: "READ_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, FldName: "WRITE_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, FldName: "LOCK_BOOT_STATE"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_rollback_index"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_rollback_index", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "value", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "slot", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_blob"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_blob", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "data"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_enroll"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_enroll", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "enrolled_password"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "password_handle_len", TypeSize: 4}}, BitSize: 8, Buf: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_password_handle"}, FldName: "password_handle"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_error"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_error", TypeSize: 12}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_gatekeeper_error"}, FldName: "err"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_retry"}, FldName: "retry"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_enroll"}, FldName: "enroll"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_verify"}, FldName: "verify"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_retry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_retry", TypeSize: 16}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retry_timeout", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_verify"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_verify", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + }}}, + {Key: StructKey{Name: "trusty_km_attest_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_attest_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "attest_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_begin_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_begin_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "purpose", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_configure"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_configure", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_version", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_patchlevel", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_export_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_export_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_finish_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_finish_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "signature"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + }}}, + {Key: StructKey{Name: "trusty_km_get_key_characteristics"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_get_key_characteristics", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_hardware_auth_token"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hardware_auth_token", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "authenticator_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "authenticator_type", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "timestamp", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "mac"}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameter", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "seed"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "none", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameters_array", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "num_params", TypeSize: 4}}, Buf: "params"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "params", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}}}, + }}}, + {Key: StructKey{Name: "trusty_km_import_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_import_wrapped_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_wrapped_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapped_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapping_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "masking_key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "password_sid", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "biometric_sid", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, FldName: "GENERATE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, FldName: "BEGIN_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, FldName: "UPDATE_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, FldName: "FINISH_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, FldName: "ABORT_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, FldName: "IMPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, FldName: "EXPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, FldName: "GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, FldName: "ADD_RNG_ENTROPY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, FldName: "GET_SUPPORTED_ALGORITHMS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_BLOCK_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_PADDING_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_DIGESTS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_IMPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_EXPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, FldName: "GET_KEY_CHARACTERISTICS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, FldName: "ATTEST_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, FldName: "UPGRADE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, FldName: "CONFIGURE"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, FldName: "GET_HMAC_SHARING_PARAMETERS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, FldName: "COMPUTE_SHARED_HMAC"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, FldName: "VERIFY_AUTHORIZATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, FldName: "DELETE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, FldName: "DELETE_ALL_KEYS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, FldName: "IMPORT_WRAPPED_KEY"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "payload", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 32}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 64}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &StructType{Key: StructKey{Name: "trusty_km_begin_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 80}, + &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 72}, + &StructType{Key: StructKey{Name: "trusty_km_configure"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 92}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 88}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 24}, + &StructType{Key: StructKey{Name: "trusty_km_export_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &StructType{Key: StructKey{Name: "trusty_km_finish_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 76}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 60}, + &StructType{Key: StructKey{Name: "trusty_km_get_key_characteristics"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 36}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 40}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 48}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 56}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 52}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 44}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20}, + &StructType{Key: StructKey{Name: "trusty_km_import_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 100}, + &StructType{Key: StructKey{Name: "trusty_km_import_wrapped_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &StructType{Key: StructKey{Name: "trusty_km_update_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 68}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 84}, + &StructType{Key: StructKey{Name: "trusty_km_verify_authorization"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_secure_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_secure_msg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_supported_digests"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_supported_digests", TypeSize: 8}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "algorithm", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_purposes", FldName: "purpose", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5}}, + }}}, + {Key: StructKey{Name: "trusty_km_update_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_update_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_verify_authorization"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_verify_authorization", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "parameters_to_verify"}, + &StructType{Key: StructKey{Name: "trusty_km_hardware_auth_token"}, FldName: "auth_token"}, + }}}, + {Key: StructKey{Name: "trusty_password_handle"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_password_handle", TypeSize: 58}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "version", TypeSize: 1}}, Kind: 2, RangeEnd: 2}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "flags", TypeSize: 8}}, Kind: 2, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "salt", TypeSize: 8}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, {Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"}, &UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"}, @@ -31774,6 +32134,31 @@ var syscalls_arm64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21524}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "winsize"}}}, }}, + {NR: 29, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}}, + }}, + {NR: 29, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 23}, Kind: 2, Values: []string{"com.android.trusty.avb\x00"}}}, + }}, + {NR: 29, Name: "ioctl$TIPC_IOC_CONNECT_gatekeeper", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 30}, Kind: 2, Values: []string{"com.android.trusty.gatekeeper\x00"}}}, + }}, + {NR: 29, Name: "ioctl$TIPC_IOC_CONNECT_keymaster_secure", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 36}, Kind: 2, Values: []string{"com.android.trusty.keymaster.secure\x00"}}}, + }}, + {NR: 29, Name: "ioctl$TIPC_IOC_CONNECT_km", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}}, + }}, {NR: 29, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074812117}, @@ -34230,6 +34615,36 @@ var syscalls_arm64 = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 56, Name: "openat$trusty", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 56, Name: "openat$trusty_avb", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 56, Name: "openat$trusty_gatekeeper", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 56, Name: "openat$trusty_km", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 56, Name: "openat$trusty_km_secure", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 56, Name: "openat$tun", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}}, @@ -39372,6 +39787,31 @@ var syscalls_arm64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "snd_seq_event"}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"}, }}, + {NR: 64, Name: "write$trusty", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 64, Name: "write$trusty_avb", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_avb_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 64, Name: "write$trusty_gatekeeper", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_gatekeeper_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 64, Name: "write$trusty_km", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_km_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 64, Name: "write$trusty_km_secure", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, {NR: 64, Name: "write$tun", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}}, @@ -44640,6 +45080,7 @@ var consts_arm64 = []ConstValue{ {Name: "TIPC_GROUP_LEAVE", Value: 136}, {Name: "TIPC_HIGH_IMPORTANCE", Value: 2}, {Name: "TIPC_IMPORTANCE", Value: 127}, + {Name: "TIPC_IOC_CONNECT", Value: 1074295424}, {Name: "TIPC_LINK_STATE", Value: 2}, {Name: "TIPC_LOW_IMPORTANCE"}, {Name: "TIPC_MAX_LINK_NAME", Value: 68}, @@ -44727,6 +45168,59 @@ var consts_arm64 = []ConstValue{ {Name: "TLS_CIPHER_AES_GCM_128", Value: 51}, {Name: "TLS_RX", Value: 2}, {Name: "TLS_TX", Value: 1}, + {Name: "TRUSTY_AVB_GET_VERSION", Value: 4}, + {Name: "TRUSTY_AVB_LOCK_BOOT_STATE", Value: 14}, + {Name: "TRUSTY_AVB_READ_LOCK_STATE", Value: 10}, + {Name: "TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES", Value: 6}, + {Name: "TRUSTY_AVB_READ_ROLLBACK_INDEX"}, + {Name: "TRUSTY_AVB_REQ_SHIFT", Value: 1}, + {Name: "TRUSTY_AVB_WRITE_LOCK_STATE", Value: 12}, + {Name: "TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES", Value: 8}, + {Name: "TRUSTY_AVB_WRITE_ROLLBACK_INDEX", Value: 2}, + {Name: "TRUSTY_ERROR_INVALID", Value: 1}, + {Name: "TRUSTY_ERROR_NONE"}, + {Name: "TRUSTY_ERROR_RETRY", Value: 2}, + {Name: "TRUSTY_ERROR_UNKNOWN", Value: 3}, + {Name: "TRUSTY_GK_ENROLL"}, + {Name: "TRUSTY_GK_VERIFY", Value: 2}, + {Name: "TRUSTY_KM_ABORT_OPERATION", Value: 16}, + {Name: "TRUSTY_KM_ADD_RNG_ENTROPY", Value: 32}, + {Name: "TRUSTY_KM_ATTEST_KEY", Value: 64}, + {Name: "TRUSTY_KM_BEGIN_OPERATION", Value: 4}, + {Name: "TRUSTY_KM_BIGNUM", Value: 2147483648}, + {Name: "TRUSTY_KM_BOOL", Value: 1879048192}, + {Name: "TRUSTY_KM_BYTES", Value: 2415919104}, + {Name: "TRUSTY_KM_COMPUTE_SHARED_HMAC", Value: 80}, + {Name: "TRUSTY_KM_CONFIGURE", Value: 72}, + {Name: "TRUSTY_KM_DATE", Value: 1610612736}, + {Name: "TRUSTY_KM_DELETE_ALL_KEYS", Value: 92}, + {Name: "TRUSTY_KM_DELETE_KEY", Value: 88}, + {Name: "TRUSTY_KM_DESTROY_ATTESTATION_IDS", Value: 96}, + {Name: "TRUSTY_KM_ENUM", Value: 268435456}, + {Name: "TRUSTY_KM_ENUM_REP", Value: 536870912}, + {Name: "TRUSTY_KM_EXPORT_KEY", Value: 24}, + {Name: "TRUSTY_KM_FINISH_OPERATION", Value: 12}, + {Name: "TRUSTY_KM_GENERATE_KEY"}, + {Name: "TRUSTY_KM_GET_AUTH_TOKEN_KEY"}, + {Name: "TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS", Value: 76}, + {Name: "TRUSTY_KM_GET_KEY_CHARACTERISTICS", Value: 60}, + {Name: "TRUSTY_KM_GET_SUPPORTED_ALGORITHMS", Value: 36}, + {Name: "TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES", Value: 40}, + {Name: "TRUSTY_KM_GET_SUPPORTED_DIGESTS", Value: 48}, + {Name: "TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS", Value: 56}, + {Name: "TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS", Value: 52}, + {Name: "TRUSTY_KM_GET_SUPPORTED_PADDING_MODES", Value: 44}, + {Name: "TRUSTY_KM_GET_VERSION", Value: 28}, + {Name: "TRUSTY_KM_IMPORT_KEY", Value: 20}, + {Name: "TRUSTY_KM_IMPORT_WRAPPED_KEY", Value: 100}, + {Name: "TRUSTY_KM_REQ_SHIFT", Value: 2}, + {Name: "TRUSTY_KM_UINT", Value: 805306368}, + {Name: "TRUSTY_KM_UINT_REP", Value: 1073741824}, + {Name: "TRUSTY_KM_ULONG", Value: 1342177280}, + {Name: "TRUSTY_KM_ULONG_REP", Value: 2684354560}, + {Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8}, + {Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68}, + {Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84}, {Name: "TUNATTACHFILTER", Value: 1074812117}, {Name: "TUNDETACHFILTER", Value: 1074812118}, {Name: "TUNGETFEATURES", Value: 2147767503}, @@ -46481,4 +46975,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "21250148b8a615197750c2b1e538f3fdb0fd380d" +const revision_arm64 = "7f0cf979fc6d1fc624ee0f2187d86f90279b0574" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 8b8797ca4..d679f870b 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -85,6 +85,11 @@ var resources_ppc64le = []*ResourceDesc{ {Name: "fd_sr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_sr"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_timer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_timer"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_avb", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_avb"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -22112,6 +22117,361 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "tpacket_req"}, FldName: "req"}, &StructType{Key: StructKey{Name: "tpacket_req3"}, FldName: "req3"}, }}}, + {Key: StructKey{Name: "trusty_authorization_bytes"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_bytes", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data_length", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, FldName: "ENUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, FldName: "ENUM_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, FldName: "UINT"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, FldName: "UINT_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, FldName: "ULONG"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, FldName: "ULONG_REP"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, FldName: "DATE"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, FldName: "BOOL"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, FldName: "BIGNUM"}, + &StructType{Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, FldName: "BYTES"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2147483648}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1879048192}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "data", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2415919104}, + &StructType{Key: StructKey{Name: "trusty_authorization_bytes"}, FldName: "data"}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_DATE, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1610612736}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 268435456}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 536870912}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 805306368}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1073741824}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "data", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 1342177280}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "tag", TypeSize: 4}}, Val: 2684354560}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "data", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_authorization_set"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_authorization_set", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "indirect_data"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "elements_count", TypeSize: 4}}, Buf: "elements"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "elements_size", TypeSize: 4}}, BitSize: 8, Buf: "elements"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elements", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "trusty_authorization_elem"}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "READ_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, FldName: "WRITE_ROLLBACK_INDEX"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, FldName: "AVB_GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, FldName: "READ_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, FldName: "WRITE_PERMANENT_ATTRIBUTES"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, FldName: "READ_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, FldName: "WRITE_LOCK_STATE"}, + &StructType{Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, FldName: "LOCK_BOOT_STATE"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8]", TypeSize: 5}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "payload", TypeSize: 1}}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index]", TypeSize: 16}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &StructType{Key: StructKey{Name: "trusty_avb_rollback_index"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_avb_rollback_index"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_avb_rollback_index", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "value", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "slot", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_blob"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_blob", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "data"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_enroll"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_enroll", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "enrolled_password"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "password_handle_len", TypeSize: 4}}, BitSize: 8, Buf: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_password_handle"}, FldName: "password_handle"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_error"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_error", TypeSize: 12}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_gatekeeper_error"}, FldName: "err"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_retry"}, FldName: "retry"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_enroll"}, FldName: "enroll"}, + &StructType{Key: StructKey{Name: "trusty_gatekeeper_verify"}, FldName: "verify"}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_retry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_retry", TypeSize: 16}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_cmd", FldName: "cmd", TypeSize: 4}}, Vals: []uint64{0, 2}, BitMask: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "user_id", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retry_timeout", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_gatekeeper_verify"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_gatekeeper_verify", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "error", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "user_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "password_handle"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "provided_password"}, + }}}, + {Key: StructKey{Name: "trusty_km_attest_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_attest_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "attest_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_begin_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_begin_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "purpose", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_configure"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_configure", TypeSize: 8}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_version", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "os_patchlevel", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_export_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_export_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_finish_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_finish_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "signature"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + }}}, + {Key: StructKey{Name: "trusty_km_get_key_characteristics"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_get_key_characteristics", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_blob"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_hardware_auth_token"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hardware_auth_token", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "authenticator_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "authenticator_type", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "timestamp", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "mac"}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameter", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "seed"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "none", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + }}}, + {Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_hmac_sharing_parameters_array", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "num_params", TypeSize: 4}}, Buf: "params"}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "params", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameter"}}}, + }}}, + {Key: StructKey{Name: "trusty_km_import_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "key_description"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_key_format", FldName: "key_format", TypeSize: 4}}, Vals: []uint64{0, 1, 3}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "key_material"}, + }}}, + {Key: StructKey{Name: "trusty_km_import_wrapped_key"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_import_wrapped_key", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapped_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "wrapping_key"}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "masking_key"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "password_sid", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "biometric_sid", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, FldName: "GENERATE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, FldName: "BEGIN_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, FldName: "UPDATE_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, FldName: "FINISH_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, FldName: "ABORT_OPERATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, FldName: "IMPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, FldName: "EXPORT_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, FldName: "GET_VERSION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, FldName: "ADD_RNG_ENTROPY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, FldName: "GET_SUPPORTED_ALGORITHMS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_BLOCK_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_PADDING_MODES"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, FldName: "GET_SUPPORTED_DIGESTS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_IMPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, FldName: "GET_SUPPORTED_EXPORT_FORMATS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, FldName: "GET_KEY_CHARACTERISTICS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, FldName: "ATTEST_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, FldName: "UPGRADE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, FldName: "CONFIGURE"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, FldName: "GET_HMAC_SHARING_PARAMETERS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, FldName: "COMPUTE_SHARED_HMAC"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, FldName: "VERIFY_AUTHORIZATION"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, FldName: "DELETE_KEY"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, FldName: "DELETE_ALL_KEYS"}, + &StructType{Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, FldName: "IMPORT_WRAPPED_KEY"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "payload", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 32}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 64}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &StructType{Key: StructKey{Name: "trusty_km_begin_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 80}, + &StructType{Key: StructKey{Name: "trusty_km_hmac_sharing_parameters_array"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 72}, + &StructType{Key: StructKey{Name: "trusty_km_configure"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 92}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 88}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 24}, + &StructType{Key: StructKey{Name: "trusty_km_export_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &StructType{Key: StructKey{Name: "trusty_km_finish_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 76}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 60}, + &StructType{Key: StructKey{Name: "trusty_km_get_key_characteristics"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 36}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 40}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 48}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 56}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]]", TypeSize: 8}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 52}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "payload", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests]", TypeSize: 12}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 44}, + &StructType{Key: StructKey{Name: "trusty_km_supported_digests"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void]", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20}, + &StructType{Key: StructKey{Name: "trusty_km_import_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 100}, + &StructType{Key: StructKey{Name: "trusty_km_import_wrapped_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &StructType{Key: StructKey{Name: "trusty_km_update_operation"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 68}, + &StructType{Key: StructKey{Name: "trusty_km_attest_key"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 84}, + &StructType{Key: StructKey{Name: "trusty_km_verify_authorization"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_km_secure_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_secure_msg", TypeSize: 4}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "trusty_km_supported_digests"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_supported_digests", TypeSize: 8}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_algorithms", FldName: "algorithm", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 32, 33, 128}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_km_purposes", FldName: "purpose", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5}}, + }}}, + {Key: StructKey{Name: "trusty_km_update_operation"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_update_operation", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "handle", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_blob"}, FldName: "input"}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "additional_params"}, + }}}, + {Key: StructKey{Name: "trusty_km_verify_authorization"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_km_verify_authorization", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "challenge", TypeSize: 8}}}, + &StructType{Key: StructKey{Name: "trusty_authorization_set"}, FldName: "parameters_to_verify"}, + &StructType{Key: StructKey{Name: "trusty_km_hardware_auth_token"}, FldName: "auth_token"}, + }}}, + {Key: StructKey{Name: "trusty_password_handle"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_password_handle", TypeSize: 58}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "version", TypeSize: 1}}, Kind: 2, RangeEnd: 2}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "user_id", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "flags", TypeSize: 8}}, Kind: 2, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "salt", TypeSize: 8}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, + }}}, {Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"}, &UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"}, @@ -30746,6 +31106,31 @@ var syscalls_ppc64le = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21522}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037248}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037248}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 23}, Kind: 2, Values: []string{"com.android.trusty.avb\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_gatekeeper", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037248}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 30}, Kind: 2, Values: []string{"com.android.trusty.gatekeeper\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_keymaster_secure", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037248}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 36}, Kind: 2, Values: []string{"com.android.trusty.keymaster.secure\x00"}}}, + }}, + {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_km", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037248}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}}, + }}, {NR: 54, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148553941}, @@ -32712,6 +33097,36 @@ var syscalls_ppc64le = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 131072, 16384, 128, 65536, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 286, Name: "openat$trusty", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 286, Name: "openat$trusty_avb", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 286, Name: "openat$trusty_gatekeeper", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 286, Name: "openat$trusty_km", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 286, Name: "openat$trusty_km_secure", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 286, Name: "openat$tun", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}}, @@ -37767,6 +38182,31 @@ var syscalls_ppc64le = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "snd_seq_event"}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"}, }}, + {NR: 4, Name: "write$trusty", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_avb", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_avb_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_gatekeeper", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_gatekeeper", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_gatekeeper_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_km", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_km_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, + {NR: 4, Name: "write$trusty_km_secure", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, {NR: 4, Name: "write$tun", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}}, @@ -42917,6 +43357,7 @@ var consts_ppc64le = []ConstValue{ {Name: "TIPC_GROUP_LEAVE", Value: 136}, {Name: "TIPC_HIGH_IMPORTANCE", Value: 2}, {Name: "TIPC_IMPORTANCE", Value: 127}, + {Name: "TIPC_IOC_CONNECT", Value: 2148037248}, {Name: "TIPC_LINK_STATE", Value: 2}, {Name: "TIPC_LOW_IMPORTANCE"}, {Name: "TIPC_MAX_LINK_NAME", Value: 68}, @@ -43004,6 +43445,59 @@ var consts_ppc64le = []ConstValue{ {Name: "TLS_CIPHER_AES_GCM_128", Value: 51}, {Name: "TLS_RX", Value: 2}, {Name: "TLS_TX", Value: 1}, + {Name: "TRUSTY_AVB_GET_VERSION", Value: 4}, + {Name: "TRUSTY_AVB_LOCK_BOOT_STATE", Value: 14}, + {Name: "TRUSTY_AVB_READ_LOCK_STATE", Value: 10}, + {Name: "TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES", Value: 6}, + {Name: "TRUSTY_AVB_READ_ROLLBACK_INDEX"}, + {Name: "TRUSTY_AVB_REQ_SHIFT", Value: 1}, + {Name: "TRUSTY_AVB_WRITE_LOCK_STATE", Value: 12}, + {Name: "TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES", Value: 8}, + {Name: "TRUSTY_AVB_WRITE_ROLLBACK_INDEX", Value: 2}, + {Name: "TRUSTY_ERROR_INVALID", Value: 1}, + {Name: "TRUSTY_ERROR_NONE"}, + {Name: "TRUSTY_ERROR_RETRY", Value: 2}, + {Name: "TRUSTY_ERROR_UNKNOWN", Value: 3}, + {Name: "TRUSTY_GK_ENROLL"}, + {Name: "TRUSTY_GK_VERIFY", Value: 2}, + {Name: "TRUSTY_KM_ABORT_OPERATION", Value: 16}, + {Name: "TRUSTY_KM_ADD_RNG_ENTROPY", Value: 32}, + {Name: "TRUSTY_KM_ATTEST_KEY", Value: 64}, + {Name: "TRUSTY_KM_BEGIN_OPERATION", Value: 4}, + {Name: "TRUSTY_KM_BIGNUM", Value: 2147483648}, + {Name: "TRUSTY_KM_BOOL", Value: 1879048192}, + {Name: "TRUSTY_KM_BYTES", Value: 2415919104}, + {Name: "TRUSTY_KM_COMPUTE_SHARED_HMAC", Value: 80}, + {Name: "TRUSTY_KM_CONFIGURE", Value: 72}, + {Name: "TRUSTY_KM_DATE", Value: 1610612736}, + {Name: "TRUSTY_KM_DELETE_ALL_KEYS", Value: 92}, + {Name: "TRUSTY_KM_DELETE_KEY", Value: 88}, + {Name: "TRUSTY_KM_DESTROY_ATTESTATION_IDS", Value: 96}, + {Name: "TRUSTY_KM_ENUM", Value: 268435456}, + {Name: "TRUSTY_KM_ENUM_REP", Value: 536870912}, + {Name: "TRUSTY_KM_EXPORT_KEY", Value: 24}, + {Name: "TRUSTY_KM_FINISH_OPERATION", Value: 12}, + {Name: "TRUSTY_KM_GENERATE_KEY"}, + {Name: "TRUSTY_KM_GET_AUTH_TOKEN_KEY"}, + {Name: "TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS", Value: 76}, + {Name: "TRUSTY_KM_GET_KEY_CHARACTERISTICS", Value: 60}, + {Name: "TRUSTY_KM_GET_SUPPORTED_ALGORITHMS", Value: 36}, + {Name: "TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES", Value: 40}, + {Name: "TRUSTY_KM_GET_SUPPORTED_DIGESTS", Value: 48}, + {Name: "TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS", Value: 56}, + {Name: "TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS", Value: 52}, + {Name: "TRUSTY_KM_GET_SUPPORTED_PADDING_MODES", Value: 44}, + {Name: "TRUSTY_KM_GET_VERSION", Value: 28}, + {Name: "TRUSTY_KM_IMPORT_KEY", Value: 20}, + {Name: "TRUSTY_KM_IMPORT_WRAPPED_KEY", Value: 100}, + {Name: "TRUSTY_KM_REQ_SHIFT", Value: 2}, + {Name: "TRUSTY_KM_UINT", Value: 805306368}, + {Name: "TRUSTY_KM_UINT_REP", Value: 1073741824}, + {Name: "TRUSTY_KM_ULONG", Value: 1342177280}, + {Name: "TRUSTY_KM_ULONG_REP", Value: 2684354560}, + {Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8}, + {Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68}, + {Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84}, {Name: "TUNATTACHFILTER", Value: 2148553941}, {Name: "TUNDETACHFILTER", Value: 2148553942}, {Name: "TUNGETFEATURES", Value: 1074025679}, @@ -43839,4 +44333,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "f1dfc77ec33b988ac23bfd1917705787a96b5348" +const revision_ppc64le = "debbebfbc6525345884bd5c7595a0d8804bc46db" diff --git a/sys/linux/trusty.txt b/sys/linux/trusty.txt new file mode 100644 index 000000000..9e915c3da --- /dev/null +++ b/sys/linux/trusty.txt @@ -0,0 +1,354 @@ +# Copyright 2018 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +# Trusty IPC device (https://android.googlesource.com/kernel/common android-trusty-4.9). + +include +include + +resource fd_trusty[fd] + +openat$trusty(fd const[AT_FDCWD], file ptr[in, string["/dev/trusty-ipc-dev0"]], flags flags[trusty_open_flags], mode const[0]) fd_trusty +ioctl$TIPC_IOC_CONNECT(fd fd_trusty, cmd const[TIPC_IOC_CONNECT], arg ptr[in, string[trusty_ports]]) +write$trusty(fd fd_trusty, msg ptr[in, array[int8]], len len[msg]) + +# TODO: describe interface for the rest of ports. +trusty_ports = "com.android.trusty.gatekeeper", "com.android.trusty.keymaster", "com.android.trusty.keymaster.secure", "com.android.trusty.avb", "com.android.trusty.storage.proxy", "com.android.trusty.hwrng", "com.android.trusty.storage.client.td", "com.android.trusty.storage.client.tdea", "com.android.trusty.storage.client.tp", "com.android.trusty.storage.proxy", "com.android.trusty.hwkey", "com.android.trusty.appmgmt.srv2.start" + +trusty_open_flags = O_RDWR, O_RDWR_NONBLOCK + +define O_RDWR_NONBLOCK O_RDWR | O_NONBLOCK + +# This is not defined in any kernel header. +define TIPC_IOC_CONNECT _IOW('r', 0x80, char*) + +define TRUSTY_ERROR_NONE 0 +define TRUSTY_ERROR_INVALID 1 +define TRUSTY_ERROR_RETRY 2 +define TRUSTY_ERROR_UNKNOWN 3 + +### gatekeeper ### + +resource fd_trusty_gatekeeper[fd_trusty] + +openat$trusty_gatekeeper(fd const[AT_FDCWD], file ptr[in, string["/dev/trusty-ipc-dev0"]], flags flags[trusty_open_flags], mode const[0]) fd_trusty_gatekeeper +ioctl$TIPC_IOC_CONNECT_gatekeeper(fd fd_trusty_gatekeeper, cmd const[TIPC_IOC_CONNECT], arg ptr[in, string["com.android.trusty.gatekeeper"]]) +write$trusty_gatekeeper(fd fd_trusty_gatekeeper, msg ptr[in, trusty_gatekeeper_msg], len len[msg]) + +trusty_gatekeeper_msg [ + err trusty_gatekeeper_error + retry trusty_gatekeeper_retry + enroll trusty_gatekeeper_enroll + verify trusty_gatekeeper_verify +] [varlen] + +trusty_gatekeeper_error { + cmd flags[trusty_gatekeeper_cmd, int32] + error const[TRUSTY_ERROR_INVALID, int32] + user_id const[0, int32] +} + +trusty_gatekeeper_retry { + cmd flags[trusty_gatekeeper_cmd, int32] + error const[TRUSTY_ERROR_RETRY, int32] + user_id const[0, int32] + retry_timeout int32 +} + +trusty_gatekeeper_enroll { + cmd const[TRUSTY_GK_ENROLL, int32] + error const[TRUSTY_ERROR_NONE, int32] + user_id trusty_gatekeeper_user_id + provided_password trusty_blob + enrolled_password trusty_blob + password_handle_len bytesize[password_handle, int32] + password_handle trusty_password_handle +} [packed] + +trusty_gatekeeper_verify { + cmd const[TRUSTY_GK_VERIFY, int32] + error const[TRUSTY_ERROR_NONE, int32] + user_id trusty_gatekeeper_user_id + challenge int64 + password_handle trusty_blob + provided_password trusty_blob +} [packed] + +trusty_password_handle { + version int8[0:2] + user_id int64 + flags bool64 + salt int64 + signature array[int8, 32] + hardware_backed bool8 +} [packed] + +trusty_blob { + len bytesize[data, int32] + data array[int8] +} [packed] + +type trusty_gatekeeper_user_id int32[0:4] + +trusty_gatekeeper_cmd = TRUSTY_GK_ENROLL, TRUSTY_GK_VERIFY + +define TRUSTY_GK_ENROLL 0 +define TRUSTY_GK_VERIFY 2 + +### keymaster.secure ### + +resource fd_trusty_km_secure[fd_trusty] + +openat$trusty_km_secure(fd const[AT_FDCWD], file ptr[in, string["/dev/trusty-ipc-dev0"]], flags flags[trusty_open_flags], mode const[0]) fd_trusty_km_secure +ioctl$TIPC_IOC_CONNECT_keymaster_secure(fd fd_trusty_km_secure, cmd const[TIPC_IOC_CONNECT], arg ptr[in, string["com.android.trusty.keymaster.secure"]]) +write$trusty_km_secure(fd fd_trusty_km_secure, msg ptr[in, trusty_km_secure_msg], len len[msg]) + +trusty_km_secure_msg { + cmd const[TRUSTY_KM_GET_AUTH_TOKEN_KEY, int32] +} + +define TRUSTY_KM_GET_AUTH_TOKEN_KEY 0 + +### keymaster ### + +resource fd_trusty_km[fd_trusty] + +openat$trusty_km(fd const[AT_FDCWD], file ptr[in, string["/dev/trusty-ipc-dev0"]], flags flags[trusty_open_flags], mode const[0]) fd_trusty_km +ioctl$TIPC_IOC_CONNECT_km(fd fd_trusty_km, cmd const[TIPC_IOC_CONNECT], arg ptr[in, string["com.android.trusty.keymaster"]]) +write$trusty_km(fd fd_trusty_km, msg ptr[in, trusty_km_msg], len len[msg]) + +trusty_km_msg [ + GENERATE_KEY trusty_km_msg_t[TRUSTY_KM_GENERATE_KEY, trusty_authorization_set] + BEGIN_OPERATION trusty_km_msg_t[TRUSTY_KM_BEGIN_OPERATION, trusty_km_begin_operation] + UPDATE_OPERATION trusty_km_msg_t[TRUSTY_KM_UPDATE_OPERATION, trusty_km_update_operation] + FINISH_OPERATION trusty_km_msg_t[TRUSTY_KM_FINISH_OPERATION, trusty_km_finish_operation] + ABORT_OPERATION trusty_km_msg_t[TRUSTY_KM_ABORT_OPERATION, int64] + IMPORT_KEY trusty_km_msg_t[TRUSTY_KM_IMPORT_KEY, trusty_km_import_key] + EXPORT_KEY trusty_km_msg_t[TRUSTY_KM_EXPORT_KEY, trusty_km_export_key] + GET_VERSION trusty_km_msg_t[TRUSTY_KM_GET_VERSION, void] + ADD_RNG_ENTROPY trusty_km_msg_t[TRUSTY_KM_ADD_RNG_ENTROPY, trusty_blob] + GET_SUPPORTED_ALGORITHMS trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_ALGORITHMS, void] + GET_SUPPORTED_BLOCK_MODES trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES, trusty_km_supported_digests] + GET_SUPPORTED_PADDING_MODES trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_PADDING_MODES, trusty_km_supported_digests] + GET_SUPPORTED_DIGESTS trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_DIGESTS, trusty_km_supported_digests] + GET_SUPPORTED_IMPORT_FORMATS trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS, flags[trusty_km_algorithms, int32]] + GET_SUPPORTED_EXPORT_FORMATS trusty_km_msg_t[TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS, flags[trusty_km_algorithms, int32]] + GET_KEY_CHARACTERISTICS trusty_km_msg_t[TRUSTY_KM_GET_KEY_CHARACTERISTICS, trusty_km_get_key_characteristics] + ATTEST_KEY trusty_km_msg_t[TRUSTY_KM_ATTEST_KEY, trusty_km_attest_key] + UPGRADE_KEY trusty_km_msg_t[TRUSTY_KM_UPGRADE_KEY, trusty_km_attest_key] + CONFIGURE trusty_km_msg_t[TRUSTY_KM_CONFIGURE, trusty_km_configure] + GET_HMAC_SHARING_PARAMETERS trusty_km_msg_t[TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS, void] + COMPUTE_SHARED_HMAC trusty_km_msg_t[TRUSTY_KM_COMPUTE_SHARED_HMAC, trusty_km_hmac_sharing_parameters_array] + VERIFY_AUTHORIZATION trusty_km_msg_t[TRUSTY_KM_VERIFY_AUTHORIZATION, trusty_km_verify_authorization] + DELETE_KEY trusty_km_msg_t[TRUSTY_KM_DELETE_KEY, trusty_blob] + DELETE_ALL_KEYS trusty_km_msg_t[TRUSTY_KM_DELETE_ALL_KEYS, void] +# TODO: is DESTROY_ATTESTATION_IDS a thing? Where is it handled? + IMPORT_WRAPPED_KEY trusty_km_msg_t[TRUSTY_KM_IMPORT_WRAPPED_KEY, trusty_km_import_wrapped_key] +] [varlen] + +type trusty_km_msg_t[CMD, PAYLOAD] { + cmd const[CMD, int32] + payload PAYLOAD +} [packed] + +trusty_km_begin_operation { + purpose int32 + key trusty_blob + additional_params trusty_authorization_set +} [packed] + +trusty_km_update_operation { + handle int64 + input trusty_blob + additional_params trusty_authorization_set +} [packed] + +trusty_km_finish_operation { + handle int64 + signature trusty_blob + additional_params trusty_authorization_set + input trusty_blob +} [packed] + +trusty_km_import_key { + key_description trusty_authorization_set + key_format flags[trusty_km_key_format, int32] + key_material trusty_blob +} [packed] + +trusty_km_key_format = 0, 1, 3 + +trusty_km_export_key { + key_description trusty_authorization_set + key_format flags[trusty_km_key_format, int32] + key_material trusty_blob +} [packed] + +trusty_km_supported_digests { + algorithm flags[trusty_km_algorithms, int32] + purpose flags[trusty_km_purposes, int32] +} [packed] + +trusty_km_algorithms = 1, 2, 3, 32, 33, 128 +trusty_km_purposes = 0, 1, 2, 3, 4, 5 + +trusty_km_get_key_characteristics { + key_blob trusty_blob + additional_params trusty_authorization_set +} [packed] + +trusty_km_attest_key { + key_blob trusty_blob + attest_params trusty_authorization_set +} [packed] + +trusty_km_configure { + os_version int32 + os_patchlevel int32 +} [packed] + +trusty_km_hmac_sharing_parameters_array { + num_params len[params, int32] + params array[trusty_km_hmac_sharing_parameter] +} [packed] + +trusty_km_hmac_sharing_parameter { + seed trusty_blob + none array[int8, 32] +} [packed] + +trusty_km_verify_authorization { + challenge int64 + parameters_to_verify trusty_authorization_set + auth_token trusty_km_hardware_auth_token +} [packed] + +trusty_km_hardware_auth_token { + challenge int64 + user_id int64 + authenticator_id int64 + authenticator_type int32 + timestamp int64 + mac trusty_blob +} [packed] + +trusty_km_import_wrapped_key { + wrapped_key trusty_blob + wrapping_key trusty_blob + masking_key trusty_blob + additional_params trusty_authorization_set + password_sid int64 + biometric_sid int64 +} [packed] + +trusty_authorization_set { + indirect_data trusty_blob + elements_count len[elements, int32] + elements_size bytesize[elements, int32] + elements array[trusty_authorization_elem] +} [packed] + +trusty_authorization_elem [ + ENUM trusty_authorization_elem_t[TRUSTY_KM_ENUM, int32] + ENUM_REP trusty_authorization_elem_t[TRUSTY_KM_ENUM_REP, int32] + UINT trusty_authorization_elem_t[TRUSTY_KM_UINT, int32] + UINT_REP trusty_authorization_elem_t[TRUSTY_KM_UINT_REP, int32] + ULONG trusty_authorization_elem_t[TRUSTY_KM_ULONG, int64] + ULONG_REP trusty_authorization_elem_t[TRUSTY_KM_ULONG_REP, int64] + DATE trusty_authorization_elem_t[TRUSTY_KM_DATE, int64] + BOOL trusty_authorization_elem_t[TRUSTY_KM_BOOL, bool8] + BIGNUM trusty_authorization_elem_t[TRUSTY_KM_BIGNUM, trusty_authorization_bytes] + BYTES trusty_authorization_elem_t[TRUSTY_KM_BYTES, trusty_authorization_bytes] +] [varlen] + +type trusty_authorization_elem_t[TAG, DATA] { + tag const[TAG, int32] + data DATA +} [packed] + +trusty_authorization_bytes { +# TODO: these are length/offset in trusty_authorization_set.indirect_data. + data_length int32 + offset int32 +} [packed] + +define TRUSTY_KM_REQ_SHIFT 2 +define TRUSTY_KM_GENERATE_KEY 0 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_BEGIN_OPERATION 1 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_UPDATE_OPERATION 2 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_FINISH_OPERATION 3 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_ABORT_OPERATION 4 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_IMPORT_KEY 5 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_EXPORT_KEY 6 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_VERSION 7 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_ADD_RNG_ENTROPY 8 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_SUPPORTED_ALGORITHMS 9 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES 10 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_SUPPORTED_PADDING_MODES 11 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_SUPPORTED_DIGESTS 12 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS 13 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS 14 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_KEY_CHARACTERISTICS 15 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_ATTEST_KEY 16 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_UPGRADE_KEY 17 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_CONFIGURE 18 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS 19 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_COMPUTE_SHARED_HMAC 20 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_VERIFY_AUTHORIZATION 21 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_DELETE_KEY 22 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_DELETE_ALL_KEYS 23 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_DESTROY_ATTESTATION_IDS 24 << TRUSTY_KM_REQ_SHIFT +define TRUSTY_KM_IMPORT_WRAPPED_KEY 25 << TRUSTY_KM_REQ_SHIFT + +define TRUSTY_KM_ENUM 1 << 28 +define TRUSTY_KM_ENUM_REP 2 << 28 +define TRUSTY_KM_UINT 3 << 28 +define TRUSTY_KM_UINT_REP 4 << 28 +define TRUSTY_KM_ULONG 5 << 28 +define TRUSTY_KM_DATE 6 << 28 +define TRUSTY_KM_BOOL 7 << 28 +define TRUSTY_KM_BIGNUM 8 << 28 +define TRUSTY_KM_BYTES 9 << 28 +define TRUSTY_KM_ULONG_REP 10 << 28 + +# TODO: does it make sense to exercise bootloader commands? +# They should be locked when Linux starts and we probably trust bootloader anyway? + +### avb ### + +resource fd_trusty_avb[fd_trusty] + +openat$trusty_avb(fd const[AT_FDCWD], file ptr[in, string["/dev/trusty-ipc-dev0"]], flags flags[trusty_open_flags], mode const[0]) fd_trusty_avb +ioctl$TIPC_IOC_CONNECT_avb(fd fd_trusty_avb, cmd const[TIPC_IOC_CONNECT], arg ptr[in, string["com.android.trusty.avb"]]) +write$trusty_avb(fd fd_trusty_avb, msg ptr[in, trusty_avb_msg], len len[msg]) + +trusty_avb_msg [ + READ_ROLLBACK_INDEX trusty_avb_msg_t[TRUSTY_AVB_READ_ROLLBACK_INDEX, trusty_avb_rollback_index] + WRITE_ROLLBACK_INDEX trusty_avb_msg_t[TRUSTY_AVB_WRITE_ROLLBACK_INDEX, trusty_avb_rollback_index] + AVB_GET_VERSION trusty_avb_msg_t[TRUSTY_AVB_GET_VERSION, void] + READ_PERMANENT_ATTRIBUTES trusty_avb_msg_t[TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES, void] + WRITE_PERMANENT_ATTRIBUTES trusty_avb_msg_t[TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES, array[int8]] + READ_LOCK_STATE trusty_avb_msg_t[TRUSTY_AVB_READ_LOCK_STATE, void] + WRITE_LOCK_STATE trusty_avb_msg_t[TRUSTY_AVB_WRITE_LOCK_STATE, int8] + LOCK_BOOT_STATE trusty_avb_msg_t[TRUSTY_AVB_LOCK_BOOT_STATE, void] +] [varlen] + +type trusty_avb_msg_t[CMD, PAYLOAD] { + cmd const[CMD, int32] + payload PAYLOAD +} [packed] + +trusty_avb_rollback_index { + value int64 + slot int32 +} [packed] + +define TRUSTY_AVB_REQ_SHIFT 1 +define TRUSTY_AVB_READ_ROLLBACK_INDEX 0 << TRUSTY_AVB_REQ_SHIFT +define TRUSTY_AVB_WRITE_ROLLBACK_INDEX 1 << TRUSTY_AVB_REQ_SHIFT +define TRUSTY_AVB_GET_VERSION 2 << TRUSTY_AVB_REQ_SHIFT +define TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES 3 << TRUSTY_AVB_REQ_SHIFT +define TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES 4 << TRUSTY_AVB_REQ_SHIFT +define TRUSTY_AVB_READ_LOCK_STATE 5 << TRUSTY_AVB_REQ_SHIFT +define TRUSTY_AVB_WRITE_LOCK_STATE 6 << TRUSTY_AVB_REQ_SHIFT +define TRUSTY_AVB_LOCK_BOOT_STATE 7 << TRUSTY_AVB_REQ_SHIFT diff --git a/sys/linux/trusty_386.const b/sys/linux/trusty_386.const new file mode 100644 index 000000000..c5dbf0b58 --- /dev/null +++ b/sys/linux/trusty_386.const @@ -0,0 +1,61 @@ +# AUTOGENERATED FILE +AT_FDCWD = 18446744073709551516 +O_RDWR = 2 +O_RDWR_NONBLOCK = 2050 +TIPC_IOC_CONNECT = 1074033280 +TRUSTY_AVB_GET_VERSION = 4 +TRUSTY_AVB_LOCK_BOOT_STATE = 14 +TRUSTY_AVB_READ_LOCK_STATE = 10 +TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES = 6 +TRUSTY_AVB_READ_ROLLBACK_INDEX = 0 +TRUSTY_AVB_REQ_SHIFT = 1 +TRUSTY_AVB_WRITE_LOCK_STATE = 12 +TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES = 8 +TRUSTY_AVB_WRITE_ROLLBACK_INDEX = 2 +TRUSTY_ERROR_INVALID = 1 +TRUSTY_ERROR_NONE = 0 +TRUSTY_ERROR_RETRY = 2 +TRUSTY_ERROR_UNKNOWN = 3 +TRUSTY_GK_ENROLL = 0 +TRUSTY_GK_VERIFY = 2 +TRUSTY_KM_ABORT_OPERATION = 16 +TRUSTY_KM_ADD_RNG_ENTROPY = 32 +TRUSTY_KM_ATTEST_KEY = 64 +TRUSTY_KM_BEGIN_OPERATION = 4 +TRUSTY_KM_BIGNUM = 2147483648 +TRUSTY_KM_BOOL = 1879048192 +TRUSTY_KM_BYTES = 2415919104 +TRUSTY_KM_COMPUTE_SHARED_HMAC = 80 +TRUSTY_KM_CONFIGURE = 72 +TRUSTY_KM_DATE = 1610612736 +TRUSTY_KM_DELETE_ALL_KEYS = 92 +TRUSTY_KM_DELETE_KEY = 88 +TRUSTY_KM_DESTROY_ATTESTATION_IDS = 96 +TRUSTY_KM_ENUM = 268435456 +TRUSTY_KM_ENUM_REP = 536870912 +TRUSTY_KM_EXPORT_KEY = 24 +TRUSTY_KM_FINISH_OPERATION = 12 +TRUSTY_KM_GENERATE_KEY = 0 +TRUSTY_KM_GET_AUTH_TOKEN_KEY = 0 +TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS = 76 +TRUSTY_KM_GET_KEY_CHARACTERISTICS = 60 +TRUSTY_KM_GET_SUPPORTED_ALGORITHMS = 36 +TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES = 40 +TRUSTY_KM_GET_SUPPORTED_DIGESTS = 48 +TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS = 56 +TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS = 52 +TRUSTY_KM_GET_SUPPORTED_PADDING_MODES = 44 +TRUSTY_KM_GET_VERSION = 28 +TRUSTY_KM_IMPORT_KEY = 20 +TRUSTY_KM_IMPORT_WRAPPED_KEY = 100 +TRUSTY_KM_REQ_SHIFT = 2 +TRUSTY_KM_UINT = 805306368 +TRUSTY_KM_UINT_REP = 1073741824 +TRUSTY_KM_ULONG = 1342177280 +TRUSTY_KM_ULONG_REP = 2684354560 +TRUSTY_KM_UPDATE_OPERATION = 8 +TRUSTY_KM_UPGRADE_KEY = 68 +TRUSTY_KM_VERIFY_AUTHORIZATION = 84 +__NR_ioctl = 54 +__NR_openat = 295 +__NR_write = 4 diff --git a/sys/linux/trusty_amd64.const b/sys/linux/trusty_amd64.const new file mode 100644 index 000000000..923782c6d --- /dev/null +++ b/sys/linux/trusty_amd64.const @@ -0,0 +1,61 @@ +# AUTOGENERATED FILE +AT_FDCWD = 18446744073709551516 +O_RDWR = 2 +O_RDWR_NONBLOCK = 2050 +TIPC_IOC_CONNECT = 1074295424 +TRUSTY_AVB_GET_VERSION = 4 +TRUSTY_AVB_LOCK_BOOT_STATE = 14 +TRUSTY_AVB_READ_LOCK_STATE = 10 +TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES = 6 +TRUSTY_AVB_READ_ROLLBACK_INDEX = 0 +TRUSTY_AVB_REQ_SHIFT = 1 +TRUSTY_AVB_WRITE_LOCK_STATE = 12 +TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES = 8 +TRUSTY_AVB_WRITE_ROLLBACK_INDEX = 2 +TRUSTY_ERROR_INVALID = 1 +TRUSTY_ERROR_NONE = 0 +TRUSTY_ERROR_RETRY = 2 +TRUSTY_ERROR_UNKNOWN = 3 +TRUSTY_GK_ENROLL = 0 +TRUSTY_GK_VERIFY = 2 +TRUSTY_KM_ABORT_OPERATION = 16 +TRUSTY_KM_ADD_RNG_ENTROPY = 32 +TRUSTY_KM_ATTEST_KEY = 64 +TRUSTY_KM_BEGIN_OPERATION = 4 +TRUSTY_KM_BIGNUM = 2147483648 +TRUSTY_KM_BOOL = 1879048192 +TRUSTY_KM_BYTES = 2415919104 +TRUSTY_KM_COMPUTE_SHARED_HMAC = 80 +TRUSTY_KM_CONFIGURE = 72 +TRUSTY_KM_DATE = 1610612736 +TRUSTY_KM_DELETE_ALL_KEYS = 92 +TRUSTY_KM_DELETE_KEY = 88 +TRUSTY_KM_DESTROY_ATTESTATION_IDS = 96 +TRUSTY_KM_ENUM = 268435456 +TRUSTY_KM_ENUM_REP = 536870912 +TRUSTY_KM_EXPORT_KEY = 24 +TRUSTY_KM_FINISH_OPERATION = 12 +TRUSTY_KM_GENERATE_KEY = 0 +TRUSTY_KM_GET_AUTH_TOKEN_KEY = 0 +TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS = 76 +TRUSTY_KM_GET_KEY_CHARACTERISTICS = 60 +TRUSTY_KM_GET_SUPPORTED_ALGORITHMS = 36 +TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES = 40 +TRUSTY_KM_GET_SUPPORTED_DIGESTS = 48 +TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS = 56 +TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS = 52 +TRUSTY_KM_GET_SUPPORTED_PADDING_MODES = 44 +TRUSTY_KM_GET_VERSION = 28 +TRUSTY_KM_IMPORT_KEY = 20 +TRUSTY_KM_IMPORT_WRAPPED_KEY = 100 +TRUSTY_KM_REQ_SHIFT = 2 +TRUSTY_KM_UINT = 805306368 +TRUSTY_KM_UINT_REP = 1073741824 +TRUSTY_KM_ULONG = 1342177280 +TRUSTY_KM_ULONG_REP = 2684354560 +TRUSTY_KM_UPDATE_OPERATION = 8 +TRUSTY_KM_UPGRADE_KEY = 68 +TRUSTY_KM_VERIFY_AUTHORIZATION = 84 +__NR_ioctl = 16 +__NR_openat = 257 +__NR_write = 1 diff --git a/sys/linux/trusty_arm.const b/sys/linux/trusty_arm.const new file mode 100644 index 000000000..7c69de7d9 --- /dev/null +++ b/sys/linux/trusty_arm.const @@ -0,0 +1,61 @@ +# AUTOGENERATED FILE +AT_FDCWD = 18446744073709551516 +O_RDWR = 2 +O_RDWR_NONBLOCK = 2050 +TIPC_IOC_CONNECT = 1074033280 +TRUSTY_AVB_GET_VERSION = 4 +TRUSTY_AVB_LOCK_BOOT_STATE = 14 +TRUSTY_AVB_READ_LOCK_STATE = 10 +TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES = 6 +TRUSTY_AVB_READ_ROLLBACK_INDEX = 0 +TRUSTY_AVB_REQ_SHIFT = 1 +TRUSTY_AVB_WRITE_LOCK_STATE = 12 +TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES = 8 +TRUSTY_AVB_WRITE_ROLLBACK_INDEX = 2 +TRUSTY_ERROR_INVALID = 1 +TRUSTY_ERROR_NONE = 0 +TRUSTY_ERROR_RETRY = 2 +TRUSTY_ERROR_UNKNOWN = 3 +TRUSTY_GK_ENROLL = 0 +TRUSTY_GK_VERIFY = 2 +TRUSTY_KM_ABORT_OPERATION = 16 +TRUSTY_KM_ADD_RNG_ENTROPY = 32 +TRUSTY_KM_ATTEST_KEY = 64 +TRUSTY_KM_BEGIN_OPERATION = 4 +TRUSTY_KM_BIGNUM = 2147483648 +TRUSTY_KM_BOOL = 1879048192 +TRUSTY_KM_BYTES = 2415919104 +TRUSTY_KM_COMPUTE_SHARED_HMAC = 80 +TRUSTY_KM_CONFIGURE = 72 +TRUSTY_KM_DATE = 1610612736 +TRUSTY_KM_DELETE_ALL_KEYS = 92 +TRUSTY_KM_DELETE_KEY = 88 +TRUSTY_KM_DESTROY_ATTESTATION_IDS = 96 +TRUSTY_KM_ENUM = 268435456 +TRUSTY_KM_ENUM_REP = 536870912 +TRUSTY_KM_EXPORT_KEY = 24 +TRUSTY_KM_FINISH_OPERATION = 12 +TRUSTY_KM_GENERATE_KEY = 0 +TRUSTY_KM_GET_AUTH_TOKEN_KEY = 0 +TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS = 76 +TRUSTY_KM_GET_KEY_CHARACTERISTICS = 60 +TRUSTY_KM_GET_SUPPORTED_ALGORITHMS = 36 +TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES = 40 +TRUSTY_KM_GET_SUPPORTED_DIGESTS = 48 +TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS = 56 +TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS = 52 +TRUSTY_KM_GET_SUPPORTED_PADDING_MODES = 44 +TRUSTY_KM_GET_VERSION = 28 +TRUSTY_KM_IMPORT_KEY = 20 +TRUSTY_KM_IMPORT_WRAPPED_KEY = 100 +TRUSTY_KM_REQ_SHIFT = 2 +TRUSTY_KM_UINT = 805306368 +TRUSTY_KM_UINT_REP = 1073741824 +TRUSTY_KM_ULONG = 1342177280 +TRUSTY_KM_ULONG_REP = 2684354560 +TRUSTY_KM_UPDATE_OPERATION = 8 +TRUSTY_KM_UPGRADE_KEY = 68 +TRUSTY_KM_VERIFY_AUTHORIZATION = 84 +__NR_ioctl = 54 +__NR_openat = 322 +__NR_write = 4 diff --git a/sys/linux/trusty_arm64.const b/sys/linux/trusty_arm64.const new file mode 100644 index 000000000..0a4898347 --- /dev/null +++ b/sys/linux/trusty_arm64.const @@ -0,0 +1,61 @@ +# AUTOGENERATED FILE +AT_FDCWD = 18446744073709551516 +O_RDWR = 2 +O_RDWR_NONBLOCK = 2050 +TIPC_IOC_CONNECT = 1074295424 +TRUSTY_AVB_GET_VERSION = 4 +TRUSTY_AVB_LOCK_BOOT_STATE = 14 +TRUSTY_AVB_READ_LOCK_STATE = 10 +TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES = 6 +TRUSTY_AVB_READ_ROLLBACK_INDEX = 0 +TRUSTY_AVB_REQ_SHIFT = 1 +TRUSTY_AVB_WRITE_LOCK_STATE = 12 +TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES = 8 +TRUSTY_AVB_WRITE_ROLLBACK_INDEX = 2 +TRUSTY_ERROR_INVALID = 1 +TRUSTY_ERROR_NONE = 0 +TRUSTY_ERROR_RETRY = 2 +TRUSTY_ERROR_UNKNOWN = 3 +TRUSTY_GK_ENROLL = 0 +TRUSTY_GK_VERIFY = 2 +TRUSTY_KM_ABORT_OPERATION = 16 +TRUSTY_KM_ADD_RNG_ENTROPY = 32 +TRUSTY_KM_ATTEST_KEY = 64 +TRUSTY_KM_BEGIN_OPERATION = 4 +TRUSTY_KM_BIGNUM = 2147483648 +TRUSTY_KM_BOOL = 1879048192 +TRUSTY_KM_BYTES = 2415919104 +TRUSTY_KM_COMPUTE_SHARED_HMAC = 80 +TRUSTY_KM_CONFIGURE = 72 +TRUSTY_KM_DATE = 1610612736 +TRUSTY_KM_DELETE_ALL_KEYS = 92 +TRUSTY_KM_DELETE_KEY = 88 +TRUSTY_KM_DESTROY_ATTESTATION_IDS = 96 +TRUSTY_KM_ENUM = 268435456 +TRUSTY_KM_ENUM_REP = 536870912 +TRUSTY_KM_EXPORT_KEY = 24 +TRUSTY_KM_FINISH_OPERATION = 12 +TRUSTY_KM_GENERATE_KEY = 0 +TRUSTY_KM_GET_AUTH_TOKEN_KEY = 0 +TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS = 76 +TRUSTY_KM_GET_KEY_CHARACTERISTICS = 60 +TRUSTY_KM_GET_SUPPORTED_ALGORITHMS = 36 +TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES = 40 +TRUSTY_KM_GET_SUPPORTED_DIGESTS = 48 +TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS = 56 +TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS = 52 +TRUSTY_KM_GET_SUPPORTED_PADDING_MODES = 44 +TRUSTY_KM_GET_VERSION = 28 +TRUSTY_KM_IMPORT_KEY = 20 +TRUSTY_KM_IMPORT_WRAPPED_KEY = 100 +TRUSTY_KM_REQ_SHIFT = 2 +TRUSTY_KM_UINT = 805306368 +TRUSTY_KM_UINT_REP = 1073741824 +TRUSTY_KM_ULONG = 1342177280 +TRUSTY_KM_ULONG_REP = 2684354560 +TRUSTY_KM_UPDATE_OPERATION = 8 +TRUSTY_KM_UPGRADE_KEY = 68 +TRUSTY_KM_VERIFY_AUTHORIZATION = 84 +__NR_ioctl = 29 +__NR_openat = 56 +__NR_write = 64 diff --git a/sys/linux/trusty_ppc64le.const b/sys/linux/trusty_ppc64le.const new file mode 100644 index 000000000..0f196d2f8 --- /dev/null +++ b/sys/linux/trusty_ppc64le.const @@ -0,0 +1,61 @@ +# AUTOGENERATED FILE +AT_FDCWD = 18446744073709551516 +O_RDWR = 2 +O_RDWR_NONBLOCK = 2050 +TIPC_IOC_CONNECT = 2148037248 +TRUSTY_AVB_GET_VERSION = 4 +TRUSTY_AVB_LOCK_BOOT_STATE = 14 +TRUSTY_AVB_READ_LOCK_STATE = 10 +TRUSTY_AVB_READ_PERMANENT_ATTRIBUTES = 6 +TRUSTY_AVB_READ_ROLLBACK_INDEX = 0 +TRUSTY_AVB_REQ_SHIFT = 1 +TRUSTY_AVB_WRITE_LOCK_STATE = 12 +TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES = 8 +TRUSTY_AVB_WRITE_ROLLBACK_INDEX = 2 +TRUSTY_ERROR_INVALID = 1 +TRUSTY_ERROR_NONE = 0 +TRUSTY_ERROR_RETRY = 2 +TRUSTY_ERROR_UNKNOWN = 3 +TRUSTY_GK_ENROLL = 0 +TRUSTY_GK_VERIFY = 2 +TRUSTY_KM_ABORT_OPERATION = 16 +TRUSTY_KM_ADD_RNG_ENTROPY = 32 +TRUSTY_KM_ATTEST_KEY = 64 +TRUSTY_KM_BEGIN_OPERATION = 4 +TRUSTY_KM_BIGNUM = 2147483648 +TRUSTY_KM_BOOL = 1879048192 +TRUSTY_KM_BYTES = 2415919104 +TRUSTY_KM_COMPUTE_SHARED_HMAC = 80 +TRUSTY_KM_CONFIGURE = 72 +TRUSTY_KM_DATE = 1610612736 +TRUSTY_KM_DELETE_ALL_KEYS = 92 +TRUSTY_KM_DELETE_KEY = 88 +TRUSTY_KM_DESTROY_ATTESTATION_IDS = 96 +TRUSTY_KM_ENUM = 268435456 +TRUSTY_KM_ENUM_REP = 536870912 +TRUSTY_KM_EXPORT_KEY = 24 +TRUSTY_KM_FINISH_OPERATION = 12 +TRUSTY_KM_GENERATE_KEY = 0 +TRUSTY_KM_GET_AUTH_TOKEN_KEY = 0 +TRUSTY_KM_GET_HMAC_SHARING_PARAMETERS = 76 +TRUSTY_KM_GET_KEY_CHARACTERISTICS = 60 +TRUSTY_KM_GET_SUPPORTED_ALGORITHMS = 36 +TRUSTY_KM_GET_SUPPORTED_BLOCK_MODES = 40 +TRUSTY_KM_GET_SUPPORTED_DIGESTS = 48 +TRUSTY_KM_GET_SUPPORTED_EXPORT_FORMATS = 56 +TRUSTY_KM_GET_SUPPORTED_IMPORT_FORMATS = 52 +TRUSTY_KM_GET_SUPPORTED_PADDING_MODES = 44 +TRUSTY_KM_GET_VERSION = 28 +TRUSTY_KM_IMPORT_KEY = 20 +TRUSTY_KM_IMPORT_WRAPPED_KEY = 100 +TRUSTY_KM_REQ_SHIFT = 2 +TRUSTY_KM_UINT = 805306368 +TRUSTY_KM_UINT_REP = 1073741824 +TRUSTY_KM_ULONG = 1342177280 +TRUSTY_KM_ULONG_REP = 2684354560 +TRUSTY_KM_UPDATE_OPERATION = 8 +TRUSTY_KM_UPGRADE_KEY = 68 +TRUSTY_KM_VERIFY_AUTHORIZATION = 84 +__NR_ioctl = 54 +__NR_openat = 286 +__NR_write = 4 -- cgit mrf-deployment