/system/keymaster/include/keymaster/ |
D | soft_keymaster_context.h | 67 keymaster_error_t CreateKeyBlob(const AuthorizationSet& auths, keymaster_key_origin_t origin, 69 AuthorizationSet* hw_enforced, 70 AuthorizationSet* sw_enforced) const override; 72 const AuthorizationSet& upgrade_params, 75 const AuthorizationSet& additional_params, 76 KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, 77 AuthorizationSet* sw_enforced) const override; 96 void AddSystemVersionToSet(AuthorizationSet* auth_set) const; 101 AuthorizationSet* hw_enforced, 102 AuthorizationSet* sw_enforced) const; [all …]
|
D | ec_key_factory.h | 34 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 35 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 36 AuthorizationSet* sw_enforced) const override; 37 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 40 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 41 AuthorizationSet* sw_enforced) const override; 43 keymaster_error_t CreateEmptyKey(const AuthorizationSet& hw_enforced, 44 const AuthorizationSet& sw_enforced, 47 keymaster_error_t UpdateImportKeyDescription(const AuthorizationSet& key_description, 50 AuthorizationSet* updated_description, [all …]
|
D | rsa_key_factory.h | 31 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 32 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 33 AuthorizationSet* sw_enforced) const override; 34 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 37 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 38 AuthorizationSet* sw_enforced) const override; 40 keymaster_error_t CreateEmptyKey(const AuthorizationSet& hw_enforced, 41 const AuthorizationSet& sw_enforced, 50 keymaster_error_t UpdateImportKeyDescription(const AuthorizationSet& key_description, 53 AuthorizationSet* updated_description,
|
D | keymaster_enforcement.h | 53 const AuthorizationSet& auth_set, 54 const AuthorizationSet& operation_params, 64 const AuthorizationSet& auth_set, 65 const AuthorizationSet& operation_params); 72 keymaster_error_t AuthorizeUpdate(const AuthorizationSet& auth_set, in AuthorizeUpdate() 73 const AuthorizationSet& operation_params, in AuthorizeUpdate() 83 keymaster_error_t AuthorizeFinish(const AuthorizationSet& auth_set, in AuthorizeFinish() 84 const AuthorizationSet& operation_params, in AuthorizeFinish() 147 keymaster_error_t AuthorizeUpdateOrFinish(const AuthorizationSet& auth_set, 148 const AuthorizationSet& operation_params, [all …]
|
D | key_factory.h | 40 virtual keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 41 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 42 AuthorizationSet* sw_enforced) const = 0; 44 virtual keymaster_error_t ImportKey(const AuthorizationSet& key_description, 48 AuthorizationSet* hw_enforced, 49 AuthorizationSet* sw_enforced) const = 0; 52 const AuthorizationSet& additional_params, 53 const AuthorizationSet& hw_enforced, 54 const AuthorizationSet& sw_enforced,
|
/system/keymaster/ |
D | ec_keymaster0_key.h | 41 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 42 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 43 AuthorizationSet* sw_enforced) const override; 45 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 48 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 49 AuthorizationSet* sw_enforced) const override; 52 const AuthorizationSet& additional_params, 53 const AuthorizationSet& hw_enforced, 54 const AuthorizationSet& sw_enforced, 63 EcKeymaster0Key(EC_KEY* ec_key, const AuthorizationSet& hw_enforced, in EcKeymaster0Key() [all …]
|
D | rsa_keymaster0_key.h | 41 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 42 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 43 AuthorizationSet* sw_enforced) const override; 45 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 48 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 49 AuthorizationSet* sw_enforced) const override; 52 const AuthorizationSet& additional_params, 53 const AuthorizationSet& hw_enforced, 54 const AuthorizationSet& sw_enforced, 63 RsaKeymaster0Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, in RsaKeymaster0Key() [all …]
|
D | integrity_assured_key_blob.h | 24 class AuthorizationSet; variable 29 const AuthorizationSet& hidden, 30 const AuthorizationSet& hw_enforced, 31 const AuthorizationSet& sw_enforced, 35 const AuthorizationSet& hidden, 37 AuthorizationSet* hw_enforced, 38 AuthorizationSet* sw_enforced); 42 AuthorizationSet* hw_enforced, 43 AuthorizationSet* sw_enforced);
|
D | ec_keymaster1_key.h | 45 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 46 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 47 AuthorizationSet* sw_enforced) const override; 49 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 52 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 53 AuthorizationSet* sw_enforced) const override; 56 const AuthorizationSet& additional_params, 57 const AuthorizationSet& hw_enforced, 58 const AuthorizationSet& sw_enforced, 72 EcdsaKeymaster1Key(EC_KEY* ecdsa_key, const AuthorizationSet& hw_enforced, in EcdsaKeymaster1Key() [all …]
|
D | aes_operation.h | 35 Operation* CreateOperation(const Key& key, const AuthorizationSet& begin_params, 66 keymaster_error_t Begin(const AuthorizationSet& input_params, 67 AuthorizationSet* output_params) override; 68 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 69 AuthorizationSet* output_params, Buffer* output, 71 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 72 const Buffer& signature, AuthorizationSet* output_params, 81 keymaster_error_t GetIv(const AuthorizationSet& input_params); 82 bool HandleAad(const AuthorizationSet& input_params, const Buffer& input, 89 bool UpdateForFinish(const AuthorizationSet& additional_params, const Buffer& input, [all …]
|
D | rsa_keymaster1_key.h | 45 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 46 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 47 AuthorizationSet* sw_enforced) const override; 49 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 52 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 53 AuthorizationSet* sw_enforced) const override; 56 const AuthorizationSet& additional_params, 57 const AuthorizationSet& hw_enforced, 58 const AuthorizationSet& sw_enforced, 74 RsaKeymaster1Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, in RsaKeymaster1Key() [all …]
|
D | operation.h | 31 class AuthorizationSet; variable 54 virtual Operation* CreateOperation(const Key& key, const AuthorizationSet& begin_params, 79 bool GetAndValidatePadding(const AuthorizationSet& begin_params, const Key& key, 81 bool GetAndValidateDigest(const AuthorizationSet& begin_params, const Key& key, 98 void SetAuthorizations(const AuthorizationSet& auths) { in SetAuthorizations() 101 const AuthorizationSet authorizations() { return key_auths_; } in authorizations() 103 virtual keymaster_error_t Begin(const AuthorizationSet& input_params, 104 AuthorizationSet* output_params) = 0; 105 virtual keymaster_error_t Update(const AuthorizationSet& input_params, const Buffer& input, 106 AuthorizationSet* output_params, Buffer* output, [all …]
|
D | ec_keymaster1_key.cpp | 41 static void UpdateToWorkAroundUnsupportedDigests(const AuthorizationSet& key_description, in UpdateToWorkAroundUnsupportedDigests() 42 AuthorizationSet* new_description) { in UpdateToWorkAroundUnsupportedDigests() 64 keymaster_error_t EcdsaKeymaster1KeyFactory::GenerateKey(const AuthorizationSet& key_description, in GenerateKey() 66 AuthorizationSet* hw_enforced, in GenerateKey() 67 AuthorizationSet* sw_enforced) const { in GenerateKey() 68 AuthorizationSet key_params_copy; in GenerateKey() 74 const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, in ImportKey() 76 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey() 77 AuthorizationSet key_params_copy; in ImportKey() 84 const AuthorizationSet& additional_params, in LoadKey() [all …]
|
D | authorization_set_test.cpp | 36 AuthorizationSet set(params, array_length(params)); in TEST() 48 AuthorizationSet set(params, array_length(params)); in TEST() 49 AuthorizationSet set2(set); in TEST() 58 AuthorizationSet set1(params, 0); in TEST() 60 EXPECT_EQ(AuthorizationSet::OK, set1.is_valid()); in TEST() 62 AuthorizationSet set2(reinterpret_cast<keymaster_key_param_t*>(NULL), array_length(params)); in TEST() 64 EXPECT_EQ(AuthorizationSet::OK, set2.is_valid()); in TEST() 68 AuthorizationSet set(AuthorizationSetBuilder() in TEST() 99 AuthorizationSet set(AuthorizationSetBuilder() in TEST() 128 AuthorizationSet set(AuthorizationSetBuilder() in TEST() [all …]
|
D | rsa_keymaster1_key.cpp | 43 static void UpdateToWorkAroundUnsupportedDigests(const AuthorizationSet& key_description, in UpdateToWorkAroundUnsupportedDigests() 44 AuthorizationSet* new_description) { in UpdateToWorkAroundUnsupportedDigests() 85 keymaster_error_t RsaKeymaster1KeyFactory::GenerateKey(const AuthorizationSet& key_description, in GenerateKey() 87 AuthorizationSet* hw_enforced, in GenerateKey() 88 AuthorizationSet* sw_enforced) const { in GenerateKey() 89 AuthorizationSet key_params_copy; in GenerateKey() 95 const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, in ImportKey() 97 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey() 98 AuthorizationSet key_params_copy; in ImportKey() 105 const AuthorizationSet& additional_params, in LoadKey() [all …]
|
D | key.h | 45 const KeymasterContext& /* context */, const AuthorizationSet& /* attest_params */, in GenerateAttestation() argument 46 const AuthorizationSet& /* tee_enforced */, const AuthorizationSet& /* sw_enforced */, in GenerateAttestation() 51 const AuthorizationSet& authorizations() const { return authorizations_; } in authorizations() 54 Key(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, 58 AuthorizationSet authorizations_;
|
D | ocb_utils.h | 28 class AuthorizationSet; variable 34 keymaster_error_t OcbEncryptKey(const AuthorizationSet& hw_enforced, 35 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, 40 keymaster_error_t OcbDecryptKey(const AuthorizationSet& hw_enforced, 41 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden,
|
D | keymaster1_engine.h | 46 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 47 KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, 48 AuthorizationSet* sw_enforced) const; 50 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 53 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 54 AuthorizationSet* sw_enforced) const; 59 KeyData(const KeymasterKeyBlob& blob, const AuthorizationSet& params) in KeyData() 64 AuthorizationSet begin_params; 65 AuthorizationSet finish_params; 71 RSA* BuildRsaKey(const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params, [all …]
|
D | ecdsa_operation.h | 54 keymaster_error_t Begin(const AuthorizationSet& input_params, 55 AuthorizationSet* output_params) override; 56 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 57 AuthorizationSet* output_params, Buffer* output, 59 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 60 const Buffer& signature, AuthorizationSet* output_params, 68 keymaster_error_t Begin(const AuthorizationSet& input_params, 69 AuthorizationSet* output_params) override; 70 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 71 AuthorizationSet* output_params, Buffer* output, [all …]
|
D | rsa_operation.h | 42 keymaster_error_t Begin(const AuthorizationSet& input_params, 43 AuthorizationSet* output_params) override; 44 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 45 AuthorizationSet* output_params, Buffer* output, 93 keymaster_error_t Begin(const AuthorizationSet& input_params, 94 AuthorizationSet* output_params) override; 95 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 96 AuthorizationSet* output_params, Buffer* output, 98 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 99 const Buffer& signature, AuthorizationSet* output_params, [all …]
|
D | symmetric_key.h | 32 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 33 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 34 AuthorizationSet* sw_enforced) const override; 35 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 38 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 39 AuthorizationSet* sw_enforced) const override; 49 validate_algorithm_specific_new_key_params(const AuthorizationSet& key_description) const = 0; 71 SymmetricKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& hw_enforced, 72 const AuthorizationSet& sw_enforced, keymaster_error_t* error);
|
D | attestation_record_test.cpp | 54 keymaster_error_t CreateKeyBlob(const AuthorizationSet& /* key_description */, in CreateKeyBlob() argument 58 AuthorizationSet* /* hw_enforced */, in CreateKeyBlob() argument 59 AuthorizationSet* /* sw_enforced */) const override { in CreateKeyBlob() 63 const AuthorizationSet& /* upgrade_params */, in UpgradeKeyBlob() argument 68 const AuthorizationSet& /* additional_params */, in ParseKeyBlob() argument 70 AuthorizationSet* /* hw_enforced */, in ParseKeyBlob() argument 71 AuthorizationSet* /* sw_enforced */) const override { in ParseKeyBlob() 99 AuthorizationSet hw_set(AuthorizationSetBuilder() in TEST() 106 AuthorizationSet sw_set(AuthorizationSetBuilder().Authorization(TAG_ACTIVE_DATETIME, 10)); in TEST() 110 AuthorizationSet attest_params( in TEST() [all …]
|
/system/security/keystore/include/keystore/ |
D | keystore_client.h | 77 const keymaster::AuthorizationSet& input_parameters, 80 keymaster::AuthorizationSet* output_parameters, 93 const keymaster::AuthorizationSet& key_parameters, 94 keymaster::AuthorizationSet* hardware_enforced_characteristics, 95 keymaster::AuthorizationSet* software_enforced_characteristics) = 0; 102 keymaster::AuthorizationSet* hardware_enforced_characteristics, 103 keymaster::AuthorizationSet* software_enforced_characteristics) = 0; 111 const keymaster::AuthorizationSet& key_parameters, 113 keymaster::AuthorizationSet* hardware_enforced_characteristics, 114 keymaster::AuthorizationSet* software_enforced_characteristics) = 0; [all …]
|
D | keystore_client_mock.h | 40 const keymaster::AuthorizationSet& input_parameters, 42 keymaster::AuthorizationSet* output_parameters, std::string* output_data)); 46 const keymaster::AuthorizationSet& key_parameters, 47 keymaster::AuthorizationSet* hardware_enforced_characteristics, 48 keymaster::AuthorizationSet* software_enforced_characteristics)); 51 keymaster::AuthorizationSet* hardware_enforced_characteristics, 52 keymaster::AuthorizationSet* software_enforced_characteristics)); 55 const keymaster::AuthorizationSet& key_parameters, 57 keymaster::AuthorizationSet* hardware_enforced_characteristics, 58 keymaster::AuthorizationSet* software_enforced_characteristics)); [all …]
|
D | keystore_client_impl.h | 42 const keymaster::AuthorizationSet& input_parameters, 44 keymaster::AuthorizationSet* output_parameters, 48 const keymaster::AuthorizationSet& key_parameters, 49 keymaster::AuthorizationSet* hardware_enforced_characteristics, 50 keymaster::AuthorizationSet* software_enforced_characteristics) override; 53 keymaster::AuthorizationSet* hardware_enforced_characteristics, 54 keymaster::AuthorizationSet* software_enforced_characteristics) override; 56 const keymaster::AuthorizationSet& key_parameters, 58 keymaster::AuthorizationSet* hardware_enforced_characteristics, 59 keymaster::AuthorizationSet* software_enforced_characteristics) override; [all …]
|