Package-level declarations

Types

Link copied to clipboard
class AESDecryptor(key: SourceBytes, iv: ByteArray) : Decryptor
Link copied to clipboard
interface Decryptor

Functions

Link copied to clipboard
fun Pair<SourceBytes, SourceBytes>.createDecryptor(): Decryptor
Link copied to clipboard
fun EndDataCredentials.decryptData(bytes: EncryptedData): SourceBytes
Link copied to clipboard
fun FileCredentials.decryptFile(fileBytes: ByteArray): SourceBytes
suspend fun FileCredentials.decryptFile(bot: TelegramBot, passportFile: PassportFile): SourceBytes
Link copied to clipboard
fun EncryptedCredentials.decryptWithPKCS8PrivateKey(privateKey: PrivateKey): DecryptedCredentials
Link copied to clipboard
inline fun <T> PassportData.doInDecryptionContextWithPKCS8Key(pkcs8Key: PrivateKey, expectedNonce: String? = null, crossinline block: SecureData.() -> T): T
inline fun <T> PassportData.doInDecryptionContextWithPKCS8Key(pkcs8Key: String, expectedNonce: String? = null, crossinline block: SecureData.() -> T): T