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_ec_keygen_params_t
#include <
keymaster_common.h
>
Các tham số cần thiết để tạo khoá EC.
Kích thước trường là tham số duy nhất trong phiên bản 2. Kích thước tương ứng với các đường cong bắt buộc sau:
192 = NIST P-192 224 = NIST P-224 256 = NIST P-256 384 = NIST P-384 521 = NIST P-521
Bạn có thể xem các tham số cho các đường cong này tại:
http://www.nsa.gov/ia/_files/nist-routines.pdf
trong Chương 4.
Định nghĩa tại dòng
156
của tệp
keymaster_common.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_ec_keygen_params_t Struct Reference\n\nkeymaster_ec_keygen_params_t Struct Reference\n=============================================\n\n[Data Fields](#pub-attribs) \nkeymaster_ec_keygen_params_t Struct Reference \n\n`\n#include \u003c\n`[keymaster_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_common.h)`\n\u003e\n`\n\n|----------|-------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| uint32_t | [field_size](/reference/hal/structkeymaster__ec__keygen__params__t#a85f91712ec4fffda3a0453f88282fc6e) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nParameters needed to generate an EC key.\n\n\nField size is the only parameter in version 2. The sizes correspond to these required curves:\n\n\n192 = NIST P-192 224 = NIST P-224 256 = NIST P-256 384 = NIST P-384 521 = NIST P-521\n\n\nThe parameters for these curves are available at:\n\u003chttp://www.nsa.gov/ia/_files/nist-routines.pdf\u003e\nin Chapter 4.\n\n\nDefinition at line\n[156](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_common.h)\nof file\n[keymaster_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_common.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------------|\n| uint32_t field_size |\n\n\nDefinition at line\n[157](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_common.h)\nof file\n[keymaster_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_common.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [keymaster_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/keymaster_common.h)"]]