Lines Matching refs:PairingAuthCtx
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()
211 auto* ret = new PairingAuthCtx(PairingAuthCtx::Role::Server, std::move(p)); in pairing_auth_server_new()
216 PairingAuthCtx* pairing_auth_client_new(const uint8_t* pswd, size_t len) { in pairing_auth_client_new()
220 auto* ret = new PairingAuthCtx(PairingAuthCtx::Role::Client, std::move(p)); in pairing_auth_client_new()
225 size_t pairing_auth_msg_size(PairingAuthCtx* ctx) { in pairing_auth_msg_size()
230 void pairing_auth_get_spake2_msg(PairingAuthCtx* ctx, uint8_t* out_buf) { in pairing_auth_get_spake2_msg()
237 bool pairing_auth_init_cipher(PairingAuthCtx* ctx, const uint8_t* their_msg, size_t msg_len) { in pairing_auth_init_cipher()
246 size_t pairing_auth_safe_encrypted_size(PairingAuthCtx* ctx, size_t len) { in pairing_auth_safe_encrypted_size()
251 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, in pairing_auth_encrypt()
270 size_t pairing_auth_safe_decrypted_size(PairingAuthCtx* ctx, const uint8_t* buf, size_t len) { in pairing_auth_safe_decrypted_size()
278 bool pairing_auth_decrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, in pairing_auth_decrypt()
297 void pairing_auth_destroy(PairingAuthCtx* ctx) { in pairing_auth_destroy()