Package: android.system.wifi.keystore@1.0

IKeystore

interface IKeystore

This is the root of the HAL module and is the interface returned when loading an implementation of the Wi-Fi HAL.There must be at most one module loaded in the system.

Properties

KeystoreStatusCode

enum KeystoreStatusCode: uint32_t

Return values for Keystore requests.

Details
Members
SUCCESS
No errors.
ERROR_UNKNOWN

Methods

getBlob

getBlob (string key)
generates (KeystoreStatusCode status, vec<uint8_t> value)

Requests a binary blob from the keystore's key-value store.

Details
Parameters
key
the key into the keystore.
Generates
status
KeystoreStatusCode of the operation.Possible status codes:|KeystoreStatusCode.SUCCESS|, |KeystoreStatusCode.ERROR_UNKNOWN|
value
the value associated with |key| in the keystore.

getPublicKey

getPublicKey (string keyId)
generates (KeystoreStatusCode status, vec<uint8_t> publicKey)

Requests the public key associated with the credential referred to by |keyId|.

Details
Parameters
keyId
the key identifier associated with the credential.
Generates
status
KeystoreStatusCode of the operation.Possible status codes:|KeystoreStatusCode.SUCCESS|, |KeystoreStatusCode.ERROR_UNKNOWN|
publicKey
the public key associated with the credential.

sign

sign (string keyId, vec<uint8_t> dataToSign)
generates (KeystoreStatusCode status, vec<uint8_t> signedData)

Signs the digest in |dataToSign| with the private key associated with the credential identified by |keyId|.This is a raw RSA or ECDSA operation that assumes |dataToSign| is already propertly digested and padded if necessary for the type of key.

Details
Parameters
keyId
the key identifier associated with the credential.
dataToSign
Generates
status
KeystoreStatusCode of the operation.Possible status codes:|KeystoreStatusCode.SUCCESS|, |KeystoreStatusCode.UNKNOWN|
signedData
the signed data.