proteusEncryptWithPreKey

suspend fun proteusEncryptWithPreKey(message: ByteArray, preKey: PreKey, sessionId: SessionId): ByteArray

Create a session and encrypt a message.

Return

The CBOR-serialized encrypted message

Parameters

message

the message

preKey

the prekey

sessionId

the session ID to be used