Searched defs:sw_enforced (Results 1 - 24 of 24) sorted by relevance

/system/keymaster/
H A Dkey.cpp27 Key::Key(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, argument
31 authorizations_.push_back(sw_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.cpp47 const AuthorizationSet& sw_enforced,
54 sw_enforced.Contains(TAG_BLOCK_MODE, KM_MODE_GCM)) {
57 !sw_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.h38 const AuthorizationSet& sw_enforced,
54 const AuthorizationSet& sw_enforced, keymaster_error_t* error)
55 : SymmetricKey(key_material, hw_enforced, sw_enforced, error) {}
53 AesKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, keymaster_error_t* error) argument
H A Dasymmetric_key_factory.cpp44 const AuthorizationSet& sw_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.cpp31 const AuthorizationSet& sw_enforced,
37 hw_enforced.SerializedSize() + sw_enforced.SerializedSize();
50 buf = sw_enforced.Serialize(buf, end);
60 AuthorizationSet* sw_enforced, Buffer* nonce,
73 !sw_enforced->Deserialize(buf_ptr, end)) {
85 AuthorizationSet* sw_enforced, Buffer* nonce,
103 !sw_enforced->Deserialize(buf_ptr, end)) {
132 sw_enforced, nonce, tag);
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 Dhmac_key.cpp45 const AuthorizationSet& sw_enforced,
52 !sw_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.h33 const AuthorizationSet& sw_enforced,
50 const AuthorizationSet& sw_enforced, keymaster_error_t* error)
51 : SymmetricKey(key_material, hw_enforced, sw_enforced, error) {}
49 HmacKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, keymaster_error_t* error) argument
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 Dsymmetric_key.cpp37 AuthorizationSet* sw_enforced) const {
38 if (!key_blob || !hw_enforced || !sw_enforced)
62 hw_enforced, sw_enforced);
70 AuthorizationSet* sw_enforced) const {
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) {
110 SymmetricKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, keymaster_error_t* error) argument
H A Dec_key_factory.cpp46 AuthorizationSet* sw_enforced) const {
47 if (!key_blob || !hw_enforced || !sw_enforced)
88 hw_enforced, sw_enforced);
96 AuthorizationSet* sw_enforced) const {
97 if (!output_key_blob || !hw_enforced || !sw_enforced)
108 output_key_blob, hw_enforced, sw_enforced);
193 const AuthorizationSet& sw_enforced,
196 key->reset(new (std::nothrow) EcKey(hw_enforced, sw_enforced, &error));
192 CreateEmptyKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<AsymmetricKey>* key) const argument
H A Dec_keymaster0_key.cpp39 AuthorizationSet* sw_enforced) const {
40 if (!key_blob || !hw_enforced || !sw_enforced)
44 return super::GenerateKey(key_description, key_blob, hw_enforced, sw_enforced);
57 // context_->CreateKeyBlob doesn't put them in sw_enforced.
63 hw_enforced, sw_enforced);
69 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const {
70 if (!output_key_blob || !hw_enforced || !sw_enforced)
75 output_key_blob, hw_enforced, sw_enforced);
89 // context_->CreateKeyBlob doesn't put them in sw_enforced.
95 output_key_blob, hw_enforced, sw_enforced);
98 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& additional_params, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
122 EcKeymaster0Key(EC_KEY* ec_key, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const Keymaster0Engine* engine, keymaster_error_t* error) argument
[all...]
H A Dec_keymaster1_key.cpp67 AuthorizationSet* sw_enforced) const {
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);
86 const AuthorizationSet& sw_enforced,
98 EcdsaKeymaster1Key(ecdsa.release(), hw_enforced, sw_enforced, engine_, &error));
121 const AuthorizationSet& sw_enforced,
123 : EcKey(ecdsa_key, hw_enforced, sw_enforced, error), engine_(engine) {}
83 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& additional_params, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
120 EcdsaKeymaster1Key(EC_KEY* ecdsa_key, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const Keymaster1Engine* engine, keymaster_error_t* error) argument
H A Docb_utils.cpp49 const AuthorizationSet& sw_enforced,
54 hidden.SerializedSize() + hw_enforced.SerializedSize() + sw_enforced.SerializedSize();
63 buf = sw_enforced.Serialize(buf, end);
69 const AuthorizationSet& sw_enforced,
75 keymaster_error_t error = BuildDerivationData(hw_enforced, sw_enforced, hidden,
119 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden,
133 InitializeKeyWrappingContext(hw_enforced, sw_enforced, hidden, master_key, &ctx);
155 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden,
169 InitializeKeyWrappingContext(hw_enforced, sw_enforced, hidden, master_key, &ctx);
48 BuildDerivationData(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, UniquePtr<uint8_t[]>* derivation_data, size_t* derivation_data_length) argument
68 InitializeKeyWrappingContext(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, const KeymasterKeyBlob& master_key, AeCtx* ctx) argument
118 OcbEncryptKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, const KeymasterKeyBlob& master_key, const KeymasterKeyBlob& plaintext, const Buffer& nonce, KeymasterKeyBlob* ciphertext, Buffer* tag) argument
154 OcbDecryptKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, const KeymasterKeyBlob& master_key, const KeymasterKeyBlob& ciphertext, const Buffer& nonce, const Buffer& tag, KeymasterKeyBlob* plaintext) argument
H A Drsa_key_factory.cpp55 AuthorizationSet* sw_enforced) const {
56 if (!key_blob || !hw_enforced || !sw_enforced)
96 hw_enforced, sw_enforced);
104 AuthorizationSet* sw_enforced) const {
105 if (!output_key_blob || !hw_enforced || !sw_enforced)
117 output_key_blob, hw_enforced, sw_enforced);
171 const AuthorizationSet& sw_enforced,
174 key->reset(new (std::nothrow) RsaKey(hw_enforced, sw_enforced, &error));
170 CreateEmptyKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<AsymmetricKey>* key) const argument
H A Drsa_keymaster0_key.cpp39 AuthorizationSet* sw_enforced) const {
40 if (!key_blob || !hw_enforced || !sw_enforced)
60 // context_->CreateKeyBlob doesn't put them in sw_enforced.
67 hw_enforced, sw_enforced);
73 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const {
74 if (!output_key_blob || !hw_enforced || !sw_enforced)
91 // context_->CreateKeyBlob doesn't put them in sw_enforced.
98 output_key_blob, hw_enforced, sw_enforced);
104 const AuthorizationSet& sw_enforced,
109 if (sw_enforced
101 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& additional_params, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
128 RsaKeymaster0Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const Keymaster0Engine* engine, keymaster_error_t* error) argument
[all...]
H A Dintegrity_assured_key_blob.cpp83 const AuthorizationSet& sw_enforced,
88 sw_enforced.SerializedSize() + //
98 p = sw_enforced.Serialize(p, key_blob->end());
107 AuthorizationSet* sw_enforced) {
129 !sw_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
H A Drsa_keymaster1_key.cpp88 AuthorizationSet* sw_enforced) const {
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);
107 const AuthorizationSet& sw_enforced,
118 RsaKeymaster1Key(rsa.release(), hw_enforced, sw_enforced, engine_, &error));
143 const AuthorizationSet& sw_enforced,
145 : RsaKey(rsa_key, hw_enforced, sw_enforced, error), engine_(engine) {}
104 LoadKey(const KeymasterKeyBlob& key_material, const AuthorizationSet& additional_params, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, UniquePtr<Key>* key) const argument
142 RsaKeymaster1Key(RSA* rsa_key, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const Keymaster1Engine* engine, keymaster_error_t* error) argument
H A Dandroid_keymaster.cpp200 const AuthorizationSet& sw_enforced,
204 !sw_enforced.GetTagValue(TAG_ALGORITHM, algorithm))
219 AuthorizationSet sw_enforced; local
223 &sw_enforced, &key_factory, &key);
338 AuthorizationSet sw_enforced; local
342 &key_material, &hw_enforced, &sw_enforced);
348 GetKeyFactory(*context_, hw_enforced, sw_enforced, &algorithm, &response->error);
354 sw_enforced, &key);
407 AuthorizationSet* sw_enforced,
411 &key_material, hw_enforced, sw_enforced);
198 GetKeyFactory(const KeymasterContext& context, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, keymaster_algorithm_t* algorithm, keymaster_error_t* error) argument
404 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...]
H A Dkeymaster1_engine.cpp70 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) {
75 if (sw_enforced)
76 sw_enforced->Reinitialize(characteristics->sw_enforced);
82 AuthorizationSet* sw_enforced) const {
95 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced);
104 AuthorizationSet* sw_enforced) const {
120 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced);
69 ConvertCharacteristics(keymaster_key_characteristics_t* characteristics, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument
H A Dsoft_keymaster_context.cpp142 AuthorizationSet* sw_enforced) {
143 sw_enforced->Clear();
163 // Everything else we just copy into sw_enforced, unless the KeyFactory has placed it in
167 sw_enforced->push_back(entry);
172 sw_enforced->push_back(TAG_CREATION_DATETIME, java_time(time(NULL)));
173 sw_enforced->push_back(TAG_ORIGIN, origin);
174 return TranslateAuthorizationSetError(sw_enforced->is_valid());
182 AuthorizationSet* sw_enforced) const {
183 keymaster_error_t error = SetAuthorizations(key_description, origin, hw_enforced, sw_enforced);
192 return SerializeIntegrityAssuredBlob(key_material, hidden, *hw_enforced, *sw_enforced, blo
139 SetAuthorizations(const AuthorizationSet& key_description, keymaster_key_origin_t origin, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument
195 ParseOcbAuthEncryptedBlob(const KeymasterKeyBlob& blob, const AuthorizationSet& hidden, KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument
[all...]
H A Dsoft_keymaster_device.cpp276 const AuthorizationSet& sw_enforced) {
282 sw_enforced.CopyToParamSet(&characteristics->sw_enforced);
831 if (FindAlgorithm(characteristics->sw_enforced, algorithm))
275 BuildCharacteristics(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced) argument
H A Dandroid_keymaster_test_utils.cpp619 AuthorizationSet Keymaster1Test::sw_enforced() { function in class:keymaster::test::Keymaster1Test
621 return AuthorizationSet(characteristics_->sw_enforced);

Completed in 263 milliseconds