• Home
  • Raw
  • Download

Lines Matching refs:hw_enforced

93 keymaster_error_t FakeKeyAuthorizations(EVP_PKEY* pubkey, AuthorizationSet* hw_enforced,  in FakeKeyAuthorizations()  argument
95 hw_enforced->Clear(); in FakeKeyAuthorizations()
100 hw_enforced->push_back(TAG_ALGORITHM, KM_ALGORITHM_RSA); in FakeKeyAuthorizations()
101 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_NONE); in FakeKeyAuthorizations()
102 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_MD5); in FakeKeyAuthorizations()
103 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA1); in FakeKeyAuthorizations()
104 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA_2_224); in FakeKeyAuthorizations()
105 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA_2_256); in FakeKeyAuthorizations()
106 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA_2_384); in FakeKeyAuthorizations()
107 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA_2_512); in FakeKeyAuthorizations()
108 hw_enforced->push_back(TAG_PADDING, KM_PAD_NONE); in FakeKeyAuthorizations()
109 hw_enforced->push_back(TAG_PADDING, KM_PAD_RSA_PKCS1_1_5_SIGN); in FakeKeyAuthorizations()
110 hw_enforced->push_back(TAG_PADDING, KM_PAD_RSA_PKCS1_1_5_ENCRYPT); in FakeKeyAuthorizations()
111 hw_enforced->push_back(TAG_PADDING, KM_PAD_RSA_PSS); in FakeKeyAuthorizations()
112 hw_enforced->push_back(TAG_PADDING, KM_PAD_RSA_OAEP); in FakeKeyAuthorizations()
121 hw_enforced->push_back(TAG_KEY_SIZE, RSA_size(rsa.get()) * 8); in FakeKeyAuthorizations()
124 hw_enforced->push_back(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in FakeKeyAuthorizations()
129 hw_enforced->push_back(TAG_ALGORITHM, KM_ALGORITHM_RSA); in FakeKeyAuthorizations()
130 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_NONE); in FakeKeyAuthorizations()
131 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_MD5); in FakeKeyAuthorizations()
132 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA1); in FakeKeyAuthorizations()
133 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA_2_224); in FakeKeyAuthorizations()
134 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA_2_256); in FakeKeyAuthorizations()
135 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA_2_384); in FakeKeyAuthorizations()
136 hw_enforced->push_back(TAG_DIGEST, KM_DIGEST_SHA_2_512); in FakeKeyAuthorizations()
147 hw_enforced->push_back(TAG_KEY_SIZE, key_size_bits); in FakeKeyAuthorizations()
167 AuthorizationSet* hw_enforced, in ParseOldSoftkeymasterBlob() argument
223 hw_enforced->Clear(); in ParseOldSoftkeymasterBlob()
239 AuthorizationSet* hw_enforced, in ParseAuthEncryptedBlob() argument
246 *hw_enforced = move(key.hw_enforced); in ParseAuthEncryptedBlob()
253 uint32_t os_patchlevel, AuthorizationSet* hw_enforced, in SetKeyBlobAuthorizations() argument
288 if (hw_enforced->GetTagCount(entry.tag) != 0) in SetKeyBlobAuthorizations()
365 if (hw_enforced->GetTagCount(entry.tag) == 0) sw_enforced->push_back(entry); in SetKeyBlobAuthorizations()
371 AuthorizationSet* pseudo_hw_enforced = (hw_enforced->empty()) ? sw_enforced : hw_enforced; in SetKeyBlobAuthorizations()
384 keymaster_error_t ExtendKeyBlobAuthorizations(AuthorizationSet* hw_enforced, in ExtendKeyBlobAuthorizations() argument
389 AuthorizationSet* pseudo_hw_enforced = (hw_enforced->empty()) ? sw_enforced : hw_enforced; in ExtendKeyBlobAuthorizations()
451 return SerializeIntegrityAssuredBlob(key->key_material(), hidden, key->hw_enforced(), in FullUpgradeSoftKeyBlob()