# dev.inmo.tgbotapi.utils.passport

docs

# Package dev.inmo.tgbotapi.utils.passport

## Types

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

## Functions

createDecryptor
Link copied to clipboard
fun EndDataCredentials . createDecryptor (): Decryptor
Content copied to clipboard
fun Pair <SourceBytes, SourceBytes>. createDecryptor (): Decryptor
Content copied to clipboard
decryptData
Link copied to clipboard
fun EndDataCredentials . decryptData (bytes: EncryptedData): SourceBytes
Content copied to clipboard
decryptFile
Link copied to clipboard
fun FileCredentials . decryptFile (fileBytes: ByteArray ): SourceBytes
Content 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