Home
last modified time | relevance | path

Searched refs:pubkey (Results 1 – 25 of 41) sorted by relevance

12

/aosp12/packages/modules/adb/daemon/
H A Dauth.cpp118 const std::string& pubkey = split[0]; in adbd_tls_client_ca_list() local
119 if (b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { in adbd_tls_client_ca_list()
120 LOG(ERROR) << "Invalid base64 key " << pubkey; in adbd_tls_client_ca_list()
126 LOG(ERROR) << "Failed to parse key " << pubkey; in adbd_tls_client_ca_list()
165 const std::string& pubkey = split[0]; in adbd_auth_verify() local
166 if (b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { in adbd_auth_verify()
167 LOG(ERROR) << "Invalid base64 key " << pubkey; in adbd_auth_verify()
173 LOG(ERROR) << "Failed to parse key " << pubkey; in adbd_auth_verify()
324 const std::string& pubkey = split[0]; in adbd_tls_verify_cert() local
326 LOG(ERROR) << "Invalid base64 key " << pubkey; in adbd_tls_verify_cert()
[all …]
/aosp12/packages/modules/adb/client/
H A Dauth.cpp71 std::string pubkey; in generate_key() local
76 if (!CalculatePublicKey(&pubkey, rsa)) { in generate_key()
99 if (!android::base::WriteStringToFile(pubkey, file + ".pub")) { in generate_key()
108 unsigned char* pubkey = nullptr; in hash_key() local
109 int len = i2d_RSA_PUBKEY(key, &pubkey); in hash_key()
117 SHA256(pubkey, len, reinterpret_cast<unsigned char*>(&result[0])); in hash_key()
118 OPENSSL_free(pubkey); in hash_key()
330 std::string pubkey; in adb_auth_pubkey() local
331 if (!pubkey_from_privkey(&pubkey, filename)) { in adb_auth_pubkey()
334 pubkey.push_back('\n'); in adb_auth_pubkey()
[all …]
/aosp12/system/keymaster/include/keymaster/cppcose/
H A Dcppcose.h165 auto& pubkey = key->getMap().get(PUBKEY_X); in parseEd25519() local
166 if (!pubkey || !pubkey->asBstr() || in parseEd25519()
167 pubkey->asBstr()->value().size() != ED25519_PUBLIC_KEY_LEN) { in parseEd25519()
178 auto& pubkey = key->getMap().get(PUBKEY_X); in parseX25519() local
179 if (!pubkey || !pubkey->asBstr() || in parseX25519()
180 pubkey->asBstr()->value().size() != X25519_PUBLIC_VALUE_LEN) { in parseX25519()
/aosp12/build/make/tools/releasetools/
H A Dtest_common.py960 with open(pubkey) as pubkey_fp:
1292 'avb_system_key_path': pubkey,
1335 'avb_system_key_path': pubkey,
1589 'avb_vendor_key_path': pubkey,
1734 with open(pubkey, 'wb') as f:
1741 'gki_signing_key_path': pubkey,
1754 with open(pubkey, 'wb') as f:
1759 'gki_signing_key_path': pubkey,
1768 '--gki_signing_key', pubkey,
1789 pubkey = 'testkey_gki.pem'
[all …]
H A Dcheck_ota_package_signature.py151 pubkey = common.MakeTempFile(prefix="key-", suffix=".pem")
152 with open(pubkey, 'w') as pubkey_fp:
161 '--public_key=' + pubkey]
/aosp12/system/keymaster/android_keymaster/
H A Dremote_provisioning_utils.cpp47 byte_view pubkey; member
52 return curve == other.curve && pubkey == other.pubkey; in operator ==()
192 cppbor::Array buildCertReqRecipients(const std::vector<uint8_t>& pubkey, in buildCertReqRecipients() argument
204 .add(CoseKey::PUBKEY_X, pubkey) in buildCertReqRecipients()
/aosp12/packages/modules/vndk/apex/
H A DAndroid.bp37 public_key: "com.android.vndk.current.pubkey",
59 public_key: "com.android.vndk.v31.pubkey",
81 public_key: "com.android.vndk.v30.pubkey",
103 public_key: "com.android.vndk.v29.pubkey",
125 public_key: "com.android.vndk.v28.pubkey",
H A DREADME.md21 public_key: "com.android.vndk.v30.pubkey",
44 avbtool extract_public_key --key com.android.vndk.v30.pem --output com.android.vndk.v30.pubkey
/aosp12/build/make/tools/releasetools/testdata/
H A Dapexkeys_merge.txt4 …or.apex" public_key="packages/modules/vndk/apex/com.android.vndk.current.pubkey" private_key="pack…
5 name="com.android.vndk.v27.apex" public_key="packages/modules/vndk/apex/com.android.vndk.v27.pubkey
6 name="com.android.vndk.v28.apex" public_key="packages/modules/vndk/apex/com.android.vndk.v28.pubkey
7 name="com.android.vndk.v29.apex" public_key="packages/modules/vndk/apex/com.android.vndk.v29.pubkey
H A Dapexkeys_framework.txt5 name="com.android.vndk.v27.apex" public_key="packages/modules/vndk/apex/com.android.vndk.v27.pubkey
6 name="com.android.vndk.v28.apex" public_key="packages/modules/vndk/apex/com.android.vndk.v28.pubkey
7 name="com.android.vndk.v29.apex" public_key="packages/modules/vndk/apex/com.android.vndk.v29.pubkey
/aosp12/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
H A DCertificateStore.java130 byte[] pubkey = null; in loadItem()
140 pubkey = hexToBytes(reader.nextString()); in loadItem()
149 if (uuid != null && pubkey != null) { in loadItem()
150 mCertificates.put(uuid, pubkey); in loadItem()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
H A DRecoverableKeyStoreDbTest.java546 PublicKey pubkey = genRandomPublicKey(); in getRecoveryServicePublicKey_returnsInsertedKey() local
547 mRecoverableKeyStoreDb.setRecoveryServicePublicKey(userId, uid, pubkey); in getRecoveryServicePublicKey_returnsInsertedKey()
549 pubkey); in getRecoveryServicePublicKey_returnsInsertedKey()
812 PublicKey pubkey = genRandomPublicKey(); in getServerParams_returnsNullIfNoValue() local
813 mRecoverableKeyStoreDb.setRecoveryServicePublicKey(userId, uid, pubkey); in getServerParams_returnsNullIfNoValue()
876 PublicKey pubkey = genRandomPublicKey(); in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids() local
880 pubkey); in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids()
882 pubkey); in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids()
890 PublicKey pubkey = genRandomPublicKey(); in setRecoveryServiceMetadataEntry_allowsTwoUsersToHaveTheSameUid() local
894 pubkey); in setRecoveryServiceMetadataEntry_allowsTwoUsersToHaveTheSameUid()
[all …]
/aosp12/frameworks/base/core/tests/overlaytests/remount/test-apps/overlaid_apex/
H A DAndroid.bp33 name: "com.android.overlaytest.overlaid.pubkey",
35 out: ["com.android.overlaytest.overlaid.pubkey"],
42 public_key: ":com.android.overlaytest.overlaid.pubkey",
/aosp12/frameworks/base/core/tests/overlaytests/remount/test-apps/overlay_apex/
H A DAndroid.bp33 name: "com.android.overlaytest.overlay.pubkey",
35 out: ["com.android.overlaytest.overlay.pubkey"],
42 public_key: ":com.android.overlaytest.overlay.pubkey",
/aosp12/packages/modules/adb/crypto/tests/
H A Dkey_test.cpp58 const std::string& pubkey = split[0]; in TEST() local
59 ASSERT_EQ(b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)), ANDROID_PUBKEY_ENCODED_SIZE); in TEST()
H A Drsa_2048_key_test.cpp61 const std::string& pubkey = split[0]; in TEST() local
62 ASSERT_EQ(b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)), ANDROID_PUBKEY_ENCODED_SIZE); in TEST()
/aosp12/system/keymaster/cppcose/
H A Dcppcose.cpp306 auto& pubkey = senderCoseKey->asMap()->get(CoseKey::PUBKEY_X); in getSenderPubKeyFromCoseEncrypt() local
307 if (!pubkey || !pubkey->asBstr() || in getSenderPubKeyFromCoseEncrypt()
308 pubkey->asBstr()->value().size() != X25519_PUBLIC_VALUE_LEN) { in getSenderPubKeyFromCoseEncrypt()
314 return std::make_pair(pubkey->asBstr()->value(), key_id->asBstr()->value()); in getSenderPubKeyFromCoseEncrypt()
318 return std::make_pair(pubkey->asBstr()->value(), bytevec{}); in getSenderPubKeyFromCoseEncrypt()
/aosp12/hardware/interfaces/security/keymint/support/
H A Dremote_prov_utils_test.cpp47 auto& [chain, pubkey, privkey] = *get_eek_result; in TEST()
55 EXPECT_THAT(eekPub, ElementsAreArray(pubkey)); in TEST()
/aosp12/frameworks/base/tests/RollbackTest/
H A DAndroid.bp86 name: "com.android.apex.apkrollback.test.pubkey",
88 out: ["com.android.apex.apkrollback.test.pubkey"],
96 public_key: ":com.android.apex.apkrollback.test.pubkey",
/aosp12/system/keymaster/key_blob_utils/
H A Dsoftware_keyblobs.cpp93 keymaster_error_t FakeKeyAuthorizations(EVP_PKEY* pubkey, AuthorizationSet* hw_enforced, in FakeKeyAuthorizations() argument
98 switch (EVP_PKEY_type(pubkey->type)) { in FakeKeyAuthorizations()
119 RSA_Ptr rsa(EVP_PKEY_get1_RSA(pubkey)); in FakeKeyAuthorizations()
141 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(pubkey)); in FakeKeyAuthorizations()
/aosp12/system/apex/apexd/
H A Dapex_file.cpp84 std::string pubkey; in Open() local
148 pubkey.resize(length, '\0'); in Open()
150 reinterpret_cast<uint8_t*>(&(pubkey)[0]), length); in Open()
175 pubkey, fs_type, is_compressed); in Open()
/aosp12/system/apex/shim/build/
H A DAndroid.bp28 name: "com.android.apex.cts.shim.pubkey",
30 out: ["com.android.apex.cts.shim.pubkey"],
38 public_key: ":com.android.apex.cts.shim.pubkey",
49 name: "com.android.apex.cts.shim.debug.pubkey",
51 out: ["com.android.apex.cts.shim.debug.pubkey"],
59 public_key: ":com.android.apex.cts.shim.debug.pubkey",
318 name: "com.android.apex.cts.shim_not_pre_installed.pubkey",
320 out: ["com.android.apex.cts.shim_not_pre_installed.pubkey"],
328 public_key: ":com.android.apex.cts.shim_not_pre_installed.pubkey",
/aosp12/system/tools/aidl/build/apex/
H A DAndroid.bp26 public_key: "com.android.aidltest.pubkey",
/aosp12/system/keymaster/include/keymaster/key_blob_utils/
H A Dsoftware_keyblobs.h39 keymaster_error_t FakeKeyAuthorizations(EVP_PKEY* pubkey, AuthorizationSet* hw_enforced,
/aosp12/system/keymaster/include/keymaster/
H A Dremote_provisioning_utils.h75 cppbor::Array buildCertReqRecipients(const std::vector<uint8_t>& pubkey,

12