Package-level declarations

Types

Link copied to clipboard
class AES256Key(val data: ByteArray) : ByteDataContainer
Link copied to clipboard
internal class AESDecrypt(secretKey: AES256Key)
internal class AESDecrypt(secretKey: AES256Key)
Link copied to clipboard
internal class AESEncrypt
internal class AESEncrypt
Link copied to clipboard
abstract class ByteDataContainer(val data: ByteArray)

Simple utility class that enables holding ByteArrays. This implements equals and hash code.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class CryptoServiceInfo(val name: String, val lookup: String, val algorithm: String, val providerName: String, val providerVersion: String)

Which security provider serves one cryptographic lookup, read off the instance the platform returned.

Link copied to clipboard
class EncryptedData(val data: ByteArray) : ByteDataContainer
Link copied to clipboard
class PlainData(val data: ByteArray) : ByteDataContainer
Link copied to clipboard
class SHA256Key(val data: ByteArray) : ByteDataContainer

Functions

Link copied to clipboard

Which providers serve asset crypto, for the security providers debug screen.

Which providers serve asset crypto, for the security providers debug screen.

Link copied to clipboard
fun calcFileMd5(dataSource: <Error class: unknown class>): String?

Method used to calculate the digested MD5 hash of a relatively small byte array

Link copied to clipboard
fun calcFileSHA256(dataSource: <Error class: unknown class>): ByteArray?

Method used to calculate the digested SHA256 hash of a relatively small byte array

Link copied to clipboard
fun calcMd5(bytes: ByteArray): String
Link copied to clipboard
fun calcSHA256(bytes: ByteArray): ByteArray
Link copied to clipboard
fun cryptoServiceInfo(name: String, lookup: String, resolve: () -> <Error class: unknown class><String, Provider>): CryptoServiceInfo?

Performs resolve and reads the algorithm and provider off the instance it returned, so what is reported is what the platform actually handed back.

fun cryptoServiceInfo(name: String, lookup: String, resolve: () -> <Error class: unknown class><String, Provider>): CryptoServiceInfo?

Performs resolve and reads the algorithm and provider off the instance it returned, so what is reported is what the platform actually handed back.

Link copied to clipboard
actual fun cryptoServices(): List<CryptoServiceInfo>
actual fun cryptoServices(): List<CryptoServiceInfo>
expect fun cryptoServices(): List<CryptoServiceInfo>

Which security provider serves each cryptographic lookup in this module.

actual fun cryptoServices(): List<CryptoServiceInfo>
actual fun cryptoServices(): List<CryptoServiceInfo>
Link copied to clipboard
actual fun decryptDataWithAES256(data: <Error class: unknown class>, secretKey: <Error class: unknown class>): <Error class: unknown class>

Method used to decrypt a relatively small array of bytes using the AES256 decryption algorithm

actual fun decryptDataWithAES256(data: <Error class: unknown class>, secretKey: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
actual fun decryptFileWithAES256(source: <Error class: unknown class>, sink: <Error class: unknown class>, secretKey: AES256Key): Long
actual fun decryptFileWithAES256(source: <Error class: unknown class>, sink: <Error class: unknown class>, secretKey: <Error class: unknown class>): Long
expect fun decryptFileWithAES256(source: <Error class: unknown class>, sink: <Error class: unknown class>, secretKey: AES256Key): Long

Method used to decrypt some binary data using the AES256 encryption algorithm

actual fun decryptFileWithAES256(source: <Error class: unknown class>, sink: <Error class: unknown class>, secretKey: <Error class: unknown class>): Long
actual fun decryptFileWithAES256(source: <Error class: unknown class>, sink: <Error class: unknown class>, secretKey: AES256Key): Long
Link copied to clipboard
actual fun encryptDataWithAES256(data: <Error class: unknown class>, key: <Error class: unknown class>): <Error class: unknown class>
expect fun encryptDataWithAES256(data: PlainData, key: AES256Key = generateRandomAES256Key()): EncryptedData

Method used to encrypt a relatively small array of bytes using the AES256 encryption algorithm

actual fun encryptDataWithAES256(data: <Error class: unknown class>, key: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
actual fun encryptFileWithAES256(source: <Error class: unknown class>, key: AES256Key, sink: <Error class: unknown class>): Long
actual fun encryptFileWithAES256(source: <Error class: unknown class>, key: <Error class: unknown class>, sink: <Error class: unknown class>): Long
expect fun encryptFileWithAES256(source: <Error class: unknown class>, key: AES256Key, sink: <Error class: unknown class>): Long

Method used to encrypt binary data using the AES256 encryption algorithm

actual fun encryptFileWithAES256(source: <Error class: unknown class>, key: <Error class: unknown class>, sink: <Error class: unknown class>): Long
actual fun encryptFileWithAES256(source: <Error class: unknown class>, key: AES256Key, sink: <Error class: unknown class>): Long
Link copied to clipboard

Method to generate a random Secret Key via the AES256 ciphering Algorithm

Link copied to clipboard
fun <Error class: unknown class>.toBundle(): <Error class: unknown class>
fun <Error class: unknown class>.toBundle(): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class>.toCrypto(): GroupInfoBundle
fun CredentialType.toCrypto(): <Error class: unknown class>
fun MLSCiphersuite.toCrypto(): <Error class: unknown class>
fun MlsTransportResponse.toCrypto(): <Error class: unknown class>
fun PreKeyCrypto.toCrypto(): <Error class: unknown class>
fun MLSGroupId.toCrypto(): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class>.toCryptography(): MLSCiphersuite
fun <Error class: unknown class>.toCryptography(): CommitBundle
fun <Error class: unknown class>.toCryptography(): E2EIConversationState
fun <Error class: unknown class>.toCryptography(): GroupInfoEncryptionType
fun <Error class: unknown class>.toCryptography(): RatchetTreeType
fun <Error class: unknown class>.toCryptography(): PreKeyCrypto
fun <Error class: unknown class>.toCryptography(): <Error class: unknown class>
fun <Error class: unknown class>.toCryptography(): <Error class: unknown class>
fun <Error class: unknown class>.toCryptography(): <Error class: unknown class>
fun <Error class: unknown class>.toCryptography(): WireIdentity?
fun <Error class: unknown class>.toCryptography(): <Error class: unknown class>
Link copied to clipboard
fun toExternalSenderKey(value: ByteArray): ExternalSenderKey