Android Hardware Abstraction Layer
Data Structures | Macros | Typedefs | Enumerations
keymaster.h File Reference
#include <stdint.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <hardware/hardware.h>

Go to the source code of this file.

Data Structures

struct  keystore_module
 
struct  keymaster_rsa_keygen_params_t
 
struct  keymaster_dsa_keygen_params_t
 
struct  keymaster_ec_keygen_params_t
 
struct  keymaster_dsa_sign_params_t
 
struct  keymaster_ec_sign_params_t
 
struct  keymaster_rsa_sign_params_t
 
struct  keymaster_device
 

Macros

#define KEYSTORE_HARDWARE_MODULE_ID   "keystore"
 
#define KEYSTORE_KEYMASTER   "keymaster"
 
#define KEYMASTER_HEADER_VERSION   2
 
#define KEYMASTER_MODULE_API_VERSION_0_2   HARDWARE_MODULE_API_VERSION(0, 2)
 
#define KEYMASTER_DEVICE_API_VERSION_0_2   HARDWARE_DEVICE_API_VERSION_2(0, 2, KEYMASTER_HEADER_VERSION)
 

Typedefs

typedef struct keymaster_device keymaster_device_t
 

Enumerations

enum  { KEYMASTER_SOFTWARE_ONLY = 0x00000001 }
 
enum  keymaster_keypair_t { TYPE_RSA = 1, TYPE_DSA = 2, TYPE_EC = 3 }
 
enum  keymaster_digest_t { DIGEST_NONE }
 
enum  keymaster_rsa_padding_t { PADDING_NONE }
 

Macro Definition Documentation

#define KEYMASTER_DEVICE_API_VERSION_0_2   HARDWARE_DEVICE_API_VERSION_2(0, 2, KEYMASTER_HEADER_VERSION)

Definition at line 42 of file keymaster.h.

#define KEYMASTER_HEADER_VERSION   2

Settings for "module_api_version" and "hal_api_version" fields in the keymaster_module initialization.

Definition at line 39 of file keymaster.h.

#define KEYMASTER_MODULE_API_VERSION_0_2   HARDWARE_MODULE_API_VERSION(0, 2)

Definition at line 41 of file keymaster.h.

#define KEYSTORE_HARDWARE_MODULE_ID   "keystore"

The id of this module

Definition at line 31 of file keymaster.h.

#define KEYSTORE_KEYMASTER   "keymaster"

Definition at line 33 of file keymaster.h.

Typedef Documentation

Definition at line 236 of file keymaster.h.

Enumeration Type Documentation

anonymous enum

Flags for keymaster_device::flags

Enumerator
KEYMASTER_SOFTWARE_ONLY 

Definition at line 47 of file keymaster.h.

Digest type.

Enumerator
DIGEST_NONE 

Definition at line 113 of file keymaster.h.

Asymmetric key pair types.

Enumerator
TYPE_RSA 
TYPE_DSA 
TYPE_EC 

Definition at line 65 of file keymaster.h.

Type of padding used for RSA operations.

Enumerator
PADDING_NONE 

Definition at line 120 of file keymaster.h.