Package-level declarations

Types

Link copied to clipboard
sealed interface DeviceTrustLevel
Link copied to clipboard
sealed interface UserTrustLevel

Functions

Link copied to clipboard
suspend fun checkRecoveryKey(key: ByteArray, info: SecretKeyEventContent.AesHmacSha2Key): Result<Unit>
Link copied to clipboard
fun SecretKeyEventContent.AesHmacSha2Key.AesHmacSha2EncryptedData.convert(): AesHmacSha2EncryptedData
fun AesHmacSha2EncryptedData.convert(): SecretKeyEventContent.AesHmacSha2Key.AesHmacSha2EncryptedData
Link copied to clipboard
fun decodeRecoveryKey(encodedRecoveryKey: String): ByteArray
Link copied to clipboard
suspend fun decryptSecret(key: ByteArray, keyId: String, keyInfo: SecretKeyEventContent, secretName: String, secret: SecretEventContent, json: Json): String?
Link copied to clipboard
Link copied to clipboard
suspend fun encryptSecret(key: ByteArray, keyId: String, secretName: String, secret: String, json: Json): Map<String, JsonElement>
Link copied to clipboard
inline fun <T : Key> CrossSigningKeys.get(): T?
inline fun <T : Key> DeviceKeys.get(): T?
inline fun <T : Key> Keys.get(): T?
inline fun <T : Key> SignedDeviceKeys.get(): T?
Link copied to clipboard
suspend fun recoveryKeyFromPassphrase(passphrase: String, info: SecretKeyEventContent.AesHmacSha2Key.SecretStorageKeyPassphrase): ByteArray