ServiceMessage

class ServiceMessage(val type: String, val content: ByteArray) : EncryptedPayload

Constructors

Link copied to clipboard
constructor(type: String, content: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun encrypt(recipientSessionKey: SessionKey, senderSessionKeyPair: SessionKeyPair, symmetricCipher: SymmetricCipher = SymmetricCipher.AES_128, hashingAlgorithm: HashingAlgorithm = HashingAlgorithm.SHA256): ByteArray
Link copied to clipboard
open override fun serializePlaintext(): ByteArray