Searched defs:hw_enforced (Results 1 - 25 of 28) sorted by relevance

12

/system/keymaster/
H A Dkey.cpp27 Key::Key(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, argument
30 authorizations_.push_back(hw_enforced);
H A Dasymmetric_key.h28 AsymmetricKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, argument
30 : Key(hw_enforced, sw_enforced, error) {}
H A Daes_key.cpp46 const AuthorizationSet& hw_enforced,
53 if (hw_enforced.Contains(TAG_BLOCK_MODE, KM_MODE_GCM) ||
56 if (!hw_enforced.GetTagValue(TAG_MIN_MAC_LENGTH, &min_mac_length) &&
65 key->reset(new (std::nothrow) AesKey(key_material, hw_enforced, sw_enforced, &error));
44 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& , const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
H A Daes_key.h37 const AuthorizationSet& hw_enforced,
53 AesKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& hw_enforced, argument
55 : SymmetricKey(key_material, hw_enforced, sw_enforced, error) {}
H A Dasymmetric_key_factory.cpp43 const AuthorizationSet& hw_enforced,
47 keymaster_error_t error = CreateEmptyKey(hw_enforced, sw_enforced, &asymmetric_key);
41 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& , const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
H A Dauth_encrypted_key_blob.cpp30 const AuthorizationSet& hw_enforced,
37 hw_enforced.SerializedSize() + sw_enforced.SerializedSize();
49 buf = hw_enforced.Serialize(buf, end);
59 AuthorizationSet* hw_enforced,
72 !hw_enforced->Deserialize(buf_ptr, end) || //
84 AuthorizationSet* hw_enforced,
102 !hw_enforced->Deserialize(buf_ptr, end) || //
131 return DeserializeUnversionedBlob(key_blob, encrypted_key_material, hw_enforced,
29 SerializeAuthEncryptedBlob(const KeymasterKeyBlob& encrypted_key_material, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const Buffer& nonce, const Buffer& tag, KeymasterKeyBlob* key_blob) argument
57 DeserializeUnversionedBlob(const KeymasterKeyBlob& key_blob, KeymasterKeyBlob* encrypted_key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced, Buffer* nonce, Buffer* tag) argument
82 DeserializeAuthEncryptedBlob(const KeymasterKeyBlob& key_blob, KeymasterKeyBlob* encrypted_key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced, Buffer* nonce, Buffer* tag) argument
H A Dec_key.h31 EcKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, argument
33 : AsymmetricKey(hw_enforced, sw_enforced, error) {}
41 EcKey(EC_KEY* ec_key, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, argument
43 : AsymmetricKey(hw_enforced, sw_enforced, error), ec_key_(ec_key) {}
H A Dec_keymaster0_key.h42 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced,
48 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced,
53 const AuthorizationSet& hw_enforced,
63 EcKeymaster0Key(EC_KEY* ec_key, const AuthorizationSet& hw_enforced, argument
65 : EcKey(ec_key, hw_enforced, sw_enforced, error) {}
H A Dec_keymaster1_key.h46 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced,
52 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced,
57 const AuthorizationSet& hw_enforced,
72 EcdsaKeymaster1Key(EC_KEY* ecdsa_key, const AuthorizationSet& hw_enforced, argument
74 : EcKey(ecdsa_key, hw_enforced, sw_enforced, error) {}
H A Dhmac_key.cpp44 const AuthorizationSet& hw_enforced,
51 if (!hw_enforced.GetTagValue(TAG_MIN_MAC_LENGTH, &min_mac_length) &&
58 key->reset(new (std::nothrow) HmacKey(key_material, hw_enforced, sw_enforced, &error));
42 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& , const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
H A Dhmac_key.h32 const AuthorizationSet& hw_enforced,
49 HmacKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& hw_enforced, argument
51 : SymmetricKey(key_material, hw_enforced, sw_enforced, error) {}
H A Drsa_key.h28 RsaKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, argument
30 : AsymmetricKey(hw_enforced, sw_enforced, error) {}
45 RsaKey(RSA* rsa, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, argument
47 : AsymmetricKey(hw_enforced, sw_enforced, error), rsa_key_(rsa) {}
H A Drsa_keymaster0_key.h42 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced,
48 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced,
53 const AuthorizationSet& hw_enforced,
63 RsaKeymaster0Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, argument
65 : RsaKey(rsa_key, hw_enforced, sw_enforced, error) {}
H A Drsa_keymaster1_key.h46 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced,
52 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced,
57 const AuthorizationSet& hw_enforced,
74 RsaKeymaster1Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, argument
76 : RsaKey(rsa_key, hw_enforced, sw_enforced, error) {}
H A Dec_keymaster0_key.cpp38 AuthorizationSet* hw_enforced,
40 if (!key_blob || !hw_enforced || !sw_enforced)
44 return super::GenerateKey(key_description, key_blob, hw_enforced, sw_enforced);
57 // These tags are hardware-enforced. Putting them in the hw_enforced set here will ensure that
59 hw_enforced->push_back(TAG_ALGORITHM, KM_ALGORITHM_EC);
60 hw_enforced->push_back(TAG_KEY_SIZE, key_size);
61 hw_enforced->push_back(TAG_EC_CURVE, ec_curve);
62 hw_enforced->push_back(TAG_ORIGIN, KM_ORIGIN_UNKNOWN);
65 hw_enforced, sw_enforced);
71 AuthorizationSet* hw_enforced, AuthorizationSe
36 GenerateKey(const AuthorizationSet& key_description, KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
68 ImportKey( const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, const KeymasterKeyBlob& input_key_material, KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
100 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& additional_params, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
[all...]
H A Drsa_keymaster0_key.cpp38 AuthorizationSet* hw_enforced,
40 if (!key_blob || !hw_enforced || !sw_enforced)
59 // These tags are hardware-enforced. Putting them in the hw_enforced set here will ensure that
61 hw_enforced->push_back(TAG_ALGORITHM, KM_ALGORITHM_RSA);
62 hw_enforced->push_back(TAG_RSA_PUBLIC_EXPONENT, public_exponent);
63 hw_enforced->push_back(TAG_KEY_SIZE, key_size);
64 hw_enforced->push_back(TAG_ORIGIN, KM_ORIGIN_UNKNOWN);
67 hw_enforced, sw_enforced);
73 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const {
74 if (!output_key_blob || !hw_enforced || !sw_enforce
36 GenerateKey(const AuthorizationSet& key_description, KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
70 ImportKey( const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, const KeymasterKeyBlob& input_key_material, KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
101 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& additional_params, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
[all...]
H A Dsymmetric_key.cpp36 AuthorizationSet* hw_enforced,
38 if (!key_blob || !hw_enforced || !sw_enforced)
62 hw_enforced, sw_enforced);
69 AuthorizationSet* hw_enforced,
71 if (!output_key_blob || !hw_enforced || !sw_enforced)
100 output_key_blob, hw_enforced, sw_enforced);
111 const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced,
113 : Key(hw_enforced, sw_enforced, error) {
34 GenerateKey(const AuthorizationSet& key_description, KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
65 ImportKey(const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, const KeymasterKeyBlob& input_key_material, KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
110 SymmetricKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, keymaster_error_t* error) argument
H A Dec_key_factory.cpp76 AuthorizationSet* hw_enforced,
78 if (!key_blob || !hw_enforced || !sw_enforced)
124 hw_enforced, sw_enforced);
131 AuthorizationSet* hw_enforced,
133 if (!output_key_blob || !hw_enforced || !sw_enforced)
144 output_key_blob, hw_enforced, sw_enforced);
229 keymaster_error_t EcKeyFactory::CreateEmptyKey(const AuthorizationSet& hw_enforced, argument
233 key->reset(new (std::nothrow) EcKey(hw_enforced, sw_enforced, &error));
74 GenerateKey(const AuthorizationSet& key_description, KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
127 ImportKey(const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, const KeymasterKeyBlob& input_key_material, KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
H A Dec_keymaster1_key.cpp66 AuthorizationSet* hw_enforced,
70 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced);
76 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const {
80 output_key_blob, hw_enforced, sw_enforced);
85 const AuthorizationSet& hw_enforced,
98 EcdsaKeymaster1Key(ecdsa.release(), hw_enforced, sw_enforced, &error));
64 GenerateKey(const AuthorizationSet& key_description, KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
73 ImportKey( const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, const KeymasterKeyBlob& input_key_material, KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
83 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& additional_params, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
H A Docb_utils.cpp48 static keymaster_error_t BuildDerivationData(const AuthorizationSet& hw_enforced, argument
54 hidden.SerializedSize() + hw_enforced.SerializedSize() + sw_enforced.SerializedSize();
62 buf = hw_enforced.Serialize(buf, end);
68 static keymaster_error_t InitializeKeyWrappingContext(const AuthorizationSet& hw_enforced, argument
75 keymaster_error_t error = BuildDerivationData(hw_enforced, sw_enforced, hidden,
118 keymaster_error_t OcbEncryptKey(const AuthorizationSet& hw_enforced, argument
133 InitializeKeyWrappingContext(hw_enforced, sw_enforced, hidden, master_key, &ctx);
154 keymaster_error_t OcbDecryptKey(const AuthorizationSet& hw_enforced, argument
169 InitializeKeyWrappingContext(hw_enforced, sw_enforced, hidden, master_key, &ctx);
H A Drsa_key_factory.cpp54 AuthorizationSet* hw_enforced,
56 if (!key_blob || !hw_enforced || !sw_enforced)
96 hw_enforced, sw_enforced);
103 AuthorizationSet* hw_enforced,
105 if (!output_key_blob || !hw_enforced || !sw_enforced)
117 output_key_blob, hw_enforced, sw_enforced);
170 keymaster_error_t RsaKeyFactory::CreateEmptyKey(const AuthorizationSet& hw_enforced, argument
174 key->reset(new (std::nothrow) RsaKey(hw_enforced, sw_enforced, &error));
52 GenerateKey(const AuthorizationSet& key_description, KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
99 ImportKey(const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, const KeymasterKeyBlob& input_key_material, KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
H A Drsa_keymaster1_key.cpp87 AuthorizationSet* hw_enforced,
91 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced);
97 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const {
101 output_key_blob, hw_enforced, sw_enforced);
106 const AuthorizationSet& hw_enforced,
118 RsaKeymaster1Key(rsa.release(), hw_enforced, sw_enforced, &error));
85 GenerateKey(const AuthorizationSet& key_description, KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
94 ImportKey( const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, const KeymasterKeyBlob& input_key_material, KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
104 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& additional_params, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
H A Dintegrity_assured_key_blob.cpp82 const AuthorizationSet& hw_enforced,
87 hw_enforced.SerializedSize() + //
97 p = hw_enforced.Serialize(p, key_blob->end());
106 AuthorizationSet* hw_enforced,
123 return DeserializeIntegrityAssuredBlob_NoHmacCheck(key_blob, key_material, hw_enforced,
129 AuthorizationSet* hw_enforced,
142 !hw_enforced->Deserialize(&p, end) || //
80 SerializeIntegrityAssuredBlob(const KeymasterKeyBlob& key_material, const AuthorizationSet& hidden, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, KeymasterKeyBlob* key_blob) argument
103 DeserializeIntegrityAssuredBlob(const KeymasterKeyBlob& key_blob, const AuthorizationSet& hidden, KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument
127 DeserializeIntegrityAssuredBlob_NoHmacCheck(const KeymasterKeyBlob& key_blob, KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument
H A Dkeymaster1_engine.cpp70 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) {
73 if (hw_enforced)
74 hw_enforced->Reinitialize(characteristics->hw_enforced);
81 AuthorizationSet* hw_enforced,
95 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced);
103 AuthorizationSet* hw_enforced,
120 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced);
69 ConvertCharacteristics(keymaster_key_characteristics_t* characteristics, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument
79 GenerateKey(const AuthorizationSet& key_description, KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
99 ImportKey(const AuthorizationSet& key_description, keymaster_key_format_t input_key_material_format, const KeymasterKeyBlob& input_key_material, KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const argument
H A Dandroid_keymaster.cpp224 const AuthorizationSet& hw_enforced,
228 if (!hw_enforced.GetTagValue(TAG_ALGORITHM, algorithm) &&
243 AuthorizationSet hw_enforced; local
247 response->error = LoadKey(request.key_blob, request.additional_params, &hw_enforced,
362 AuthorizationSet hw_enforced;
367 &key_material, &hw_enforced, &sw_enforced);
373 GetKeyFactory(*context_, hw_enforced, sw_enforced, &algorithm, &response->error);
378 response->error = key_factory->LoadKey(key_material, request.additional_params, hw_enforced,
460 AuthorizationSet* hw_enforced,
465 &key_material, hw_enforced, sw_enforce
223 GetKeyFactory(const KeymasterContext& context, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, keymaster_algorithm_t* algorithm, keymaster_error_t* error) argument
458 LoadKey(const keymaster_key_blob_t& key_blob, const AuthorizationSet& additional_params, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced, const KeyFactory** factory, UniquePtr<Key>* key) argument
[all...]

Completed in 171 milliseconds

12