Home
last modified time | relevance | path

Searched refs:enforced_ (Results 1 – 3 of 3) sorted by relevance

/system/keymaster/
Dkey_blob.cpp50 enforced_(enforced), unenforced_(unenforced), hidden_(hidden) { in KeyBlob()
57 if (enforced_.is_valid() == AuthorizationSet::ALLOCATION_FAILURE || in KeyBlob()
64 if (enforced_.is_valid() != AuthorizationSet::OK || in KeyBlob()
117 enforced_.SerializedSize() + unenforced_.SerializedSize(); in SerializedSize()
125 buf = enforced_.Serialize(buf, end); in Serialize()
136 !enforced_.Deserialize(buf_ptr, end) || !unenforced_.Deserialize(buf_ptr, end)) { in Deserialize()
240 hidden_.SerializedSize() + enforced_.SerializedSize() + unenforced_.SerializedSize(); in BuildDerivationData()
246 buf = enforced_.Serialize(buf, end); in BuildDerivationData()
253 if (!enforced_.GetTagValue(TAG_ALGORITHM, &algorithm_) && in ExtractKeyCharacteristics()
258 if (!enforced_.GetTagValue(TAG_KEY_SIZE, &key_size_bits_) && in ExtractKeyCharacteristics()
Dkey_blob_test.cpp54 enforced_.push_back(TAG_ALGORITHM, KM_ALGORITHM_RSA); in KeyBlobTest()
55 enforced_.push_back(TAG_KEY_SIZE, 256); in KeyBlobTest()
56 enforced_.push_back(TAG_BLOB_USAGE_REQUIREMENTS, KM_BLOB_STANDALONE); in KeyBlobTest()
57 enforced_.push_back(TAG_MIN_SECONDS_BETWEEN_OPS, 10); in KeyBlobTest()
58 enforced_.push_back(TAG_ALL_USERS); in KeyBlobTest()
59 enforced_.push_back(TAG_NO_AUTH_REQUIRED); in KeyBlobTest()
60 enforced_.push_back(TAG_ORIGIN, KM_ORIGIN_HARDWARE); in KeyBlobTest()
70 blob_.reset(new KeyBlob(enforced_, unenforced_, hidden_, key_, master_key_, nonce)); in KeyBlobTest()
73 AuthorizationSet enforced_; member in keymaster::test::KeyBlobTest
202 size_t enforced_size = enforced_.SerializedSize(); in TEST_F()
[all …]
/system/keymaster/include/keymaster/
Dkey_blob.h115 inline const AuthorizationSet& enforced() const { return enforced_; } in enforced()
141 AuthorizationSet enforced_; variable