mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-27 04:28:44 +00:00
7.2 KiB
7.2 KiB
//docs/dev.inmo.tgbotapi.utils.passport
Package dev.inmo.tgbotapi.utils.passport
Types
Name | Summary |
---|---|
AESDecryptor | [jvm] Content class AESDecryptor(key: , iv: ByteArray) : Decryptor |
Decryptor | [common] Content interface Decryptor |
Functions
Name | Summary |
---|---|
createDecryptor | [jvm] Content fun EndDataCredentials.createDecryptor(): Decryptor fun Pair<, >.createDecryptor(): Decryptor |
decryptData | [jvm] Content fun EndDataCredentials.decryptData(bytes: ): |
decryptFile | [jvm] Content fun FileCredentials.decryptFile(fileBytes: ByteArray): suspend fun FileCredentials.decryptFile(bot: , passportFile: PassportFile): |
decryptWithPKCS8PrivateKey | [jvm] Content fun EncryptedCredentials.decryptWithPKCS8PrivateKey(privateKey: PrivateKey): DecryptedCredentials fun EncryptedCredentials.decryptWithPKCS8PrivateKey(key: String): DecryptedCredentials |
doInDecryptionContextWithPKCS8Key | [jvm] Content 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 |