Home
last modified time | relevance | path

Searched refs:keybuf (Results 1 – 3 of 3) sorted by relevance

/packages/modules/adb/daemon/
Dauth.cpp117 uint8_t keybuf[ANDROID_PUBKEY_ENCODED_SIZE + 1]; 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()
125 if (!android_pubkey_decode(keybuf, ANDROID_PUBKEY_ENCODED_SIZE, &key)) { in adbd_tls_client_ca_list()
164 uint8_t keybuf[ANDROID_PUBKEY_ENCODED_SIZE + 1]; in adbd_auth_verify() local
166 if (b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { in adbd_auth_verify()
172 if (!android_pubkey_decode(keybuf, ANDROID_PUBKEY_ENCODED_SIZE, &key)) { in adbd_auth_verify()
323 uint8_t keybuf[ANDROID_PUBKEY_ENCODED_SIZE + 1]; in adbd_tls_verify_cert() local
325 if (b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { in adbd_tls_verify_cert()
331 if (!android_pubkey_decode(keybuf, ANDROID_PUBKEY_ENCODED_SIZE, &key)) { in adbd_tls_verify_cert()
/packages/modules/adb/crypto/tests/
Dkey_test.cpp57 uint8_t keybuf[ANDROID_PUBKEY_ENCODED_SIZE + 1]; in TEST() local
59 ASSERT_EQ(b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)), ANDROID_PUBKEY_ENCODED_SIZE); in TEST()
61 ASSERT_TRUE(android_pubkey_decode(keybuf, ANDROID_PUBKEY_ENCODED_SIZE, &key)); in TEST()
Drsa_2048_key_test.cpp60 uint8_t keybuf[ANDROID_PUBKEY_ENCODED_SIZE + 1]; in TEST() local
62 ASSERT_EQ(b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)), ANDROID_PUBKEY_ENCODED_SIZE); in TEST()
64 ASSERT_TRUE(android_pubkey_decode(keybuf, ANDROID_PUBKEY_ENCODED_SIZE, &key)); in TEST()