/system/keymaster/include/keymaster/key_blob_utils/ |
H A D | integrity_assured_key_blob.h | 32 const AuthorizationSet& sw_enforced, 39 AuthorizationSet* sw_enforced); 44 AuthorizationSet* sw_enforced);
|
H A D | auth_encrypted_key_blob.h | 31 const AuthorizationSet& sw_enforced, 38 AuthorizationSet* sw_enforced, Buffer* nonce,
|
H A D | software_keyblobs.h | 40 AuthorizationSet* sw_enforced); 45 AuthorizationSet* sw_enforced); 51 AuthorizationSet* sw_enforced); 56 AuthorizationSet* sw_enforced);
|
/system/keymaster/include/keymaster/km_openssl/ |
H A D | ec_key.h | 31 EcKey(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 33 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory) {} 42 EcKey(EC_KEY* ec_key, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 44 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory), ec_key_(ec_key) {}
|
H A D | rsa_key.h | 28 RsaKey(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 30 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory) {} 45 RsaKey(RSA* rsa, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 47 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory), rsa_key_(rsa) {}
|
H A D | hmac_key.h | 37 AuthorizationSet&& sw_enforced, 54 AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) 55 : SymmetricKey(move(key_material), move(hw_enforced), move(sw_enforced), key_factory) {} 53 HmacKey(KeymasterKeyBlob&& key_material, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) argument
|
H A D | asymmetric_key.h | 28 AsymmetricKey(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 30 : Key(move(hw_enforced), move(sw_enforced), key_factory) {}
|
H A D | ecdsa_operation.h | 32 EcdsaOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 34 : Operation(purpose, move(hw_enforced), move(sw_enforced)), digest_(digest), 55 EcdsaSignOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 57 : EcdsaOperation(move(hw_enforced), move(sw_enforced), KM_PURPOSE_SIGN, digest, key) {} 70 EcdsaVerifyOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 72 : EcdsaOperation(move(hw_enforced), move(sw_enforced), KM_PURPOSE_VERIFY, digest, key) {} 92 AuthorizationSet&& sw_enforced, 99 Operation* InstantiateOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, 102 EcdsaSignOperation(move(hw_enforced), move(sw_enforced), digest, key); 109 Operation* InstantiateOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, [all...] |
H A D | rsa_operation.h | 36 RsaOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 39 : Operation(purpose, move(hw_enforced), move(sw_enforced)), rsa_key_(key), 76 RsaDigestingOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, 92 RsaSignOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 94 : RsaDigestingOperation(move(hw_enforced), move(sw_enforced), KM_PURPOSE_SIGN, digest, 116 RsaVerifyOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 118 : RsaDigestingOperation(move(hw_enforced), move(sw_enforced), KM_PURPOSE_VERIFY, digest, 140 RsaCryptOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 143 : RsaOperation(move(hw_enforced), move(sw_enforced), purpose, digest, padding, key) {} 158 RsaEncryptOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 172 RsaDecryptOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) argument [all...] |
/system/keymaster/key_blob_utils/ |
H A D | software_keyblobs.cpp | 96 AuthorizationSet* sw_enforced) { 98 sw_enforced->Clear(); 116 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_SIGN); 117 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_VERIFY); 118 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_ENCRYPT); 119 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_DECRYPT); 142 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_SIGN); 143 sw_enforced->push_back(TAG_PURPOSE, KM_PURPOSE_VERIFY); 161 sw_enforced->push_back(TAG_ALL_USERS); 162 sw_enforced 94 FakeKeyAuthorizations(EVP_PKEY* pubkey, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument 172 ParseOldSoftkeymasterBlob( const KeymasterKeyBlob& blob, KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument 243 ParseOcbAuthEncryptedBlob(const KeymasterKeyBlob& blob, const AuthorizationSet& hidden, KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument 262 SetKeyBlobAuthorizations(const AuthorizationSet& key_description, keymaster_key_origin_t origin, uint32_t os_version, uint32_t os_patchlevel, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument [all...] |
/system/keymaster/legacy_support/ |
H A D | rsa_keymaster0_key.cpp | 39 AuthorizationSet* sw_enforced) const { 40 if (!key_blob || !hw_enforced || !sw_enforced) 60 // blob_maker_->CreateKeyBlob doesn't put them in sw_enforced. 67 hw_enforced, sw_enforced); 73 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { 74 if (!output_key_blob || !hw_enforced || !sw_enforced) 91 // blob_maker_->CreateKeyBlob doesn't put them in sw_enforced. 98 output_key_blob, hw_enforced, sw_enforced); 104 AuthorizationSet&& sw_enforced, 109 if (sw_enforced 101 LoadKey(KeymasterKeyBlob&& key_material, const AuthorizationSet& additional_params, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, UniquePtr<Key>* key) const argument [all...] |
H A D | ec_keymaster0_key.cpp | 39 AuthorizationSet* sw_enforced) const { 40 if (!key_blob || !hw_enforced || !sw_enforced) 44 return super::GenerateKey(key_description, key_blob, hw_enforced, sw_enforced); 58 // blob_maker_->CreateKeyBlob doesn't put them in sw_enforced. 65 hw_enforced, sw_enforced); 71 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { 72 if (!output_key_blob || !hw_enforced || !sw_enforced) 77 output_key_blob, hw_enforced, sw_enforced); 91 // blob_maker_->CreateKeyBlob doesn't put them in sw_enforced. 97 output_key_blob, hw_enforced, sw_enforced); 100 LoadKey(KeymasterKeyBlob&& key_material, const AuthorizationSet& additional_params, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, UniquePtr<Key>* key) const argument [all...] |
H A D | ec_keymaster1_key.cpp | 67 AuthorizationSet* sw_enforced) const { 79 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced); 85 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { 89 output_key_blob, hw_enforced, sw_enforced); 95 AuthorizationSet&& sw_enforced, 107 EcdsaKeymaster1Key(ecdsa.release(), move(hw_enforced), move(sw_enforced), this)); 92 LoadKey(KeymasterKeyBlob&& key_material, const AuthorizationSet& additional_params, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, UniquePtr<Key>* key) const argument
|
H A D | rsa_keymaster1_key.cpp | 85 AuthorizationSet* sw_enforced) const { 88 return engine_->GenerateKey(key_params_copy, key_blob, hw_enforced, sw_enforced); 94 AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) const { 98 output_key_blob, hw_enforced, sw_enforced); 104 AuthorizationSet&& sw_enforced, 115 RsaKeymaster1Key(rsa.release(), move(hw_enforced), move(sw_enforced), this)); 101 LoadKey(KeymasterKeyBlob&& key_material, const AuthorizationSet& additional_params, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, UniquePtr<Key>* key) const argument
|
/system/keymaster/include/keymaster/legacy_support/ |
H A D | keymaster1_legacy_support.h | 71 AuthorizationSet* sw_enforced) const { 74 sw_enforced); 77 sw_enforced); 85 AuthorizationSet* sw_enforced) const { 89 hw_enforced, sw_enforced); 93 hw_enforced, sw_enforced); 100 AuthorizationSet&& sw_enforced, 102 if (legacy_support_.RequiresSoftwareDigesting(AuthProxy(hw_enforced, sw_enforced))) { 104 move(hw_enforced), move(sw_enforced), key); 107 move(hw_enforced), move(sw_enforced), ke [all...] |
H A D | ec_keymaster0_key.h | 42 AuthorizationSet* sw_enforced) const override; 48 AuthorizationSet* sw_enforced) const override; 53 AuthorizationSet&& sw_enforced, 63 AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) 64 : EcKey(ec_key, move(hw_enforced), move(sw_enforced), key_factory) {} 62 EcKeymaster0Key(EC_KEY* ec_key, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) argument
|
H A D | ec_keymaster1_key.h | 46 AuthorizationSet* sw_enforced) const override; 52 AuthorizationSet* sw_enforced) const override; 57 AuthorizationSet&& sw_enforced, 72 AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) 73 : EcKey(ecdsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} 71 EcdsaKeymaster1Key(EC_KEY* ecdsa_key, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) argument
|
H A D | rsa_keymaster0_key.h | 42 AuthorizationSet* sw_enforced) const override; 48 AuthorizationSet* sw_enforced) const override; 53 AuthorizationSet&& sw_enforced, 63 AuthorizationSet&& sw_enforced, 65 : RsaKey(rsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} 62 RsaKeymaster0Key(RSA* rsa_key, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) argument
|
H A D | rsa_keymaster1_key.h | 47 AuthorizationSet* sw_enforced) const override; 53 AuthorizationSet* sw_enforced) const override; 58 AuthorizationSet&& sw_enforced, 75 AuthorizationSet&& sw_enforced, 77 : RsaKey(rsa_key, move(hw_enforced), move(sw_enforced), key_factory) {} 74 RsaKeymaster1Key(RSA* rsa_key, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) argument
|
H A D | keymaster_passthrough_key.h | 45 AuthorizationSet* sw_enforced) const override { 46 return engine_->GenerateKey(key_description, key_blob, hw_enforced, sw_enforced); 53 AuthorizationSet* sw_enforced) const override { 55 output_key_blob, hw_enforced, sw_enforced); 61 AuthorizationSet&& sw_enforced, 79 AuthorizationSet&& sw_enforced, 83 : Key(move(hw_enforced), move(sw_enforced), key_factory), 78 KeymasterPassthroughKey(KeymasterKeyBlob&& key_material, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, const KeyFactory* key_factory, keymaster_error_t* error, const AuthorizationSet& additional_parameters, const KeymasterPassthroughEngine* engine) argument
|
/system/keymaster/include/keymaster/ |
H A D | asymmetric_key_factory.h | 33 AuthorizationSet&& sw_enforced, 37 AuthorizationSet&& sw_enforced,
|
H A D | key.h | 46 const AuthorizationSet& sw_enforced() const { return sw_enforced_; } function in class:keymaster::Key 48 AuthorizationSet& sw_enforced() { return sw_enforced_; } function in class:keymaster::Key 64 Key(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, argument 66 : hw_enforced_(move(hw_enforced)), sw_enforced_(move(sw_enforced)),
|
/system/keymaster/km_openssl/ |
H A D | symmetric_key.cpp | 36 AuthorizationSet* sw_enforced) const { 37 if (!key_blob || !hw_enforced || !sw_enforced) 61 hw_enforced, sw_enforced); 69 AuthorizationSet* sw_enforced) const { 70 if (!output_key_blob || !hw_enforced || !sw_enforced) 94 output_key_blob, hw_enforced, sw_enforced); 105 AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, 107 : Key(move(hw_enforced), move(sw_enforced), key_factory) { 104 SymmetricKey(KeymasterKeyBlob&& key_material, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) argument
|
H A D | aes_key.cpp | 47 AuthorizationSet&& sw_enforced, 54 sw_enforced.Contains(TAG_BLOCK_MODE, KM_MODE_GCM)) { 57 !sw_enforced.GetTagValue(TAG_MIN_MAC_LENGTH, &min_mac_length)) { 65 key->reset(new (std::nothrow) AesKey(move(key_material), move(hw_enforced), move(sw_enforced), 44 LoadKey(KeymasterKeyBlob&& key_material, const AuthorizationSet& , AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, UniquePtr<Key>* key) const argument
|
/system/keymaster/contexts/ |
H A D | soft_keymaster_context.cpp | 158 AuthorizationSet* sw_enforced) { 159 sw_enforced->Clear(); 179 // Everything else we just copy into sw_enforced, unless the KeyFactory has placed it in 183 sw_enforced->push_back(entry); 188 sw_enforced->push_back(TAG_CREATION_DATETIME, java_time(time(NULL))); 189 sw_enforced->push_back(TAG_ORIGIN, origin); 190 sw_enforced->push_back(TAG_OS_VERSION, os_version); 191 sw_enforced->push_back(TAG_OS_PATCHLEVEL, os_patchlevel); 193 return TranslateAuthorizationSetError(sw_enforced->is_valid()); 201 AuthorizationSet* sw_enforced) cons 155 SetAuthorizations(const AuthorizationSet& key_description, keymaster_key_origin_t origin, uint32_t os_version, uint32_t os_patchlevel, AuthorizationSet* hw_enforced, AuthorizationSet* sw_enforced) argument 279 AuthorizationSet sw_enforced; local 338 AuthorizationSet hw_enforced, sw_enforced; local 359 AuthorizationSet hw_enforced, sw_enforced; local [all...] |