自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
keymaster_key_characteristics_t 結構體參考資料
#include <
keymaster_defs.h
>
定義金鑰特性的參數,包括授權的使用模式和存取權限制。參數分為兩類:由安全硬體強制執行的參數,以及未強制執行的參數。對於僅限軟體的 Keymaster 實作,強制陣列必須為空值。硬體實作必須強制執行強制陣列中的所有項目。
定義位於檔案
keymaster_defs.h
的第
310
行。
這個結構體的說明文件是由下列檔案產生:
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Android Hardware Abstraction Layer: keymaster_key_characteristics_t Struct Reference\n\nkeymaster_key_characteristics_t Struct Reference\n================================================\n\n[Data Fields](#pub-attribs) \nkeymaster_key_characteristics_t Struct Reference \n\n`\n#include \u003c\n`[keymaster_defs.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_defs.h)`\n\u003e\n`\n\n|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| [keymaster_key_param_set_t](/reference/hal/structkeymaster__key__param__set__t) | [hw_enforced](/reference/hal/structkeymaster__key__characteristics__t#a1f2beeb370e4d5e51096b726fd9b2022) |\n| ||\n| [keymaster_key_param_set_t](/reference/hal/structkeymaster__key__param__set__t) | [sw_enforced](/reference/hal/structkeymaster__key__characteristics__t#a533d175e131e9ce592e58e077d63dc91) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nParameters that define a key's characteristics, including authorized modes of usage and access control restrictions. The parameters are divided into two categories, those that are enforced by secure hardware, and those that are not. For a software-only keymaster implementation the enforced array must NULL. Hardware implementations must enforce everything in the enforced array.\n\n\nDefinition at line\n[310](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_defs.h)\nof file\n[keymaster_defs.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_defs.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------------------------------------------------------------------------------------|\n| [keymaster_key_param_set_t](/reference/hal/structkeymaster__key__param__set__t) hw_enforced |\n\n\nDefinition at line\n[311](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_defs.h)\nof file\n[keymaster_defs.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_defs.h)\n.\n\n|---------------------------------------------------------------------------------------------|\n| [keymaster_key_param_set_t](/reference/hal/structkeymaster__key__param__set__t) sw_enforced |\n\n\nDefinition at line\n[312](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_defs.h)\nof file\n[keymaster_defs.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_defs.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [keymaster_defs.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_defs.h)"]]