Home
last modified time | relevance | path

Searched refs:keymaster (Results 1 – 25 of 138) sorted by relevance

123456

/system/security/keystore/include/keystore/
Dkeystore_client.h77 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 …]
Dkeystore_client_mock.h40 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 …]
Dkeystore_client_impl.h42 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 …]
/system/vold/
DKeyStorage.cpp99 static bool generateKeymasterKey(Keymaster& keymaster, const KeyAuthentication& auth, in generateKeymasterKey() argument
101 auto paramBuilder = keymaster::AuthorizationSetBuilder() in generateKeymasterKey()
103 .Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_GCM) in generateKeymasterKey()
104 .Authorization(keymaster::TAG_MIN_MAC_LENGTH, GCM_MAC_BYTES * 8) in generateKeymasterKey()
105 .Authorization(keymaster::TAG_PADDING, KM_PAD_NONE); in generateKeymasterKey()
106 addStringParam(&paramBuilder, keymaster::TAG_APPLICATION_ID, appId); in generateKeymasterKey()
109 paramBuilder.Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in generateKeymasterKey()
118 paramBuilder.Authorization(keymaster::TAG_USER_SECURE_ID, at->user_id); in generateKeymasterKey()
119 paramBuilder.Authorization(keymaster::TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD); in generateKeymasterKey()
120 paramBuilder.Authorization(keymaster::TAG_AUTH_TIMEOUT, AUTH_TIMEOUT); in generateKeymasterKey()
[all …]
DKeymaster.cpp198 bool Keymaster::generateKey(const keymaster::AuthorizationSet& inParams, std::string* key) { in generateKey()
221 const keymaster::AuthorizationSet& inParams, in begin()
222 keymaster::AuthorizationSet* outParams) { in begin()
238 const keymaster::AuthorizationSet& inParams) { in begin()
/system/security/keystore/
Dkeystore_client_impl.cpp38 using keymaster::AuthorizationSet;
39 using keymaster::AuthorizationSetBuilder;
93 encrypt_params.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_CBC); in encryptWithAuthentication()
103 if (!output_params.GetTagValue(keymaster::TAG_NONCE, &init_vector_blob)) { in encryptWithAuthentication()
112 authenticate_params.Authorization(keymaster::TAG_MAC_LENGTH, kHMACOutputSize); in encryptWithAuthentication()
153 encrypt_params.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_CBC); in decryptWithAuthentication()
154 encrypt_params.Authorization(keymaster::TAG_NONCE, protobuf.init_vector().data(), in decryptWithAuthentication()
166 const keymaster::AuthorizationSet& input_parameters, in oneShotOperation()
169 keymaster::AuthorizationSet* output_parameters, in oneShotOperation()
409 .Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_CBC) in createOrVerifyEncryptionKey()
[all …]
Dkeystore_cli_v2.cpp27 using keymaster::AuthorizationSet;
28 using keymaster::AuthorizationSetBuilder;
67 printf(" %s\n", keymaster::StringifyTag(iter->tag)); in PrintTags()
126 .Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in GetRSASignParameters()
140 .Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in GetRSAEncryptParameters()
148 .Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in GetECDSAParameters()
159 parameters.AesEncryptionKey(key_size).Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in GetAESParameters()
161 parameters.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_GCM) in GetAESParameters()
162 .Authorization(keymaster::TAG_MIN_MAC_LENGTH, 128); in GetAESParameters()
164 parameters.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_ECB); in GetAESParameters()
[all …]
Dkeystore_main.cpp40 using keymaster::AuthorizationSet;
41 using keymaster::AuthorizationSetBuilder;
42 using keymaster::SoftKeymasterDevice;
45 keymaster_error_t error = keymaster::ConfigureDevice(main); in configure_keymaster_devices()
50 error = keymaster::ConfigureDevice(fallback); in configure_keymaster_devices()
180 static keymaster::SoftKeymasterLogger softkeymaster_logger;
Dkey_store_service.cpp33 using keymaster::AuthorizationSet;
34 using keymaster::AuthorizationSetBuilder;
35 using keymaster::TAG_APPLICATION_DATA;
36 using keymaster::TAG_APPLICATION_ID;
892 keymaster::km_id_t keyid; in begin()
900 keymaster::AuthorizationSet key_auths(characteristics->hw_enforced); in begin()
902 keymaster::AuthorizationSet operation_params(inParams); in begin()
968 keymaster::km_id_t keyid; in update()
987 keymaster::AuthorizationSet key_auths(characteristics->hw_enforced); in update()
989 keymaster::AuthorizationSet operation_params(inParams); in update()
[all …]
/system/keymaster/
Dkeymaster_configuration.cpp36 namespace keymaster { namespace
67 .Authorization(keymaster::TAG_OS_VERSION, os_version) in ConfigureDevice()
68 .Authorization(keymaster::TAG_OS_PATCHLEVEL, os_patchlevel)); in ConfigureDevice()
Dopenssl_err.h23 namespace keymaster {
Dkdf1.h28 namespace keymaster {
Dkdf2.h28 namespace keymaster {
Dkey.cpp25 namespace keymaster { namespace
Dec_key.cpp25 namespace keymaster { namespace
Dkey_exchange.h24 namespace keymaster {
Dsoft_keymaster_logger.cpp25 namespace keymaster { namespace
Dauth_encrypted_key_blob.h22 namespace keymaster {
Dkey.h28 namespace keymaster {
Diso18033kdf.h28 namespace keymaster {
Dintegrity_assured_key_blob.h22 namespace keymaster {
Doperation_table.h24 namespace keymaster {
Docb_utils.h26 namespace keymaster {
/system/keymaster/include/keymaster/
Dkeymaster_configuration.h27 namespace keymaster {
Dsoft_keymaster_logger.h22 namespace keymaster {

123456