Home
last modified time | relevance | path

Searched refs:PairingAuthCtx (Results 1 – 4 of 4) sorted by relevance

/packages/modules/adb/pairing_auth/
Dpairing_auth.cpp40 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 …]
/packages/modules/adb/pairing_auth/include/adb/pairing/
Dpairing_auth.h43 struct PairingAuthCtx;
44 typedef struct PairingAuthCtx PairingAuthCtx; typedef
55 PairingAuthCtx* pairing_auth_server_new(const uint8_t* pswd, size_t len) __INTRODUCED_IN(30);
66 PairingAuthCtx* pairing_auth_client_new(const uint8_t* pswd, size_t len) __INTRODUCED_IN(30);
73 void pairing_auth_destroy(PairingAuthCtx* ctx) __INTRODUCED_IN(30);
84 size_t pairing_auth_msg_size(PairingAuthCtx* ctx) __INTRODUCED_IN(30);
98 void pairing_auth_get_spake2_msg(PairingAuthCtx* ctx, uint8_t* out_buf) __INTRODUCED_IN(30);
118 bool pairing_auth_init_cipher(PairingAuthCtx* ctx, const uint8_t* their_msg, size_t msg_len)
132 size_t pairing_auth_safe_encrypted_size(PairingAuthCtx* ctx, size_t len) __INTRODUCED_IN(30);
148 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf,
[all …]
/packages/modules/adb/pairing_connection/
Dpairing_connection.cpp53 void operator()(PairingAuthCtx* p) { pairing_auth_destroy(p); } in operator ()()
55 using PairingAuthPtr = std::unique_ptr<PairingAuthCtx, PairingAuthDeleter>;
/packages/modules/adb/pairing_auth/tests/
Dpairing_auth_test.cpp27 static void PairingAuthDeleter(PairingAuthCtx* p) { in PairingAuthDeleter()
37 using PairingAuthUniquePtr = std::unique_ptr<PairingAuthCtx, decltype(&PairingAuthDeleter)>;