Package-level declarations

Types

Link copied to clipboard

A bridge to call SuspendEncryptor methods from a synchronous context.

Link copied to clipboard

An encryptor that uses Android's SecretKey to encrypt and decrypt data. It uses AES/GCM/NoPadding as the cipher and HmacSHA256 for the MAC.

Link copied to clipboard

Configuration class for SecretKeyEncryptor. It contains various properties that can be set to configure the encryption process.

Link copied to clipboard
Link copied to clipboard
data class SymmetricKey(var secretKey: SecretKey, val encoded: ByteArray = ByteArray(0))

Properties

Link copied to clipboard
private const val AES_GCM_NO_PADDING: String
Link copied to clipboard
private const val ANDROID_KEYSTORE: String
Link copied to clipboard
private const val HMAC_SHA256: String
Link copied to clipboard
private const val IV_LENGTH: Int = 12
Link copied to clipboard
private const val RSA_ECB_OAEP_PADDING: String
Link copied to clipboard
private const val TAG: String

Functions

Link copied to clipboard
private fun Int.toByteArray(): ByteArray

Converts an Int to a ByteArray.

Link copied to clipboard
private fun ByteArray.toInt(): Int

Converts a ByteArray to an Int.