ProteusCoreCryptoContext
interface ProteusCoreCryptoContext
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun ProteusCoreCryptoContext.createSessions(preKeysCrypto: Map<String, Map<String, Map<String, PreKeyCrypto>>>)
Link copied to clipboard
abstract suspend fun <T : Any> decryptMessage(sessionId: CryptoSessionId, message: ByteArray, handleDecryptedMessage: suspend (decryptedMessage: ByteArray) -> T): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun encryptBatched(message: ByteArray, sessionIds: List<CryptoSessionId>): Map<CryptoSessionId, ByteArray>
Link copied to clipboard
abstract suspend fun encryptWithPreKey(message: ByteArray, preKeyCrypto: PreKeyCrypto, sessionId: CryptoSessionId): ByteArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard