Lines Matching defs:sw_enforced

142                                            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, blob);
199 AuthorizationSet* sw_enforced) {
203 hw_enforced, sw_enforced, &nonce, &tag);
210 return OcbDecryptKey(*hw_enforced, *sw_enforced, hidden, MASTER_KEY, encrypted_key_material,
221 AuthorizationSet* sw_enforced) const {
277 // All auths go into sw_enforced, including those that would be HW-enforced if we were faking
280 keymaster_error_t error = FakeKeyAuthorizations(pkey.get(), sw_enforced, sw_enforced);
295 AuthorizationSet* sw_enforced) const {
335 error = DeserializeIntegrityAssuredBlob(blob, hidden, key_material, hw_enforced, sw_enforced);
340 error = ParseOcbAuthEncryptedBlob(blob, hidden, key_material, hw_enforced, sw_enforced);
347 error = ParseOldSoftkeymasterBlob(blob, key_material, hw_enforced, sw_enforced);
355 sw_enforced);
357 return ParseKeymaster0HwBlob(blob, key_material, hw_enforced, sw_enforced);
377 AuthorizationSet* sw_enforced) const {
401 sw_enforced->Reinitialize(characteristics->sw_enforced);
409 AuthorizationSet* sw_enforced) const {
418 keymaster_error_t error = FakeKeyAuthorizations(tmp_key.get(), hw_enforced, sw_enforced);
427 AuthorizationSet* sw_enforced) const {
429 sw_enforced->Clear();
447 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_SIGN);
448 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_VERIFY);
449 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_ENCRYPT);
450 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_DECRYPT);
473 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_SIGN);
474 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_VERIFY);
492 sw_enforced->push_back(TAG_ALL_USERS);
493 sw_enforced->push_back(TAG_NO_AUTH_REQUIRED);