Home
last modified time | relevance | path

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

/packages/modules/adb/daemon/
Dauth.cpp117 const std::string& pubkey = split[0]; in adbd_tls_client_ca_list() local
118 if (b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { in adbd_tls_client_ca_list()
119 LOG(ERROR) << "Invalid base64 key " << pubkey; in adbd_tls_client_ca_list()
125 LOG(ERROR) << "Failed to parse key " << pubkey; in adbd_tls_client_ca_list()
164 const std::string& pubkey = split[0]; in adbd_auth_verify() local
165 if (b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { in adbd_auth_verify()
166 LOG(ERROR) << "Invalid base64 key " << pubkey; in adbd_auth_verify()
172 LOG(ERROR) << "Failed to parse key " << pubkey; in adbd_auth_verify()
323 const std::string& pubkey = split[0]; in adbd_tls_verify_cert() local
324 if (b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { in adbd_tls_verify_cert()
[all …]
/packages/modules/adb/client/
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 …]
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
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()
/packages/modules/vndk/apex/
DAndroid.bp37 public_key: "com.android.vndk.current.pubkey",
59 public_key: "com.android.vndk.v30.pubkey",
81 public_key: "com.android.vndk.v29.pubkey",
103 public_key: "com.android.vndk.v28.pubkey",
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
/packages/modules/adb/crypto/tests/
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()
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()