fix: ssh с ed25519 ключами
This commit is contained in:
1 parent
b2b5f4a521
commit
102ef6febf
4 files changed
+18
No files matched your search
@@ -54,6 +54,7 @@ kotlin {
|
||||
dependencies {
|
||||
implementation(libs.androidx.core.splashscreen)
|
||||
implementation(libs.jsch)
|
||||
implementation(libs.eddsa)
|
||||
implementation(libs.kotlinx.coroutines.android)
|
||||
implementation(libs.androidx.security.crypto)
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
||||
|
||||
<application
|
||||
android:name=".App"
|
||||
android:allowBackup="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.freeturn.app
|
||||
|
||||
import android.app.Application
|
||||
import net.i2p.crypto.eddsa.EdDSASecurityProvider
|
||||
import java.security.Security
|
||||
|
||||
class App : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
if (Security.getProvider("EdDSA") == null) {
|
||||
Security.addProvider(EdDSASecurityProvider())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@ coreSplashscreen = "1.2.0"
|
||||
jsch = "2.28.0"
|
||||
coroutinesAndroid = "1.10.2"
|
||||
securityCrypto = "1.1.0"
|
||||
eddsa = "0.3.0"
|
||||
|
||||
[libraries]
|
||||
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||||
@@ -32,6 +33,7 @@ androidx-lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lif
|
||||
androidx-core-splashscreen = { group = "androidx.core", name = "core-splashscreen", version.ref = "coreSplashscreen" }
|
||||
androidx-security-crypto = { group = "androidx.security", name = "security-crypto", version.ref = "securityCrypto" }
|
||||
jsch = { group = "com.github.mwiede", name = "jsch", version.ref = "jsch" }
|
||||
eddsa = { group = "net.i2p.crypto", name = "eddsa", version.ref = "eddsa" }
|
||||
kotlinx-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutinesAndroid" }
|
||||
|
||||
[plugins]
|
||||
|
||||
Reference in new issue
Block a user