Package dev. inmo. tgbotapi. utils. passport
Types
Functions
createDecryptor
Link copied to clipboard
decryptData
Link copied to clipboard
decryptFile
Link copied to clipboard
suspend fun FileCredentials.decryptFile(bot: TelegramBot, passportFile: PassportFile): SourceBytes
Content copied to clipboard
decryptWithPKCS8PrivateKey
Link copied to clipboard
fun EncryptedCredentials.decryptWithPKCS8PrivateKey(privateKey: PrivateKey): DecryptedCredentials
Content copied to clipboard
fun EncryptedCredentials.decryptWithPKCS8PrivateKey(key: String): DecryptedCredentials
Content copied to clipboard
doInDecryptionContextWithPKCS8Key
Link copied to clipboard
inline fun <T> PassportData.doInDecryptionContextWithPKCS8Key(pkcs8Key: PrivateKey, expectedNonce: String? = null, crossinline block: SecureData.() -> T): T
Content copied to clipboard
inline fun <T> PassportData.doInDecryptionContextWithPKCS8Key(pkcs8Key: String, expectedNonce: String? = null, crossinline block: SecureData.() -> T): T
Content copied to clipboard