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
Unknown Object (File)
Wed, Oct 23, 7:24 PM
Unknown Object (File)
Wed, Oct 23, 7:21 PM
Unknown Object (File)
Fri, Oct 18, 10:29 PM
Unknown Object (File)
Fri, Oct 18, 3:58 AM
Unknown Object (File)
Fri, Oct 18, 1:09 AM
Unknown Object (File)
Sep 20 2024, 3:59 PM
Unknown Object (File)
Sep 14 2024, 11:36 AM
Unknown Object (File)
Sep 5 2024, 10:55 AM
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