Home
last modified time | relevance | path

Searched refs:hw_enforced_ (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/include/keymaster/
Dkey.h44 AuthProxy authorizations() const { return AuthProxy(hw_enforced_, sw_enforced_); } in authorizations()
45 const AuthorizationSet& hw_enforced() const { return hw_enforced_; } in hw_enforced()
47 AuthorizationSet& hw_enforced() { return hw_enforced_; } in hw_enforced()
56 AuthorizationSet&& hw_enforced_move() { return move(hw_enforced_); } in hw_enforced_move()
66 : hw_enforced_(move(hw_enforced)), sw_enforced_(move(sw_enforced)), in Key()
70 AuthorizationSet hw_enforced_;
Doperation.h96 : purpose_(purpose), hw_enforced_(move(hw_enforced)), sw_enforced_(move(sw_enforced)) {} in Operation()
108 AuthProxy authorizations() const { return AuthProxy(hw_enforced_, sw_enforced_); } in authorizations()
109 AuthorizationSet hw_enforced() const { return hw_enforced_; } in hw_enforced()
150 AuthorizationSet hw_enforced_; variable
Dauthorization_set.h698 : hw_enforced_(hw_enforced), sw_enforced_(sw_enforced) {} in AuthProxy()
701 return hw_enforced_.Contains(forward<ARGS>(args)...) || in Contains()
706 return hw_enforced_.GetTagValue(forward<ARGS>(args)...) || in GetTagValue()
711 return hw_enforced_.GetTagCount(forward<ARGS>(args)...) || in GetTagCount()
715 AuthProxyIterator begin() const { return AuthProxyIterator(hw_enforced_, sw_enforced_); } in begin()
719 size_t size() const { return hw_enforced_.size() + sw_enforced_.size(); } in size()
722 if (pos < hw_enforced_.size()) return hw_enforced_[pos];
723 if ((pos - hw_enforced_.size()) < sw_enforced_.size()) {
724 return sw_enforced_[pos - hw_enforced_.size()];
730 const AuthorizationSet& hw_enforced_;
/system/keymaster/tests/
Dkey_blob_test.cpp49 hw_enforced_.push_back(TAG_ALGORITHM, KM_ALGORITHM_RSA); in KeyBlobTest()
50 hw_enforced_.push_back(TAG_KEY_SIZE, 256); in KeyBlobTest()
51 hw_enforced_.push_back(TAG_BLOB_USAGE_REQUIREMENTS, KM_BLOB_STANDALONE); in KeyBlobTest()
52 hw_enforced_.push_back(TAG_MIN_SECONDS_BETWEEN_OPS, 10); in KeyBlobTest()
53 hw_enforced_.push_back(TAG_ALL_USERS); in KeyBlobTest()
54 hw_enforced_.push_back(TAG_NO_AUTH_REQUIRED); in KeyBlobTest()
55 hw_enforced_.push_back(TAG_ORIGIN, KM_ORIGIN_GENERATED); in KeyBlobTest()
67 encrypted_key_ = EncryptKey(key_material_, format, hw_enforced_, sw_enforced_, hidden_, in Encrypt()
81 SerializeAuthEncryptedBlob(encrypted_key_, hw_enforced_, sw_enforced_, &error); in Serialize()
92 AuthorizationSet hw_enforced_; member in keymaster::test::KeyBlobTest
[all …]