Home
last modified time | relevance | path

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

/packages/modules/adb/daemon/
Dauth.cpp116 uint8_t keybuf[ANDROID_PUBKEY_ENCODED_SIZE + 1]; 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()
124 if (!android_pubkey_decode(keybuf, ANDROID_PUBKEY_ENCODED_SIZE, &key)) { in adbd_tls_client_ca_list()
163 uint8_t keybuf[ANDROID_PUBKEY_ENCODED_SIZE + 1]; in adbd_auth_verify() local
165 if (b64_pton(pubkey.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { in adbd_auth_verify()
171 if (!android_pubkey_decode(keybuf, ANDROID_PUBKEY_ENCODED_SIZE, &key)) { in adbd_auth_verify()
322 uint8_t keybuf[ANDROID_PUBKEY_ENCODED_SIZE + 1]; 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()
330 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()