/system/keymaster/include/keymaster/ |
D | soft_keymaster_context.h | 60 keymaster_error_t CreateKeyBlob(const AuthorizationSet& auths, keymaster_key_origin_t origin, 62 AuthorizationSet* hw_enforced, 63 AuthorizationSet* sw_enforced) const override; 66 const AuthorizationSet& additional_params, 67 KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, 68 AuthorizationSet* sw_enforced) const override; 80 AuthorizationSet* hw_enforced, 81 AuthorizationSet* sw_enforced) const; 83 const AuthorizationSet& additional_params, 85 AuthorizationSet* hw_enforced, [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 | 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,
|
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 | 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, 65 RsaKeymaster0Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, [all …]
|
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, 65 EcKeymaster0Key(EC_KEY* ec_key, const AuthorizationSet& hw_enforced, [all …]
|
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, [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, [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 | 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& signature, 72 AuthorizationSet* output_params, Buffer* output) override; 80 keymaster_error_t GetIv(const AuthorizationSet& input_params); 81 bool HandleAad(const AuthorizationSet& input_params, const Buffer& input, 112 keymaster_error_t Begin(const AuthorizationSet& input_params, [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 | 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 | 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);
|
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 | 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 | 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& signature, 60 AuthorizationSet* output_params, Buffer* output) override; 67 keymaster_error_t Begin(const AuthorizationSet& input_params, 68 AuthorizationSet* output_params) override; 69 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input, 70 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& signature, 99 AuthorizationSet* output_params, Buffer* output) override; [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; 57 KeyData(const KeymasterKeyBlob& blob, const AuthorizationSet& params) in KeyData() 62 AuthorizationSet begin_params; 63 AuthorizationSet finish_params; 69 RSA* BuildRsaKey(const KeymasterKeyBlob& blob, const AuthorizationSet& additional_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 | android_keymaster_test_utils.cpp | 131 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b) { in operator ==() 141 bool operator!=(const AuthorizationSet& a, const AuthorizationSet& b) { in operator !=() 145 std::ostream& operator<<(std::ostream& os, const AuthorizationSet& set) { in operator <<() 174 AuthorizationSet params(builder.build()); in GenerateKey() 186 AuthorizationSet params(builder.build()); in ImportKey() 197 AuthorizationSet Keymaster1Test::UserAuthParams() { in UserAuthParams() 198 AuthorizationSet set; in UserAuthParams() 205 AuthorizationSet Keymaster1Test::ClientParams() { in ClientParams() 206 AuthorizationSet set; in ClientParams() 212 AuthorizationSet in_params(client_params()); in BeginOperation() [all …]
|
D | ec_keymaster0_key.cpp | 36 keymaster_error_t EcdsaKeymaster0KeyFactory::GenerateKey(const AuthorizationSet& key_description, in GenerateKey() 38 AuthorizationSet* hw_enforced, in GenerateKey() 39 AuthorizationSet* sw_enforced) const { in GenerateKey() 67 const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, in ImportKey() 69 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey() 77 AuthorizationSet authorizations; in ImportKey() 99 const AuthorizationSet& additional_params, in LoadKey() 100 const AuthorizationSet& hw_enforced, in LoadKey() 101 const AuthorizationSet& sw_enforced, in LoadKey() 122 EcKeymaster0Key::EcKeymaster0Key(EC_KEY* ec_key, const AuthorizationSet& hw_enforced, in EcKeymaster0Key() [all …]
|
D | rsa_keymaster0_key.cpp | 36 keymaster_error_t RsaKeymaster0KeyFactory::GenerateKey(const AuthorizationSet& key_description, in GenerateKey() 38 AuthorizationSet* hw_enforced, in GenerateKey() 39 AuthorizationSet* sw_enforced) const { in GenerateKey() 71 const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, in ImportKey() 73 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey() 77 AuthorizationSet authorizations; in ImportKey() 102 const AuthorizationSet& additional_params, in LoadKey() 103 const AuthorizationSet& hw_enforced, in LoadKey() 104 const AuthorizationSet& sw_enforced, in LoadKey() 128 RsaKeymaster0Key::RsaKeymaster0Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, in RsaKeymaster0Key() [all …]
|
D | android_keymaster_test_utils.h | 47 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b); 48 bool operator!=(const AuthorizationSet& a, const AuthorizationSet& b); 50 std::ostream& operator<<(std::ostream& os, const AuthorizationSet& set); 55 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, in contains() 62 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, in contains() 72 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT, Tag> tag, uint32_t val) { in contains() 78 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT_REP, Tag> tag, uint32_t val) { in contains() 87 bool contains(const AuthorizationSet& set, TypedTag<KM_ULONG, Tag> tag, uint64_t val) { in contains() 93 bool contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) { in contains() 101 bool contains(const AuthorizationSet& set, TypedTag<KM_BIGNUM, Tag> tag, const std::string& val) { in contains() [all …]
|
D | authorization_set.cpp | 37 AuthorizationSet::AuthorizationSet(AuthorizationSetBuilder& builder) { in AuthorizationSet() function in keymaster::AuthorizationSet 60 AuthorizationSet::~AuthorizationSet() { in ~AuthorizationSet() 64 bool AuthorizationSet::reserve_elems(size_t count) { in reserve_elems() 82 bool AuthorizationSet::reserve_indirect(size_t length) { in reserve_indirect() 106 bool AuthorizationSet::Reinitialize(const keymaster_key_param_t* elems, const size_t count) { in Reinitialize() 127 void AuthorizationSet::set_invalid(Error error) { in set_invalid() 132 void AuthorizationSet::Deduplicate() { in Deduplicate() 159 void AuthorizationSet::CopyToParamSet(keymaster_key_param_set_t* set) const { in CopyToParamSet() 180 int AuthorizationSet::find(keymaster_tag_t tag, int begin) const { in find() 194 keymaster_key_param_t& AuthorizationSet::operator[](int at) { in operator []() [all …]
|