Package-level declarations

Types

Link copied to clipboard
typealias ApplicationMessage = ByteArray
Link copied to clipboard
typealias CertificateChain = String
Link copied to clipboard
data class CommitBundle(val commit: ByteArray, val welcome: ByteArray?, val groupInfoBundle: GroupInfoBundle, val encryptedMessage: ByteArray? = null)
Link copied to clipboard
Link copied to clipboard
class CoreCryptoCentralImpl(cc: <Error class: unknown class>, rootDir: String, database: <Error class: unknown class>) : CoreCryptoCentral
Link copied to clipboard
internal object CoreCryptoLoggerImpl
Link copied to clipboard
Link copied to clipboard
data class CryptoClientId(val value: String)
Link copied to clipboard

A Core Crypto credential acquired independently of a client transaction.

Link copied to clipboard
internal class CryptoCredentialImpl(val native: <Error class: unknown class>) : CryptoCredential
Link copied to clipboard

A reference to a credential stored by Core Crypto.

Link copied to clipboard
internal class CryptoCredentialRefImpl(val native: <Error class: unknown class>) : CryptoCredentialRef
Link copied to clipboard
Link copied to clipboard
data class CryptoQualifiedClientId(val value: String, val userId: CryptoQualifiedID)
Link copied to clipboard
data class CryptoQualifiedID(val value: String, val domain: String)
Link copied to clipboard
data class CryptoSessionId(val userId: CryptoUserID, val cryptoClientId: CryptoClientId)
Link copied to clipboard

Provides a composite context that can be used inside a crypto transaction.

Link copied to clipboard
Link copied to clipboard
sealed interface DecryptedMessageBundle
Link copied to clipboard
Link copied to clipboard
value class ExternalSenderKey(val value: ByteArray)
Link copied to clipboard
open class GroupInfoBundle(var encryptionType: GroupInfoEncryptionType, var ratchetTreeType: RatchetTreeType, var payload: ByteArray)
Link copied to clipboard
typealias HandshakeMessage = ByteArray
Link copied to clipboard
Link copied to clipboard
interface MLSClient
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class MlsDBSecret(val passphrase: ByteArray)
Link copied to clipboard
sealed interface MLSDecryptResult
Link copied to clipboard
Link copied to clipboard
typealias MLSGroupId = String
Link copied to clipboard
class MLSHistorySecret(val clientId: CryptoQualifiedClientId, val data: ByteArray)
Link copied to clipboard
typealias MLSKeyPackage = ByteArray
Link copied to clipboard
class MlsMessageRejectedException(val reason: String, cause: Throwable? = null)

The delivery service rejected an outgoing MLS commit.

Link copied to clipboard
interface MLSTransporter
Link copied to clipboard

Core-Crypto-neutral callbacks used by the v10 PKI environment.

Link copied to clipboard
data class PkiHttpHeader(val name: String, val value: String)
Link copied to clipboard
Link copied to clipboard
data class PkiHttpResponse(val status: <Error class: unknown class>, val headers: List<PkiHttpHeader>, val body: ByteArray)
Link copied to clipboard
typealias PlainMessage = ByteArray
Link copied to clipboard
data class PlainUserId(val value: String)
Link copied to clipboard
data class PreKeyCrypto(val id: Int, val pkb: String)
Link copied to clipboard
interface ProteusClient
Link copied to clipboard
Link copied to clipboard
data class ProteusDBSecret(val passphrase: ByteArray)
Link copied to clipboard
Link copied to clipboard
typealias WelcomeMessage = ByteArray
Link copied to clipboard
data class WireIdentity(val clientId: CryptoQualifiedClientId, val status: CryptoCertificateStatus, val thumbprint: String, val credentialType: CredentialType, val x509Identity: WireIdentity.X509Identity?)
Link copied to clipboard
data class X509CredentialAcquisitionConfig(val acmeDirectoryUrl: String, val cipherSuite: MLSCiphersuite, val displayName: String, val clientId: CryptoQualifiedClientId, val handle: String, val teamId: String?, val validity: <Error class: unknown class>)

Properties

Link copied to clipboard
internal var kaliumLogger: <Error class: unknown class>

Functions

Link copied to clipboard
expect suspend fun coreCryptoCentral(rootDir: String, passphrase: ByteArray): CoreCryptoCentral
actual suspend fun coreCryptoCentral(rootDir: String, passphrase: ByteArray): CoreCryptoCentral
actual suspend fun coreCryptoCentral(rootDir: String, passphrase: ByteArray): CoreCryptoCentral
Link copied to clipboard
internal actual fun createDirectory(path: String): Boolean
internal actual fun createDirectory(path: String): Boolean
internal expect fun createDirectory(path: String): Boolean

Creates a directory at the specified path, including any necessary parent directories.

internal actual fun createDirectory(path: String): Boolean
internal actual fun createDirectory(path: String): Boolean
Link copied to clipboard
suspend fun ProteusCoreCryptoContext.createSessions(preKeysCrypto: Map<String, Map<String, Map<String, PreKeyCrypto>>>)
Link copied to clipboard
internal actual fun deleteFile(path: String): Boolean
internal actual fun deleteFile(path: String): Boolean
internal expect fun deleteFile(path: String): Boolean

Deletes a file or directory at the specified path.

internal actual fun deleteFile(path: String): Boolean
internal actual fun deleteFile(path: String): Boolean
Link copied to clipboard
internal actual fun fileExists(path: String): Boolean
internal actual fun fileExists(path: String): Boolean
internal expect fun fileExists(path: String): Boolean

Checks if a file or directory exists at the specified path.

internal actual fun fileExists(path: String): Boolean
internal actual fun fileExists(path: String): Boolean
Link copied to clipboard
internal fun findPkiTrustAnchorsToAdd(installedAnchors: List<CertificateChain>, pemBundle: String): List<CertificateChain>

Returns the certificates from pemBundle that are not in installedAnchors.

Link copied to clipboard
actual suspend fun migrateDatabaseKey(rootDir: String, oldKey: String, passphrase: ByteArray)
actual suspend fun migrateDatabaseKey(rootDir: String, oldKey: String, passphrase: ByteArray)
expect suspend fun migrateDatabaseKey(rootDir: String, oldKey: String, passphrase: ByteArray)
actual suspend fun migrateDatabaseKey(rootDir: String, oldKey: String, passphrase: ByteArray)
actual suspend fun migrateDatabaseKey(rootDir: String, oldKey: String, passphrase: ByteArray)
Link copied to clipboard
internal fun CryptoQualifiedClientId.toCoreCryptoClientId(): <Error class: unknown class>
Link copied to clipboard
internal suspend fun <T> <Error class: unknown class>.transaction(workIdentifier: String, block: suspend (<Error class: unknown class>) -> T): T

Performs a work using a CC Transaction, returning its result, exactly like the regular withLock function. However, this will monitor the work and log warnings using the provided workIdentifier every 10 seconds, while the work isn't completed.

Link copied to clipboard
internal fun CryptoCredential.unwrap(): <Error class: unknown class>
internal fun CryptoCredentialRef.unwrap(): <Error class: unknown class>