Google is committed to advancing racial equity for Black communities. See how.

fuchsia.castauth

PROTOCOLS

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.

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

<EMPTY>

Response

NameType
result CastKeySigner_GetCertificateChain_Result

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

NameType
hash Asn1EncodedHash

Response

NameType
result CastKeySigner_SignHash_Result

STRUCTS

CastKeySigner_GetCertificateChain_Response

Defined in fuchsia.castauth/cast_auth.fidl

FieldTypeDescriptionDefault
cert_chain vector<vector<uint8>>[16] No default

CastKeySigner_SignHash_Response

Defined in fuchsia.castauth/cast_auth.fidl

FieldTypeDescriptionDefault
signature uint8[256] No default

ENUMS

ErrorCode strict

Type: uint32

Defined in fuchsia.castauth/cast_auth.fidl

Error codes for CastKeySigner operations.

NameValueDescription
FILE_NOT_FOUND 1

Key/cert not found in storage.

CRYPTO_ERROR 2

Error occurred during signing operation.

UNIONS

Asn1EncodedHash strict

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.

Ordinal
VariantTypeDescription
1 sha1 uint8[35]
2 sha256 uint8[51]

CastKeySigner_GetCertificateChain_Result strict

Defined in fuchsia.castauth/cast_auth.fidl

Ordinal
VariantTypeDescription
1 response CastKeySigner_GetCertificateChain_Response
2 err ErrorCode

CastKeySigner_SignHash_Result strict

Defined in fuchsia.castauth/cast_auth.fidl

Ordinal
VariantTypeDescription
1 response CastKeySigner_SignHash_Response
2 err ErrorCode