Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
fuchsia.hardware.inlineencryption
新增:HEAD
通訊協定
控場
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
區塊驅動程式和硬體內嵌加密控制器之間使用的通訊協定。
DeriveRawSecret
要求
| 名稱 | 類型 |
wrapped_key |
vector<uint8>
|
回應
ProgramKeySlot
要求
| 名稱 | 類型 |
wrapped_key |
vector<uint8>
|
data_unit_size |
uint32
|
回應
裝置
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
DeriveRawSecret
從暫時包裝的 wrapped_key 衍生原始軟體密鑰。wrapped_key
必須是透過與此通訊協定不同的機制,由內嵌加密硬體 (在相同工作階段/啟動中) 包裝的金鑰。傳回的密鑰可用於非內嵌加密編譯作業,例如加密內嵌加密未涵蓋的檔案系統中繼資料。傳回
- 如果
wrapped_key 不是預期的大小,或 wrapped_key 未通過驗證 (例如 wrapped_key 來自先前的啟動),則會傳回 ZX_ERR_INVALID_ARGS。
- 如果作業逾時,則為 ZX_ERR_TIMED_OUT。
- 如果作業因其他原因失敗,則為 ZX_ERR_INTERNAL。
要求
| 名稱 | 類型 |
wrapped_key |
vector<uint8>
|
回應
ProgramKey
將暫時包裝的 wrapped_key 程式化至下一個可用插槽中的內嵌加密硬體,並傳回代表該插槽的 key_token 能力。傳回的 key_token 必須先透過 fuchsia.storage.block/Session.RegisterKey 向區塊工作階段註冊,才能在區塊 I/O 要求中使用運算單元。連線中斷後,透過呼叫這個方法的連線所程式化的所有版位都會遭到移除。無法撤銷個別金鑰 (並非技術原因,而是目前尚未有此需求)。wrapped_key 必須是內嵌加密硬體 (在同一個工作階段/啟動程序中) 透過與此通訊協定不同的機制包裝的金鑰。
傳回
- 如果沒有可用的金鑰槽,則會傳回 ZX_ERR_NO_RESOURCES。
- 如果
wrapped_key 不是預期的大小,或 wrapped_key 未通過驗證 (例如 wrapped_key 來自先前的啟動),則會傳回 ZX_ERR_INVALID_ARGS。
- 如果作業逾時,則為 ZX_ERR_TIMED_OUT。
- 如果作業因其他原因失敗,則為 ZX_ERR_INTERNAL。
要求
| 名稱 | 類型 |
wrapped_key |
vector<uint8>
|
data_unit_size |
uint32
|
回應
DriverDevice
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
Controller 通訊協定的驅動程式庫傳輸變化版本。
DeriveRawSecret
要求
| 名稱 | 類型 |
wrapped_key |
vector<uint8>
|
回應
ProgramKeySlot
要求
| 名稱 | 類型 |
wrapped_key |
vector<uint8>
|
data_unit_size |
uint32
|
回應
STRUCTS
Controller_DeriveRawSecret_Response 資源
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
| 欄位 | 類型 | 說明 | 預設 |
secret |
vector<uint8>
|
|
無預設值 |
Controller_ProgramKeySlot_Response
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
Device_DeriveRawSecret_Response 資源
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
| 欄位 | 類型 | 說明 | 預設 |
secret |
vector<uint8>
|
|
無預設值 |
Device_ProgramKey_Response 資源
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
| 欄位 | 類型 | 說明 | 預設 |
key_token |
handle<eventpair>
|
|
無預設值 |
UNIONS
Controller_DeriveRawSecret_Result strict resource
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
Controller_ProgramKeySlot_Result strict
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
Device_DeriveRawSecret_Result strict resource
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
定義於 fuchsia.hardware.inlineencryption/inlineencryption.fidl
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-10-18 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2026-10-18 (世界標準時間)。"],[],[]]