Home
last modified time | relevance | path

Searched refs:sw_enforced (Results 1 – 25 of 68) sorted by relevance

123

/system/keymaster/key_blob_utils/
Dsoftware_keyblobs.cpp96 AuthorizationSet* sw_enforced) { in FakeKeyAuthorizations() argument
98 sw_enforced->Clear(); in FakeKeyAuthorizations()
116 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_SIGN); in FakeKeyAuthorizations()
117 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_VERIFY); in FakeKeyAuthorizations()
118 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_ENCRYPT); in FakeKeyAuthorizations()
119 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_DECRYPT); in FakeKeyAuthorizations()
142 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_SIGN); in FakeKeyAuthorizations()
143 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_VERIFY); in FakeKeyAuthorizations()
161 sw_enforced->push_back(TAG_ALL_USERS); in FakeKeyAuthorizations()
162 sw_enforced->push_back(TAG_NO_AUTH_REQUIRED); in FakeKeyAuthorizations()
[all …]
Dauth_encrypted_key_blob.cpp31 const AuthorizationSet& sw_enforced, in SerializeAuthEncryptedBlob() argument
37 hw_enforced.SerializedSize() + sw_enforced.SerializedSize(); in SerializeAuthEncryptedBlob()
50 buf = sw_enforced.Serialize(buf, end); in SerializeAuthEncryptedBlob()
60 AuthorizationSet* sw_enforced, Buffer* nonce, in DeserializeUnversionedBlob() argument
73 !sw_enforced->Deserialize(buf_ptr, end)) { in DeserializeUnversionedBlob()
85 AuthorizationSet* sw_enforced, Buffer* nonce, in DeserializeAuthEncryptedBlob() argument
103 !sw_enforced->Deserialize(buf_ptr, end)) { in DeserializeAuthEncryptedBlob()
132 sw_enforced, nonce, tag); in DeserializeAuthEncryptedBlob()
Docb_utils.cpp49 const AuthorizationSet& sw_enforced, in BuildDerivationData() argument
54 hidden.SerializedSize() + hw_enforced.SerializedSize() + sw_enforced.SerializedSize(); in BuildDerivationData()
63 buf = sw_enforced.Serialize(buf, end); in BuildDerivationData()
69 const AuthorizationSet& sw_enforced, in InitializeKeyWrappingContext() argument
75 keymaster_error_t error = BuildDerivationData(hw_enforced, sw_enforced, hidden, in InitializeKeyWrappingContext()
119 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, in OcbEncryptKey() argument
133 InitializeKeyWrappingContext(hw_enforced, sw_enforced, hidden, master_key, &ctx); in OcbEncryptKey()
155 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, in OcbDecryptKey() argument
169 InitializeKeyWrappingContext(hw_enforced, sw_enforced, hidden, master_key, &ctx); in OcbDecryptKey()
Dintegrity_assured_key_blob.cpp82 const AuthorizationSet& sw_enforced, in SerializeIntegrityAssuredBlob() argument
87 sw_enforced.SerializedSize() + // in SerializeIntegrityAssuredBlob()
97 p = sw_enforced.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
106 AuthorizationSet* sw_enforced) { in DeserializeIntegrityAssuredBlob() argument
123 sw_enforced); in DeserializeIntegrityAssuredBlob()
129 AuthorizationSet* sw_enforced) { in DeserializeIntegrityAssuredBlob_NoHmacCheck() argument
142 !sw_enforced->Deserialize(&p, end)) in DeserializeIntegrityAssuredBlob_NoHmacCheck()
/system/keymaster/legacy_support/
Dec_keymaster0_key.cpp39 AuthorizationSet* sw_enforced) const { in GenerateKey()
40 if (!key_blob || !hw_enforced || !sw_enforced) in GenerateKey()
44 return super::GenerateKey(key_description, key_blob, hw_enforced, sw_enforced); in GenerateKey()
65 hw_enforced, sw_enforced); in GenerateKey()
71 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey()
72 if (!output_key_blob || !hw_enforced || !sw_enforced) in ImportKey()
77 output_key_blob, hw_enforced, sw_enforced); in ImportKey()
97 output_key_blob, hw_enforced, sw_enforced); in ImportKey()
103 AuthorizationSet&& sw_enforced, in LoadKey() argument
108 if (sw_enforced.GetTagCount(TAG_ALGORITHM) == 1) in LoadKey()
[all …]
Drsa_keymaster0_key.cpp39 AuthorizationSet* sw_enforced) const { in GenerateKey()
40 if (!key_blob || !hw_enforced || !sw_enforced) in GenerateKey()
67 hw_enforced, sw_enforced); in GenerateKey()
73 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey()
74 if (!output_key_blob || !hw_enforced || !sw_enforced) in ImportKey()
98 output_key_blob, hw_enforced, sw_enforced); in ImportKey()
104 AuthorizationSet&& sw_enforced, in LoadKey() argument
109 if (sw_enforced.GetTagCount(TAG_ALGORITHM) == 1) in LoadKey()
111 move(sw_enforced), key); in LoadKey()
118 RsaKeymaster0Key(rsa.release(), move(hw_enforced), move(sw_enforced), this)); in LoadKey()
Dec_keymaster1_key.cpp67 AuthorizationSet* sw_enforced) const { in GenerateKey()
79 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced); in GenerateKey()
85 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey()
89 output_key_blob, hw_enforced, sw_enforced); in ImportKey()
95 AuthorizationSet&& sw_enforced, in LoadKey() argument
107 EcdsaKeymaster1Key(ecdsa.release(), move(hw_enforced), move(sw_enforced), this)); in LoadKey()
Dkeymaster_passthrough_engine.cpp87 AuthorizationSet* sw_enforced) const override;
93 AuthorizationSet* sw_enforced) const override;
203 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) { in ConvertCharacteristics() argument
206 if (sw_enforced) in ConvertCharacteristics()
207 sw_enforced->Reinitialize(characteristics.sw_enforced); in ConvertCharacteristics()
215 AuthorizationSet* sw_enforced) const { in GenerateKey()
228 ConvertCharacteristics(*characteristics, hw_enforced, sw_enforced); in GenerateKey()
238 AuthorizationSet* sw_enforced) const { in GenerateKey()
251 ConvertCharacteristics(characteristics, hw_enforced, sw_enforced); in GenerateKey()
263 AuthorizationSet* sw_enforced) const { in ImportKey()
[all …]
Drsa_keymaster1_key.cpp85 AuthorizationSet* sw_enforced) const { in GenerateKey()
88 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced); in GenerateKey()
94 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { in ImportKey()
98 output_key_blob, hw_enforced, sw_enforced); in ImportKey()
104 AuthorizationSet&& sw_enforced, in LoadKey() argument
115 RsaKeymaster1Key(rsa.release(), move(hw_enforced), move(sw_enforced), this)); in LoadKey()
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster1_legacy_support.h73 AuthorizationSet* sw_enforced) const { in GenerateKey() argument
76 sw_enforced); in GenerateKey()
79 sw_enforced); in GenerateKey()
87 AuthorizationSet* sw_enforced) const { in ImportKey() argument
91 hw_enforced, sw_enforced); in ImportKey()
95 hw_enforced, sw_enforced); in ImportKey()
102 AuthorizationSet&& sw_enforced, in LoadKey() argument
110 AuthProxy(hw_enforced, sw_enforced))) { in LoadKey()
112 move(hw_enforced), move(sw_enforced), key); in LoadKey()
115 move(hw_enforced), move(sw_enforced), key); in LoadKey()
[all …]
Dkeymaster_passthrough_key.h45 AuthorizationSet* sw_enforced) const override { in GenerateKey() argument
46 return engine_->GenerateKey(key_description, key_blob, hw_enforced, sw_enforced); in GenerateKey()
53 AuthorizationSet* sw_enforced) const override { in ImportKey() argument
55 output_key_blob, hw_enforced, sw_enforced); in ImportKey()
61 AuthorizationSet&& sw_enforced,
79 AuthorizationSet&& sw_enforced, in KeymasterPassthroughKey() argument
83 : Key(move(hw_enforced), move(sw_enforced), key_factory), in KeymasterPassthroughKey()
Drsa_keymaster0_key.h42 AuthorizationSet* sw_enforced) const override;
48 AuthorizationSet* sw_enforced) const override;
53 AuthorizationSet&& sw_enforced,
63 AuthorizationSet&& sw_enforced, in RsaKeymaster0Key() argument
65 : RsaKey(rsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} in RsaKeymaster0Key()
Dec_keymaster0_key.h42 AuthorizationSet* sw_enforced) const override;
48 AuthorizationSet* sw_enforced) const override;
53 AuthorizationSet&& sw_enforced,
63 AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) in EcKeymaster0Key() argument
64 : EcKey(ec_key, move(hw_enforced), move(sw_enforced), key_factory) {} in EcKeymaster0Key()
Dec_keymaster1_key.h46 AuthorizationSet* sw_enforced) const override;
52 AuthorizationSet* sw_enforced) const override;
57 AuthorizationSet&& sw_enforced,
72 AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) in EcdsaKeymaster1Key() argument
73 : EcKey(ecdsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} in EcdsaKeymaster1Key()
Drsa_keymaster1_key.h47 AuthorizationSet* sw_enforced) const override;
53 AuthorizationSet* sw_enforced) const override;
58 AuthorizationSet&& sw_enforced,
75 AuthorizationSet&& sw_enforced, in RsaKeymaster1Key() argument
77 : RsaKey(rsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} in RsaKeymaster1Key()
/system/keymaster/contexts/
Dsoft_keymaster_context.cpp158 AuthorizationSet* sw_enforced) { in SetAuthorizations() argument
159 sw_enforced->Clear(); in SetAuthorizations()
183 sw_enforced->push_back(entry); in SetAuthorizations()
188 sw_enforced->push_back(TAG_CREATION_DATETIME, java_time(time(nullptr))); in SetAuthorizations()
189 sw_enforced->push_back(TAG_ORIGIN, origin); in SetAuthorizations()
190 sw_enforced->push_back(TAG_OS_VERSION, os_version); in SetAuthorizations()
191 sw_enforced->push_back(TAG_OS_PATCHLEVEL, os_patchlevel); in SetAuthorizations()
193 return TranslateAuthorizationSetError(sw_enforced->is_valid()); in SetAuthorizations()
201 AuthorizationSet* sw_enforced) const { in CreateKeyBlob()
203 os_patchlevel_, hw_enforced, sw_enforced); in CreateKeyBlob()
[all …]
Dkeymaster1_passthrough_context.cpp115 AuthorizationSet* sw_enforced) { in parseKeymaster1HwBlob() argument
136 sw_enforced->Reinitialize(characteristics->sw_enforced); in parseKeymaster1HwBlob()
144 AuthorizationSet sw_enforced; in ParseKeyBlob() local
154 … error = DeserializeIntegrityAssuredBlob(blob, hidden, &key_material, &hw_enforced, &sw_enforced); in ParseKeyBlob()
160 &key_material, &hw_enforced, &sw_enforced); in ParseKeyBlob()
167 !sw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm)) { in ParseKeyBlob()
173 move(sw_enforced), key); in ParseKeyBlob()
182 AuthorizationSet hw_enforced, sw_enforced; in DeleteKey() local
184 blob, &key_material, &hw_enforced, &sw_enforced); in DeleteKey()
218 AuthorizationSet* sw_enforced) const { in CreateKeyBlob()
[all …]
/system/keymaster/include/keymaster/km_openssl/
Drsa_operation.h36 RsaOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaOperation() argument
39 : Operation(purpose, move(hw_enforced), move(sw_enforced)), rsa_key_(key), in RsaOperation()
76 RsaDigestingOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced,
92 RsaSignOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaSignOperation() argument
94 : RsaDigestingOperation(move(hw_enforced), move(sw_enforced), KM_PURPOSE_SIGN, digest, in RsaSignOperation()
116 RsaVerifyOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaVerifyOperation() argument
118 : RsaDigestingOperation(move(hw_enforced), move(sw_enforced), KM_PURPOSE_VERIFY, digest, in RsaVerifyOperation()
140 RsaCryptOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaCryptOperation() argument
143 : RsaOperation(move(hw_enforced), move(sw_enforced), purpose, digest, padding, key) {} in RsaCryptOperation()
158 RsaEncryptOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaEncryptOperation() argument
[all …]
Decdsa_operation.h32 EcdsaOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaOperation() argument
34 : Operation(purpose, move(hw_enforced), move(sw_enforced)), digest_(digest), in EcdsaOperation()
55 EcdsaSignOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaSignOperation() argument
57 : EcdsaOperation(move(hw_enforced), move(sw_enforced), KM_PURPOSE_SIGN, digest, key) {} in EcdsaSignOperation()
70 EcdsaVerifyOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaVerifyOperation() argument
72 : EcdsaOperation(move(hw_enforced), move(sw_enforced), KM_PURPOSE_VERIFY, digest, key) {} in EcdsaVerifyOperation()
92 AuthorizationSet&& sw_enforced,
99 Operation* InstantiateOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in InstantiateOperation() argument
102 EcdsaSignOperation(move(hw_enforced), move(sw_enforced), digest, key); in InstantiateOperation()
109 Operation* InstantiateOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in InstantiateOperation() argument
[all …]
Dec_key.h31 EcKey(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcKey() argument
33 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory) {} in EcKey()
42 EcKey(EC_KEY* ec_key, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcKey() argument
44 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory), ec_key_(ec_key) {} in EcKey()
Drsa_key.h28 RsaKey(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaKey() argument
30 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory) {} in RsaKey()
45 RsaKey(RSA* rsa, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaKey() argument
47 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory), rsa_key_(rsa) {} in RsaKey()
/system/keymaster/km_openssl/
Dsymmetric_key.cpp36 AuthorizationSet* sw_enforced) const { in GenerateKey()
37 if (!key_blob || !hw_enforced || !sw_enforced) in GenerateKey()
61 hw_enforced, sw_enforced); in GenerateKey()
69 AuthorizationSet* sw_enforced) const { in ImportKey()
70 if (!output_key_blob || !hw_enforced || !sw_enforced) in ImportKey()
94 output_key_blob, hw_enforced, sw_enforced); in ImportKey()
105 AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in SymmetricKey() argument
107 : Key(move(hw_enforced), move(sw_enforced), key_factory) { in SymmetricKey()
Daes_key.cpp47 AuthorizationSet&& sw_enforced, in LoadKey() argument
54 sw_enforced.Contains(TAG_BLOCK_MODE, KM_MODE_GCM)) { in LoadKey()
57 !sw_enforced.GetTagValue(TAG_MIN_MAC_LENGTH, &min_mac_length)) { in LoadKey()
65 key->reset(new (std::nothrow) AesKey(move(key_material), move(hw_enforced), move(sw_enforced), in LoadKey()
/system/keymaster/include/keymaster/key_blob_utils/
Dsoftware_keyblobs.h40 AuthorizationSet* sw_enforced);
45 AuthorizationSet* sw_enforced);
51 AuthorizationSet* sw_enforced);
56 AuthorizationSet* sw_enforced);
/system/keymaster/include/keymaster/
Dkey.h46 const AuthorizationSet& sw_enforced() const { return sw_enforced_; } in sw_enforced() function
48 AuthorizationSet& sw_enforced() { return sw_enforced_; } in sw_enforced() function
64 Key(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in Key() argument
66 : hw_enforced_(move(hw_enforced)), sw_enforced_(move(sw_enforced)), in Key()

123