Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class DerivedKeys(val aesKey: ByteArray, val hmacKey: ByteArray)
Link copied to clipboard
@Serializable
enum SecretType : Enum<SecretType>
Link copied to clipboard
data class Sha256ByteFlow(content: ByteFlow, val hash: StateFlow<String?>) : Flow<Byte>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect fun ByteFlow.decryptAes256Ctr(key: ByteArray, initialisationVector: ByteArray): ByteFlow
actual fun ByteFlow.decryptAes256Ctr(key: ByteArray, initialisationVector: ByteArray): ByteFlow
actual fun ByteFlow.decryptAes256Ctr(key: ByteArray, initialisationVector: ByteArray): ByteFlow
Link copied to clipboard
suspend fun decryptAesHmacSha2(content: SecretKeyEventContent.AesHmacSha2Key.AesHmacSha2EncryptedData, key: ByteArray, name: String): ByteArray
Link copied to clipboard
suspend fun deriveKeys(key: ByteArray, name: String): DerivedKeys
Link copied to clipboard
Link copied to clipboard
expect fun ByteFlow.encryptAes256Ctr(key: ByteArray, initialisationVector: ByteArray): ByteFlow
actual fun ByteFlow.encryptAes256Ctr(key: ByteArray, initialisationVector: ByteArray): ByteFlow
actual fun ByteFlow.encryptAes256Ctr(key: ByteArray, initialisationVector: ByteArray): ByteFlow
Link copied to clipboard
suspend fun encryptAesHmacSha2(content: ByteArray, key: ByteArray, name: String, initialisationVector: ByteArray = SecureRandom.nextBytes(16)): SecretKeyEventContent.AesHmacSha2Key.AesHmacSha2EncryptedData
Link copied to clipboard
expect suspend fun generatePbkdf2Sha512(password: String, salt: ByteArray, iterationCount: Int, keyBitLength: Int): ByteArray
actual suspend fun generatePbkdf2Sha512(password: String, salt: ByteArray, iterationCount: Int, keyBitLength: Int): ByteArray
actual suspend fun generatePbkdf2Sha512(password: String, salt: ByteArray, iterationCount: Int, keyBitLength: Int): ByteArray
Link copied to clipboard
expect suspend fun hmacSha256(key: ByteArray, data: ByteArray): ByteArray
actual suspend fun hmacSha256(key: ByteArray, data: ByteArray): ByteArray
actual suspend fun hmacSha256(key: ByteArray, data: ByteArray): ByteArray
Link copied to clipboard
expect fun ByteFlow.sha256(): Sha256ByteFlow
actual fun ByteFlow.sha256(): Sha256ByteFlow
actual fun ByteFlow.sha256(): Sha256ByteFlow

Properties

Link copied to clipboard