通訊協定
CastCertificateRetriever
在 fuchsia.castauth/cast_auth.fidl 中定義的
此通訊協定允許存取 Cast 憑證,而不授予使用 Cast 金鑰簽署訊息的能力。否則,GetCertificateChain 的功能應與 CastKeySigner 相同。
GetCertificateChain
取得 Cast 憑證鏈結。
回傳值為錯誤代碼或憑證鏈 (如果作業成功)。這個鏈結包含 Cast 金鑰憑證、一或多個中繼 CA 憑證和根 CA 憑證。
要求
<EMPTY>
回應
| 名稱 | 類型 | 
|---|---|
| payload | CastCertificateRetriever_GetCertificateChain_Result | 
CastKeySigner
在 fuchsia.castauth/cast_auth.fidl 中定義的
這個 FIDL 介面是用來以硬體 Cast 金鑰簽署。 這項功能僅適用於短期使用,且不適用於所有裝置。最終會替換為認證服務。
GetCertificateChain
取得 Cast 憑證鏈結。
回傳值為錯誤代碼或憑證鏈 (如果作業成功)。這個鏈結包含 Cast 金鑰憑證、一或多個中繼 CA 憑證和根 CA 憑證。
要求
<EMPTY>
回應
| 名稱 | 類型 | 
|---|---|
| payload | CastKeySigner_GetCertificateChain_Result | 
SignHash
使用 Cast 金鑰簽署雜湊值。
輸入內容為雜湊值。傳回值是錯誤代碼或簽章 (如果作業成功)。簽章演算法為 RSA-2048-PKCS1。
要求
| 名稱 | 類型 | 
|---|---|
| hash | Asn1EncodedHash | 
回應
| 名稱 | 類型 | 
|---|---|
| payload | CastKeySigner_SignHash_Result | 
結構化
CastCertificateRetriever_GetCertificateChain_Response
在 fuchsia.castauth/cast_auth.fidl 中定義的
| 廣闊 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| cert_chain | vector<vector<uint8>>[16] | 無預設 | 
CastKeySigner_GetCertificateChain_Response
在 fuchsia.castauth/cast_auth.fidl 中定義的
| 廣闊 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| cert_chain | vector<vector<uint8>>[16] | 新增時間:18 歲 | 無預設 | 
CastKeySigner_SignHash_Response
在 fuchsia.castauth/cast_auth.fidl 中定義的
| 廣闊 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| signature | uint8[256] | 無預設 | 
ENUMS
ErrorCode strict
類型:uint32
在 fuchsia.castauth/cast_auth.fidl 中定義的
CastKeySigner 作業的錯誤代碼。
| 名稱 | 物超所值 | 說明 | 
|---|---|---|
| FILE_NOT_FOUND | 1 | 在儲存空間中找不到金鑰/憑證。 | 
| CRYPTO_ERROR | 2 | 簽署作業時發生錯誤。 | 
聯合國
Asn1EncodedHash 嚴格
在 fuchsia.castauth/cast_auth.fidl 中定義的
要由 Cast 金鑰簽署的輸入雜湊值。 必須是 ASN1 編碼的 SHA1 或 SHA256 雜湊,大小為 35 或 51 個位元組。
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | sha1 | uint8[35] | |
| 2 | sha256 | uint8[51] | 
CastCertificateRetriever_GetCertificateChain_Result 嚴格
在 fuchsia.castauth/cast_auth.fidl 中定義的
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | response | CastCertificateRetriever_GetCertificateChain_Response | |
| 2 | err | ErrorCode | 
CastKeySigner_GetCertificateChain_Result 嚴格
在 fuchsia.castauth/cast_auth.fidl 中定義的
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | response | CastKeySigner_GetCertificateChain_Response | |
| 2 | err | ErrorCode | 
CastKeySigner_SignHash_Result 嚴格
在 fuchsia.castauth/cast_auth.fidl 中定義的
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | response | CastKeySigner_SignHash_Response | |
| 2 | err | ErrorCode | 
業者
| 名稱 | 物超所值 | 類型 | 說明 | 
|---|---|---|---|
| MAX_CERT_CHAIN_SIZE | 16 | uint64 | 在這個程式庫的通訊協定中, 新增時間:18 歲 | 
| MAX_CERT_SIZE | 2048 | uint64 | 這個程式庫的通訊協定可能會從  新增時間:18 歲 |