Package-level declarations

Types

Link copied to clipboard
class AES256Key(data: ByteArray) : ByteDataContainer
Link copied to clipboard
internal class AESDecrypt(secretKey: AES256Key)
Link copied to clipboard
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(data: ByteArray) : ByteDataContainer
Link copied to clipboard
class PlainData(data: ByteArray) : ByteDataContainer
Link copied to clipboard
class SHA256Key(data: ByteArray) : ByteDataContainer

Functions

Link copied to clipboard

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

Link copied to clipboard
fun calcFileMd5(dataSource: Source): String?

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

Link copied to clipboard
fun calcFileSHA256(dataSource: Source): 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: () -> Pair<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>

Which security provider serves each cryptographic lookup in this module.

expect fun cryptoServices(): List<CryptoServiceInfo>

Which security provider serves each cryptographic lookup in this module.

actual fun cryptoServices(): List<CryptoServiceInfo>

Which security provider serves each cryptographic lookup in this module.

actual fun cryptoServices(): List<CryptoServiceInfo>

Which security provider serves each cryptographic lookup in this module.

Link copied to clipboard

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

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

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

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

Link copied to clipboard
actual fun decryptFileWithAES256(source: Source, sink: Sink, secretKey: AES256Key): Long

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

expect fun decryptFileWithAES256(source: Source, sink: Sink, secretKey: AES256Key): Long

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

actual fun decryptFileWithAES256(source: Source, sink: Sink, secretKey: AES256Key): Long

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

actual fun decryptFileWithAES256(source: Source, sink: Sink, secretKey: AES256Key): Long

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

Link copied to clipboard

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

expect fun encryptDataWithAES256(data: PlainData, key: AES256Key = generateRandomAES256Key()): EncryptedData

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

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

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

Link copied to clipboard
actual fun encryptFileWithAES256(source: Source, key: AES256Key, sink: Sink): Long

Method used to encrypt binary data using the AES256 encryption algorithm

expect fun encryptFileWithAES256(source: Source, key: AES256Key, sink: Sink): Long

Method used to encrypt binary data using the AES256 encryption algorithm

actual fun encryptFileWithAES256(source: Source, key: AES256Key, sink: Sink): Long

Method used to encrypt binary data using the AES256 encryption algorithm

actual fun encryptFileWithAES256(source: Source, key: AES256Key, sink: Sink): Long

Method used to encrypt binary data using the AES256 encryption algorithm

Link copied to clipboard

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

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

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

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

Link copied to clipboard
fun BufferedDecryptedMessage.toBundle(): DecryptedMessageBundle
fun DecryptedMessage.toBundle(): DecryptedMessageBundle
Link copied to clipboard
fun GroupInfoBundle.toCrypto(): GroupInfoBundle
fun CredentialType.toCrypto(): CredentialType
fun MLSCiphersuite.toCrypto(): CipherSuite
fun PreKeyCrypto.toCrypto(): ProteusAutoPrekeyBundle
fun MLSGroupId.toCrypto(): ConversationId
Link copied to clipboard
fun CipherSuite.toCryptography(): MLSCiphersuite
fun CommitBundle.toCryptography(): CommitBundle
fun ConversationId.toCryptography(): MLSGroupId
fun CredentialType.toCryptography(): CredentialType
fun E2eiConversationState.toCryptography(): E2EIConversationState
fun MlsGroupInfoEncryptionType.toCryptography(): GroupInfoEncryptionType
fun MlsRatchetTreeType.toCryptography(): RatchetTreeType
fun ProteusAutoPrekeyBundle.toCryptography(): PreKeyCrypto
fun WireIdentity.toCryptography(): WireIdentity?