/system/keymaster/include/keymaster/key_blob_utils/ |
D | software_keyblobs.h | 29 class AuthorizationSet; variable 34 keymaster_error_t BuildHiddenAuthorizations(const AuthorizationSet& input_set, 35 AuthorizationSet* hidden, 39 AuthorizationSet* hw_enforced, 40 AuthorizationSet* sw_enforced); 44 AuthorizationSet* hw_enforced, 45 AuthorizationSet* sw_enforced); 48 const AuthorizationSet& hidden, 50 AuthorizationSet* hw_enforced, 51 AuthorizationSet* sw_enforced); [all …]
|
D | integrity_assured_key_blob.h | 24 class AuthorizationSet; variable 30 const AuthorizationSet& hidden, 31 const AuthorizationSet& hw_enforced, 32 const AuthorizationSet& sw_enforced, 36 const AuthorizationSet& hidden, 38 AuthorizationSet* hw_enforced, 39 AuthorizationSet* sw_enforced); 43 AuthorizationSet* hw_enforced, 44 AuthorizationSet* sw_enforced);
|
D | ocb_utils.h | 28 class AuthorizationSet; variable 35 keymaster_error_t OcbEncryptKey(const AuthorizationSet& hw_enforced, 36 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, 41 keymaster_error_t OcbDecryptKey(const AuthorizationSet& hw_enforced, 42 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden,
|
/system/keymaster/include/keymaster/km_openssl/ |
D | ecdsa_operation.h | 32 EcdsaOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaOperation() 55 EcdsaSignOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaSignOperation() 58 keymaster_error_t Begin(const AuthorizationSet& input_params, 59 AuthorizationSet* output_params) override; 60 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 61 AuthorizationSet* output_params, Buffer* output, 63 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 64 const Buffer& signature, AuthorizationSet* output_params, 70 EcdsaVerifyOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaVerifyOperation() 73 keymaster_error_t Begin(const AuthorizationSet& input_params, [all …]
|
D | rsa_operation.h | 36 RsaOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaOperation() 43 keymaster_error_t Begin(const AuthorizationSet& input_params, 44 AuthorizationSet* output_params) override; 45 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 46 AuthorizationSet* output_params, Buffer* output, 76 RsaDigestingOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, 92 RsaSignOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaSignOperation() 97 keymaster_error_t Begin(const AuthorizationSet& input_params, 98 AuthorizationSet* output_params) override; 99 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, [all …]
|
D | ec_key_factory.h | 37 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 38 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 39 AuthorizationSet* sw_enforced) const override; 40 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 43 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 44 AuthorizationSet* sw_enforced) const override; 46 keymaster_error_t CreateEmptyKey(AuthorizationSet&& hw_enforced, 47 AuthorizationSet&& sw_enforced, 50 keymaster_error_t UpdateImportKeyDescription(const AuthorizationSet& key_description, 53 AuthorizationSet* updated_description, [all …]
|
D | rsa_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(AuthorizationSet&& hw_enforced, 44 AuthorizationSet&& sw_enforced, 53 keymaster_error_t UpdateImportKeyDescription(const AuthorizationSet& key_description, 56 AuthorizationSet* updated_description,
|
/system/keymaster/include/keymaster/legacy_support/ |
D | rsa_keymaster0_key.h | 40 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 41 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 42 AuthorizationSet* sw_enforced) const override; 44 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 47 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 48 AuthorizationSet* sw_enforced) const override; 51 const AuthorizationSet& additional_params, 52 AuthorizationSet&& hw_enforced, 53 AuthorizationSet&& sw_enforced, 62 RsaKeymaster0Key(RSA* rsa_key, AuthorizationSet&& hw_enforced, in RsaKeymaster0Key() [all …]
|
D | ec_keymaster0_key.h | 40 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 41 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 42 AuthorizationSet* sw_enforced) const override; 44 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 47 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 48 AuthorizationSet* sw_enforced) const override; 51 const AuthorizationSet& additional_params, 52 AuthorizationSet&& hw_enforced, 53 AuthorizationSet&& sw_enforced, 62 EcKeymaster0Key(EC_KEY* ec_key, AuthorizationSet&& hw_enforced, in EcKeymaster0Key() [all …]
|
D | keymaster1_legacy_support.h | 48 bool RequiresSoftwareDigesting(const AuthorizationSet& key_description) const; 71 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, in GenerateKey() 72 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, in GenerateKey() 73 AuthorizationSet* sw_enforced) const { in GenerateKey() 83 keymaster_error_t ImportKey(const AuthorizationSet& key_description, in ImportKey() 86 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, in ImportKey() 87 AuthorizationSet* sw_enforced) const { in ImportKey() 100 const AuthorizationSet& additional_params, in LoadKey() 101 AuthorizationSet&& hw_enforced, in LoadKey() 102 AuthorizationSet&& sw_enforced, in LoadKey() [all …]
|
D | ec_keymaster1_key.h | 44 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, 45 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, 46 AuthorizationSet* sw_enforced) const override; 48 keymaster_error_t ImportKey(const AuthorizationSet& key_description, 51 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, 52 AuthorizationSet* sw_enforced) const override; 55 const AuthorizationSet& additional_params, 56 AuthorizationSet&& hw_enforced, 57 AuthorizationSet&& sw_enforced, 71 EcdsaKeymaster1Key(EC_KEY* ecdsa_key, AuthorizationSet&& hw_enforced, in EcdsaKeymaster1Key() [all …]
|
D | keymaster_passthrough_key.h | 43 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, in GenerateKey() 44 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, in GenerateKey() 45 AuthorizationSet* sw_enforced) const override { in GenerateKey() 49 keymaster_error_t ImportKey(const AuthorizationSet& key_description, in ImportKey() 52 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, in ImportKey() 53 AuthorizationSet* sw_enforced) const override { in ImportKey() 59 const AuthorizationSet& additional_params, 60 AuthorizationSet&& hw_enforced, 61 AuthorizationSet&& sw_enforced, 78 KeymasterPassthroughKey(KeymasterKeyBlob&& key_material, AuthorizationSet&& hw_enforced, in KeymasterPassthroughKey() [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 AuthorizationSet&& hw_enforced, 58 AuthorizationSet&& sw_enforced, 74 RsaKeymaster1Key(RSA* rsa_key, AuthorizationSet&& hw_enforced, in RsaKeymaster1Key() [all …]
|
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 …]
|
/system/keymaster/tests/ |
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 …]
|
/system/security/keystore/include/keystore/ |
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.h | 80 const keystore::AuthorizationSet& input_parameters, 83 keystore::AuthorizationSet* output_parameters, 97 generateKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters, 98 int32_t flags, keystore::AuthorizationSet* hardware_enforced_characteristics, 99 keystore::AuthorizationSet* software_enforced_characteristics) = 0; 106 keystore::AuthorizationSet* hardware_enforced_characteristics, 107 keystore::AuthorizationSet* software_enforced_characteristics) = 0; 115 importKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters, 117 keystore::AuthorizationSet* hardware_enforced_characteristics, 118 keystore::AuthorizationSet* software_enforced_characteristics) = 0; [all …]
|
D | keystore_client_impl.h | 43 const keystore::AuthorizationSet& input_parameters, 45 keystore::AuthorizationSet* output_parameters, 50 generateKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters, 51 int32_t flags, keystore::AuthorizationSet* hardware_enforced_characteristics, 52 keystore::AuthorizationSet* software_enforced_characteristics) override; 55 keystore::AuthorizationSet* hardware_enforced_characteristics, 56 keystore::AuthorizationSet* software_enforced_characteristics) override; 58 importKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters, 60 keystore::AuthorizationSet* hardware_enforced_characteristics, 61 keystore::AuthorizationSet* software_enforced_characteristics) override; [all …]
|
/system/keymaster/include/keymaster/ |
D | key.h | 45 const AuthorizationSet& hw_enforced() const { return hw_enforced_; } in hw_enforced() 46 const AuthorizationSet& sw_enforced() const { return sw_enforced_; } in sw_enforced() 47 AuthorizationSet& hw_enforced() { return hw_enforced_; } in hw_enforced() 48 AuthorizationSet& sw_enforced() { return sw_enforced_; } in sw_enforced() 56 AuthorizationSet&& hw_enforced_move() { return move(hw_enforced_); } in hw_enforced_move() 57 AuthorizationSet&& sw_enforced_move() { return move(sw_enforced_); } in sw_enforced_move() 64 Key(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in Key() 70 AuthorizationSet hw_enforced_; 71 AuthorizationSet sw_enforced_;
|
D | operation.h | 31 class AuthorizationSet; variable 55 virtual OperationPtr CreateOperation(Key&& key, const AuthorizationSet& begin_params, 80 bool GetAndValidatePadding(const AuthorizationSet& begin_params, const Key& key, 82 bool GetAndValidateDigest(const AuthorizationSet& begin_params, const Key& key, 91 explicit Operation(keymaster_purpose_t purpose, AuthorizationSet&& hw_enforced, in Operation() 92 AuthorizationSet&& sw_enforced) in Operation() 107 virtual keymaster_error_t Begin(const AuthorizationSet& input_params, 108 AuthorizationSet* output_params) = 0; 109 virtual keymaster_error_t Update(const AuthorizationSet& input_params, const Buffer& input, 110 AuthorizationSet* output_params, Buffer* output, [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 AuthorizationSet&& hw_enforced, 54 AuthorizationSet&& sw_enforced,
|
/system/keymaster/km_openssl/ |
D | block_cipher_operation.h | 54 OperationPtr CreateOperation(Key&& key, const AuthorizationSet& begin_params, 76 keymaster_error_t Begin(const AuthorizationSet& input_params, 77 AuthorizationSet* output_params) override; 78 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 79 AuthorizationSet* output_params, Buffer* output, 81 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input, 82 const Buffer& signature, AuthorizationSet* output_params, 91 keymaster_error_t GetIv(const AuthorizationSet& input_params); 92 bool HandleAad(const AuthorizationSet& input_params, const Buffer& input, 99 bool UpdateForFinish(const AuthorizationSet& additional_params, const Buffer& input, [all …]
|
/system/keymaster/legacy_support/ |
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() 83 const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, in ImportKey() 85 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey() 86 AuthorizationSet key_params_copy; in ImportKey() 93 const AuthorizationSet& additional_params, in LoadKey() [all …]
|
D | rsa_keymaster1_key.cpp | 40 static void UpdateToWorkAroundUnsupportedDigests(const AuthorizationSet& key_description, in UpdateToWorkAroundUnsupportedDigests() 41 AuthorizationSet* new_description) { in UpdateToWorkAroundUnsupportedDigests() 82 keymaster_error_t RsaKeymaster1KeyFactory::GenerateKey(const AuthorizationSet& key_description, in GenerateKey() 84 AuthorizationSet* hw_enforced, in GenerateKey() 85 AuthorizationSet* sw_enforced) const { in GenerateKey() 86 AuthorizationSet key_params_copy; in GenerateKey() 92 const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, in ImportKey() 94 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey() 95 AuthorizationSet key_params_copy; in ImportKey() 102 const AuthorizationSet& additional_params, in LoadKey() [all …]
|
/system/keymaster/include/keymaster/contexts/ |
D | soft_keymaster_context.h | 74 const AuthorizationSet& upgrade_params, 77 const AuthorizationSet& additional_params, 84 const AuthorizationSet& attest_params, 89 const AuthorizationSet& wrapping_key_params, const KeymasterKeyBlob& masking_key, 90 AuthorizationSet* wrapped_key_params, keymaster_key_format_t* wrapped_key_format, 101 keymaster_error_t CreateKeyBlob(const AuthorizationSet& auths, keymaster_key_origin_t origin, 103 AuthorizationSet* hw_enforced, 104 AuthorizationSet* sw_enforced) const override; 109 const AuthorizationSet& additional_params, 111 AuthorizationSet* hw_enforced, [all …]
|