Searched refs:PairingAuthCtx (Results 1 – 4 of 4) sorted by relevance
/system/core/adb/pairing_auth/include/adb/pairing/ |
D | pairing_auth.h | 44 struct PairingAuthCtx; 45 typedef struct PairingAuthCtx PairingAuthCtx; typedef 56 PairingAuthCtx* pairing_auth_server_new(const uint8_t* pswd, size_t len) __INTRODUCED_IN(30); 67 PairingAuthCtx* pairing_auth_client_new(const uint8_t* pswd, size_t len) __INTRODUCED_IN(30); 74 void pairing_auth_destroy(PairingAuthCtx* ctx) __INTRODUCED_IN(30); 85 size_t pairing_auth_msg_size(PairingAuthCtx* ctx) __INTRODUCED_IN(30); 99 void pairing_auth_get_spake2_msg(PairingAuthCtx* ctx, uint8_t* out_buf) __INTRODUCED_IN(30); 119 bool pairing_auth_init_cipher(PairingAuthCtx* ctx, const uint8_t* their_msg, size_t msg_len) 133 size_t pairing_auth_safe_encrypted_size(PairingAuthCtx* ctx, size_t len) __INTRODUCED_IN(30); 149 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, [all …]
|
/system/core/adb/pairing_auth/ |
D | pairing_auth.cpp | 40 struct PairingAuthCtx { struct 48 explicit PairingAuthCtx(Role role, const Data& pswd); argument 88 PairingAuthCtx::PairingAuthCtx(Role role, const Data& pswd) : role_(role) { in PairingAuthCtx() function in PairingAuthCtx 132 const PairingAuthCtx::Data& PairingAuthCtx::msg() const { in msg() 136 bool PairingAuthCtx::InitCipher(const PairingAuthCtx::Data& their_msg) { in InitCipher() 164 PairingAuthCtx::Data PairingAuthCtx::Encrypt(const PairingAuthCtx::Data& data) { in Encrypt() 180 PairingAuthCtx::Data PairingAuthCtx::Decrypt(const PairingAuthCtx::Data& data) { in Decrypt() 197 size_t PairingAuthCtx::SafeEncryptedSize(size_t len) { in SafeEncryptedSize() 202 size_t PairingAuthCtx::SafeDecryptedSize(size_t len) { in SafeDecryptedSize() 207 PairingAuthCtx* pairing_auth_server_new(const uint8_t* pswd, size_t len) { in pairing_auth_server_new() [all …]
|
/system/core/adb/pairing_connection/ |
D | pairing_connection.cpp | 53 void operator()(PairingAuthCtx* p) { pairing_auth_destroy(p); } in operator ()() 55 using PairingAuthPtr = std::unique_ptr<PairingAuthCtx, PairingAuthDeleter>;
|
/system/core/adb/pairing_auth/tests/ |
D | pairing_auth_test.cpp | 27 static void PairingAuthDeleter(PairingAuthCtx* p) { in PairingAuthDeleter() 37 using PairingAuthUniquePtr = std::unique_ptr<PairingAuthCtx, decltype(&PairingAuthDeleter)>;
|