oxen-io / libsession-util

Session utilities library
GNU General Public License v3.0
15 stars 16 forks source link

Add Multi-encrypt functions #74

Closed jagerman closed 9 months ago

jagerman commented 10 months ago

This allows efficiently encrypting 1-to-N or N-to-N messages in a single message, such as is used in the group keys message.

This adds both a general C++ interface (which is now used by the group keys code) for constructing such encrypted messages generically, and adds a version suffixed with _simple that produces ready-to-go bt-encoded binary values containing the nonce + encrypted values.

jagerman commented 9 months ago

Merging this as it's being used without any apparent issues now in dev versions of Session.