Project: /_project.yaml Book: /_book.yaml

fuchsia.castauth

PROTOCOLS

CastKeySigner {:#CastKeySigner}

Defined in fuchsia.castauth/cast_auth.fidl

This FIDL interface is used to sign with hardware Cast key. It is intended for short-term use only and will not be supported on all devices. It will eventually be replaced by an attestation service.

SignHash {:#SignHash}

Use Cast key to sign a hash value.

The input is hash value. The return value is the error code or the signature if the operation succeeds. The signature algorithm is RSA-2048-PKCS1.

Request

Response

GetCertificateChain {:#GetCertificateChain}

Get the Cast certificate chain.

The return value is the error code or the certificate chain if the operation succeeds. The chain contains Cast key cert, one or more intermediate CA certs and root CA cert.

Request

Response

STRUCTS

CastKeySigner_SignHash_Response {:#CastKeySigner_SignHash_Response}

generated

CastKeySigner_GetCertificateChain_Response {:#CastKeySigner_GetCertificateChain_Response}

generated

ENUMS

ErrorCode {:#ErrorCode}

Type: uint32

Defined in fuchsia.castauth/cast_auth.fidl

Error codes for CastKeySigner operations.

UNIONS

CastKeySigner_SignHash_Result {:#CastKeySigner_SignHash_Result}

generated

CastKeySigner_GetCertificateChain_Result {:#CastKeySigner_GetCertificateChain_Result}

generated

Asn1EncodedHash {:#Asn1EncodedHash}

Defined in fuchsia.castauth/cast_auth.fidl

Input hash to be signed by Cast key. It must be ASN1-encoded SHA1 or SHA256 hash, with sizes 35 or 51 bytes.