Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu tham khảo về cấu trúc keymaster_key_characteristics_t
#include <
keymaster_defs.h
>
Các thông số xác định đặc điểm của khoá, bao gồm cả các chế độ sử dụng được uỷ quyền và các quy định hạn chế về quyền kiểm soát truy cập. Các tham số được chia thành hai danh mục, những tham số được phần cứng bảo mật thực thi và những tham số không được thực thi. Để triển khai keymaster chỉ bằng phần mềm, mảng được thực thi phải là NULL. Việc triển khai phần cứng phải thực thi mọi thứ trong mảng được thực thi.
Định nghĩa tại dòng
310
của tệp
keymaster_defs.h
.
Tài liệu cho cấu trúc này được tạo từ tệp sau:
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],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)"]]