/system/keymaster/include/keymaster/contexts/ |
D | soft_keymaster_context.h | 73 keymaster_error_t UpgradeKeyBlob(const KeymasterKeyBlob& key_to_upgrade, 75 KeymasterKeyBlob* upgraded_key) const override; 76 keymaster_error_t ParseKeyBlob(const KeymasterKeyBlob& blob, 79 keymaster_error_t DeleteKey(const KeymasterKeyBlob& blob) const override; 88 UnwrapKey(const KeymasterKeyBlob& wrapped_key_blob, const KeymasterKeyBlob& wrapping_key_blob, 89 const AuthorizationSet& wrapping_key_params, const KeymasterKeyBlob& masking_key, 91 KeymasterKeyBlob* wrapped_key_material) const override; 102 const KeymasterKeyBlob& key_material, KeymasterKeyBlob* blob, 117 keymaster_error_t ParseKeymaster1HwBlob(const KeymasterKeyBlob& blob, 119 KeymasterKeyBlob* key_material, [all …]
|
D | keymaster1_passthrough_context.h | 69 keymaster_error_t UpgradeKeyBlob(const KeymasterKeyBlob& key_to_upgrade, 71 KeymasterKeyBlob* upgraded_key) const override; 80 keymaster_error_t ParseKeyBlob(const KeymasterKeyBlob& blob, 88 keymaster_error_t DeleteKey(const KeymasterKeyBlob& /* blob */) const override; 114 const KeymasterKeyBlob& key_material, KeymasterKeyBlob* blob, 119 UnwrapKey(const KeymasterKeyBlob& wrapped_key_blob, const KeymasterKeyBlob& wrapping_key_blob, 120 const AuthorizationSet& wrapping_key_params, const KeymasterKeyBlob& masking_key, 122 KeymasterKeyBlob* wrapped_key_material) const override;
|
D | pure_soft_keymaster_context.h | 61 keymaster_error_t UpgradeKeyBlob(const KeymasterKeyBlob& key_to_upgrade, 63 KeymasterKeyBlob* upgraded_key) const override; 64 keymaster_error_t ParseKeyBlob(const KeymasterKeyBlob& blob, 67 keymaster_error_t DeleteKey(const KeymasterKeyBlob& blob) const override; 85 const KeymasterKeyBlob& key_material, KeymasterKeyBlob* blob, 90 UnwrapKey(const KeymasterKeyBlob& wrapped_key_blob, const KeymasterKeyBlob& wrapping_key_blob, 91 const AuthorizationSet& wrapping_key_params, const KeymasterKeyBlob& masking_key, 93 KeymasterKeyBlob* wrapped_key_material) const override;
|
D | keymaster2_passthrough_context.h | 62 keymaster_error_t UpgradeKeyBlob(const KeymasterKeyBlob& key_to_upgrade, 64 KeymasterKeyBlob* upgraded_key) const override; 73 keymaster_error_t ParseKeyBlob(const KeymasterKeyBlob& blob, 81 keymaster_error_t DeleteKey(const KeymasterKeyBlob& /* blob */) const override; 106 UnwrapKey(const KeymasterKeyBlob& wrapped_key_blob, const KeymasterKeyBlob& wrapping_key_blob, 107 const AuthorizationSet& wrapping_key_params, const KeymasterKeyBlob& masking_key, 109 KeymasterKeyBlob* wrapped_key_material) const override;
|
/system/keymaster/include/keymaster/key_blob_utils/ |
D | integrity_assured_key_blob.h | 27 typedef TKeymasterBlob<keymaster_key_blob_t> KeymasterKeyBlob; typedef 29 keymaster_error_t SerializeIntegrityAssuredBlob(const KeymasterKeyBlob& key_material, 33 KeymasterKeyBlob* key_blob); 35 keymaster_error_t DeserializeIntegrityAssuredBlob(const KeymasterKeyBlob& key_blob, 37 KeymasterKeyBlob* key_material, 41 keymaster_error_t DeserializeIntegrityAssuredBlob_NoHmacCheck(const KeymasterKeyBlob& key_blob, 42 KeymasterKeyBlob* key_material,
|
D | ocb_utils.h | 30 typedef TKeymasterBlob<keymaster_key_blob_t> KeymasterKeyBlob; typedef 37 const KeymasterKeyBlob& master_key, 38 const KeymasterKeyBlob& plaintext, const Buffer& nonce, 39 KeymasterKeyBlob* ciphertext, Buffer* tag); 43 const KeymasterKeyBlob& master_key, 44 const KeymasterKeyBlob& ciphertext, const Buffer& nonce, 45 const Buffer& tag, KeymasterKeyBlob* plaintext);
|
D | auth_encrypted_key_blob.h | 27 typedef TKeymasterBlob<keymaster_key_blob_t> KeymasterKeyBlob; typedef 29 keymaster_error_t SerializeAuthEncryptedBlob(const KeymasterKeyBlob& encrypted_key_material, 33 KeymasterKeyBlob* key_blob); 35 keymaster_error_t DeserializeAuthEncryptedBlob(const KeymasterKeyBlob& key_blob, 36 KeymasterKeyBlob* encrypted_key_material,
|
D | software_keyblobs.h | 28 typedef TKeymasterBlob<keymaster_key_blob_t> KeymasterKeyBlob; typedef 42 keymaster_error_t ParseOldSoftkeymasterBlob(const KeymasterKeyBlob& blob, 43 KeymasterKeyBlob* key_material, 47 keymaster_error_t ParseOcbAuthEncryptedBlob(const KeymasterKeyBlob& blob, 49 KeymasterKeyBlob* key_material, 60 KeymasterKeyBlob* upgraded_key);
|
/system/keymaster/include/keymaster/ |
D | keymaster_context.h | 32 typedef TKeymasterBlob<keymaster_key_blob_t> KeymasterKeyBlob; typedef 95 virtual keymaster_error_t UpgradeKeyBlob(const KeymasterKeyBlob& key_to_upgrade, 97 KeymasterKeyBlob* upgraded_key) const = 0; 106 virtual keymaster_error_t ParseKeyBlob(const KeymasterKeyBlob& blob, 114 virtual keymaster_error_t DeleteKey(const KeymasterKeyBlob& /* blob */) const { in DeleteKey() argument 142 UnwrapKey(const KeymasterKeyBlob& wrapped_key_blob, const KeymasterKeyBlob& wrapping_key_blob, 143 const AuthorizationSet& wrapping_key_params, const KeymasterKeyBlob& masking_key, 145 KeymasterKeyBlob* wrapped_key_material) const = 0;
|
D | wrapped_key.h | 57 keymaster_error_t build_wrapped_key(const KeymasterKeyBlob& encrypted_ephemeral_key, 59 const KeymasterKeyBlob& secure_key, const KeymasterBlob& tag, 61 KeymasterKeyBlob* der_wrapped_key); 63 keymaster_error_t parse_wrapped_key(const KeymasterKeyBlob& wrapped_key, KeymasterBlob* iv, 64 KeymasterKeyBlob* transit_key, KeymasterKeyBlob* secure_key,
|
D | key_factory.h | 29 typedef TKeymasterBlob<keymaster_key_blob_t> KeymasterKeyBlob; typedef 41 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 46 const KeymasterKeyBlob& input_key_material, 47 KeymasterKeyBlob* output_key_blob, 51 virtual keymaster_error_t LoadKey(KeymasterKeyBlob&& key_material,
|
/system/keymaster/include/keymaster/legacy_support/ |
D | keymaster0_engine.h | 33 typedef TKeymasterBlob<keymaster_key_blob_t> KeymasterKeyBlob; typedef 49 KeymasterKeyBlob* key_material) const; 50 bool GenerateEcKey(uint32_t key_size, KeymasterKeyBlob* key_material) const; 52 bool ImportKey(keymaster_key_format_t key_format, const KeymasterKeyBlob& to_import, 53 KeymasterKeyBlob* imported_key_material) const; 54 bool DeleteKey(const KeymasterKeyBlob& blob) const; 57 RSA* BlobToRsaKey(const KeymasterKeyBlob& blob) const; 58 EC_KEY* BlobToEcKey(const KeymasterKeyBlob& blob) const; 65 EVP_PKEY* GetKeymaster0PublicKey(const KeymasterKeyBlob& blob) const;
|
D | keymaster1_engine.h | 47 KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, 52 const KeymasterKeyBlob& input_key_material, 53 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 55 keymaster_error_t DeleteKey(const KeymasterKeyBlob& blob) const; 59 KeyData(const KeymasterKeyBlob& blob, const AuthorizationSet& params) in KeyData() 66 KeymasterKeyBlob key_material; 71 RSA* BuildRsaKey(const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params, 73 EC_KEY* BuildEcKey(const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params, 82 EVP_PKEY* GetKeymaster1PublicKey(const KeymasterKeyBlob& blob,
|
D | keymaster_passthrough_engine.h | 35 typedef TKeymasterBlob<keymaster_key_blob_t> KeymasterKeyBlob; typedef 44 KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, 49 const KeymasterKeyBlob& input_key_material, 50 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 53 const KeymasterKeyBlob& blob, 57 virtual keymaster_error_t DeleteKey(const KeymasterKeyBlob& blob) const = 0;
|
D | rsa_keymaster0_key.h | 41 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 46 const KeymasterKeyBlob& input_key_material, 47 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 50 keymaster_error_t LoadKey(KeymasterKeyBlob&& key_material,
|
D | ec_keymaster0_key.h | 41 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 46 const KeymasterKeyBlob& input_key_material, 47 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 50 keymaster_error_t LoadKey(KeymasterKeyBlob&& key_material,
|
D | keymaster1_legacy_support.h | 72 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, in GenerateKey() 85 const KeymasterKeyBlob& input_key_material, in ImportKey() 86 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, in ImportKey() 99 keymaster_error_t LoadKey(KeymasterKeyBlob&& key_material, in LoadKey() 146 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 152 Keymaster1ArbitrationFactory<EcdsaKeymaster1KeyFactory>::LoadKey(KeymasterKeyBlob&& key_material, 160 Keymaster1ArbitrationFactory<RsaKeymaster1KeyFactory>::LoadKey(KeymasterKeyBlob&& key_material,
|
/system/keymaster/include/keymaster/km_openssl/ |
D | ckdf.h | 28 keymaster_error_t ckdf(const KeymasterKeyBlob& key, const KeymasterBlob& label, 30 KeymasterKeyBlob* output); 36 inline keymaster_error_t ckdf(const KeymasterKeyBlob& key, const KeymasterBlob& label, in ckdf() 37 const keymaster_blob_t& context_chunks, KeymasterKeyBlob* output) { in ckdf()
|
D | rsa_key_factory.h | 35 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 39 const KeymasterKeyBlob& input_key_material, 40 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 55 const KeymasterKeyBlob& import_key_material,
|
D | ec_key_factory.h | 38 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 42 const KeymasterKeyBlob& input_key_material, 43 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 52 const KeymasterKeyBlob& key_material,
|
/system/keymaster/tests/ |
D | wrapped_key_test.cpp | 68 KeymasterKeyBlob asn1; in TEST() 72 KeymasterKeyBlob tk = {reinterpret_cast<const uint8_t*>(test_transit_key.c_str()), in TEST() 74 KeymasterKeyBlob secure_key = {reinterpret_cast<const uint8_t*>(test_secure_key.c_str()), in TEST() 86 KeymasterKeyBlob secure_key2; in TEST() 87 KeymasterKeyBlob transit_key2; in TEST() 108 KeymasterKeyBlob wrapped_key = {reinterpret_cast<const uint8_t*>(test_wrapped_key.c_str()), in TEST() 111 KeymasterKeyBlob secure_key; in TEST() 112 KeymasterKeyBlob transit_key; in TEST()
|
/system/keymaster/contexts/ |
D | keymaster1_passthrough_context.cpp | 94 const KeymasterKeyBlob& key_to_upgrade, const AuthorizationSet& upgrade_params, in UpgradeKeyBlob() 95 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob() 111 const KeymasterKeyBlob& blob, in parseKeymaster1HwBlob() 113 KeymasterKeyBlob* key_material, in parseKeymaster1HwBlob() 141 keymaster_error_t Keymaster1PassthroughContext::ParseKeyBlob(const KeymasterKeyBlob& blob, in ParseKeyBlob() 145 KeymasterKeyBlob key_material; in ParseKeyBlob() 176 keymaster_error_t Keymaster1PassthroughContext::DeleteKey(const KeymasterKeyBlob& blob) const { in DeleteKey() 181 KeymasterKeyBlob key_material; in DeleteKey() 215 const KeymasterKeyBlob& key_material, in CreateKeyBlob() 216 KeymasterKeyBlob* blob, in CreateKeyBlob() [all …]
|
D | keymaster2_passthrough_context.cpp | 62 const KeymasterKeyBlob& key_to_upgrade, const AuthorizationSet& upgrade_params, in UpgradeKeyBlob() 63 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob() 69 keymaster_error_t Keymaster2PassthroughContext::ParseKeyBlob(const KeymasterKeyBlob& blob, in ParseKeyBlob() 103 KeymasterKeyBlob key_material = blob; in ParseKeyBlob() 109 keymaster_error_t Keymaster2PassthroughContext::DeleteKey(const KeymasterKeyBlob& blob) const { in DeleteKey() 149 const KeymasterKeyBlob&, const KeymasterKeyBlob&, const AuthorizationSet&, in UnwrapKey() argument 150 const KeymasterKeyBlob&, AuthorizationSet*, keymaster_key_format_t*, KeymasterKeyBlob*) const { in UnwrapKey()
|
D | soft_keymaster_context.cpp | 198 const KeymasterKeyBlob& key_material, in CreateKeyBlob() 199 KeymasterKeyBlob* blob, in CreateKeyBlob() 215 keymaster_error_t SoftKeymasterContext::UpgradeKeyBlob(const KeymasterKeyBlob& key_to_upgrade, in UpgradeKeyBlob() 217 KeymasterKeyBlob* upgraded_key) const { in UpgradeKeyBlob() 243 keymaster_error_t SoftKeymasterContext::ParseKeyBlob(const KeymasterKeyBlob& blob, in ParseKeyBlob() 280 KeymasterKeyBlob key_material; in ParseKeyBlob() 332 keymaster_error_t SoftKeymasterContext::DeleteKey(const KeymasterKeyBlob& blob) const { in DeleteKey() 337 KeymasterKeyBlob key_material; in DeleteKey() 358 KeymasterKeyBlob key_material; in DeleteKey() 396 const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params, in ParseKeymaster1HwBlob() [all …]
|
/system/keymaster/km_openssl/ |
D | wrapped_key.cpp | 41 keymaster_error_t build_wrapped_key(const KeymasterKeyBlob& transit_key, const KeymasterBlob& iv, in build_wrapped_key() 43 const KeymasterKeyBlob& secure_key, const KeymasterBlob& tag, in build_wrapped_key() 45 KeymasterKeyBlob* der_wrapped_key) { in build_wrapped_key() 82 keymaster_error_t parse_wrapped_key(const KeymasterKeyBlob& wrapped_key, KeymasterBlob* iv, in parse_wrapped_key() 83 KeymasterKeyBlob* transit_key, KeymasterKeyBlob* secure_key, in parse_wrapped_key() 102 *transit_key = KeymasterKeyBlob(record->transit_key->data, record->transit_key->length); in parse_wrapped_key() 107 *secure_key = KeymasterKeyBlob(record->secure_key->data, record->secure_key->length); in parse_wrapped_key()
|