Page MenuHomePhabricator

[SQLite] add query to set ciphertext for outbound P2P message
ClosedPublic

Authored by kamil on May 16 2024, 5:19 AM.
Tags
None
Referenced Files
F3525286: D12070.id40592.diff
Mon, Dec 23, 4:17 PM
F3525271: D12070.id.diff
Mon, Dec 23, 4:17 PM
F3525265: D12070.diff
Mon, Dec 23, 4:17 PM
Unknown Object (File)
Tue, Dec 17, 6:59 AM
Unknown Object (File)
Wed, Dec 4, 5:53 PM
Unknown Object (File)
Mon, Nov 25, 9:54 PM
Unknown Object (File)
Nov 22 2024, 10:16 AM
Unknown Object (File)
Nov 21 2024, 9:09 PM
Subscribers

Details

Summary

After session creation we want to encrypt the message already addressed for other peer, we need a method for it.

This method should be called in the same SQLite transaction as encryption, this is handled later in the stack.

Using hardcoded constants in code - for later usage on the JS side I'll introduce type to make it safer,

Depends on D12069

Test Plan

Tests

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.May 17 2024, 3:21 AM
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2198–2200 ↗(On Diff #40283)

Please use SQLiteDataConverters.h

2202–2208 ↗(On Diff #40283)

Please remove those lines - SQLiteStatementWrapper destructor does it automatically.

This revision is now accepted and ready to land.May 23 2024, 8:40 AM