/system/keymaster/legacy_support/ |
D | keymaster0_engine.cpp | 189 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new_method(engine_)); in BlobToEcKey() local 190 if (!ec_key) in BlobToEcKey() 194 if (!blob_copy->key_material || !EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, blob_copy)) in BlobToEcKey() 206 if (!EC_KEY_set_group(ec_key.get(), EC_KEY_get0_group(public_ec_key.get())) || in BlobToEcKey() 207 !EC_KEY_set_public_key(ec_key.get(), EC_KEY_get0_public_key(public_ec_key.get()))) in BlobToEcKey() 210 return ec_key.release(); in BlobToEcKey() 217 const keymaster_key_blob_t* Keymaster0Engine::EcKeyToBlob(const EC_KEY* ec_key) const { in EcKeyToBlob() 218 return reinterpret_cast<keymaster_key_blob_t*>(EC_KEY_get_ex_data(ec_key, ec_key_index_)); in EcKeyToBlob() 254 unsigned int* sig_len, EC_KEY* ec_key) { in ecdsa_sign() argument 255 ALOGV("ecdsa_sign(%p, %u, %p)", digest, (unsigned)digest_len, ec_key); in ecdsa_sign() [all …]
|
D | keymaster1_engine.cpp | 179 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new_method(engine_.get())); in BuildEcKey() local 180 if (!ec_key) { in BuildEcKey() 186 if (!EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, key_data)) { in BuildEcKey() 204 if (!EC_KEY_set_group(ec_key.get(), EC_KEY_get0_group(public_ec_key.get())) || in BuildEcKey() 205 !EC_KEY_set_public_key(ec_key.get(), EC_KEY_get0_public_key(public_ec_key.get()))) { in BuildEcKey() 211 return ec_key.release(); in BuildEcKey() 222 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(key)); in GetData() local 223 return GetData(ec_key.get()); in GetData() 237 Keymaster1Engine::KeyData* Keymaster1Engine::GetData(const EC_KEY* ec_key) const { in GetData() 238 if (!ec_key) in GetData() [all …]
|
D | ec_keymaster0_key.cpp | 111 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(engine_->BlobToEcKey(key_material)); in LoadKey() local 112 if (!ec_key) in LoadKey() 116 EcKeymaster0Key(ec_key.release(), move(hw_enforced), move(sw_enforced), this)); in LoadKey()
|
/system/keymaster/km_openssl/ |
D | ec_key_factory.cpp | 94 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new()); in GenerateKey() local 96 if (ec_key.get() == nullptr || pkey.get() == nullptr) in GenerateKey() 110 if (EC_KEY_set_group(ec_key.get(), group.get()) != 1 || in GenerateKey() 111 EC_KEY_generate_key(ec_key.get()) != 1 || EC_KEY_check_key(ec_key.get()) < 0) { in GenerateKey() 115 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ec_key.get()) != 1) in GenerateKey() 161 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(pkey.get())); in UpdateImportKeyDescription() local 162 if (!ec_key.get()) in UpdateImportKeyDescription() 168 error = ec_get_group_size(EC_KEY_get0_group(ec_key.get()), &extracted_key_size_bits); in UpdateImportKeyDescription()
|
D | openssl_utils.cpp | 126 size_t ec_group_size_bits(EC_KEY* ec_key) { in ec_group_size_bits() argument 127 const EC_GROUP* group = EC_KEY_get0_group(ec_key); in ec_group_size_bits()
|
/system/security/keystore-engine/ |
D | android_engine.cpp | 139 const char* ecdsa_get_key_id(const EC_KEY* ec_key); 145 unsigned int* sig_len, EC_KEY* ec_key) { in ecdsa_sign() argument 146 ALOGV("ecdsa_sign(%p, %u, %p)", digest, (unsigned) digest_len, ec_key); in ecdsa_sign() 150 const char *key_id = ecdsa_get_key_id(ec_key); in ecdsa_sign() 156 size_t ecdsa_size = ECDSA_size(ec_key); in ecdsa_sign() 178 ec_key); in ecdsa_sign() 249 const char* ecdsa_get_key_id(const EC_KEY* ec_key) { in ecdsa_get_key_id() argument 251 EC_KEY_get_ex_data(ec_key, g_keystore_engine->ec_key_ex_index())); in ecdsa_get_key_id()
|
/system/keymaster/include/keymaster/km_openssl/ |
D | ec_key.h | 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()
|
D | openssl_utils.h | 98 size_t ec_group_size_bits(EC_KEY* ec_key);
|
/system/keymaster/include/keymaster/legacy_support/ |
D | ec_keymaster0_key.h | 62 EcKeymaster0Key(EC_KEY* ec_key, AuthorizationSet&& hw_enforced, in EcKeymaster0Key() argument 64 : EcKey(ec_key, move(hw_enforced), move(sw_enforced), key_factory) {} in EcKeymaster0Key()
|
D | keymaster0_engine.h | 77 unsigned int* sig_len, EC_KEY* ec_key); 90 EC_KEY* ec_key) const;
|
D | keymaster1_engine.h | 108 unsigned int* sig_len, EC_KEY* ec_key);
|
/system/keymaster/tests/ |
D | nist_curve_key_exchange_test.cpp | 190 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key( in TEST() local 192 ASSERT_TRUE(ec_key.get() && EC_KEY_check_key(ec_key.get())); in TEST() 195 NistCurveKeyExchange* key_exchange = new NistCurveKeyExchange(ec_key.release(), &error); in TEST()
|
/system/update_engine/payload_consumer/ |
D | payload_verifier.cc | 178 EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(public_key.get()); in VerifyRawSignature() local 179 TEST_AND_RETURN_FALSE(ec_key != nullptr); in VerifyRawSignature() 185 ec_key) == 1) { in VerifyRawSignature()
|
/system/keymaster/key_blob_utils/ |
D | software_keyblobs.cpp | 145 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(pubkey)); in FakeKeyAuthorizations() local 146 if (!ec_key.get()) in FakeKeyAuthorizations() 150 ec_get_group_size(EC_KEY_get0_group(ec_key.get()), &key_size_bits); in FakeKeyAuthorizations()
|
/system/update_engine/payload_generator/ |
D | payload_signer.cc | 333 EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(private_key.get()); in SignHash() local 334 TEST_AND_RETURN_FALSE(ec_key != nullptr); in SignHash() 336 signature.resize(ECDSA_size(ec_key)); in SignHash() 343 ec_key) != 1) { in SignHash()
|
/system/keymaster/ |
D | Makefile | 81 km_openssl/ec_key.cpp \ 366 km_openssl/ec_key.o \
|
D | Android.bp | 98 "km_openssl/ec_key.cpp",
|