From 97b3577a463966e93d24649ff348fc4bb6825e50 Mon Sep 17 00:00:00 2001 From: Aditya Wasan Date: Sun, 2 Apr 2023 14:04:33 -0400 Subject: Refactor SSHKey into a separate module (#2450) * refactor(ssh): add `ssh` module Signed-off-by: Aditya Wasan * refactor(ssh): add `SSHKey` data class Signed-off-by: Aditya Wasan * refactor(ssh): add `SSHKeyType` enum Signed-off-by: Aditya Wasan * refactor(ssh): add `SSHKeyAlgorithm` class Signed-off-by: Aditya Wasan * refactor(ssh): add class to generate `RSA` key Signed-off-by: Aditya Wasan * chore(ssh): add required dependencies Signed-off-by: Aditya Wasan * refactor(ssh): add `ECDSAKeyGenerator` and remove constants Signed-off-by: Aditya Wasan * refactor(ssh): add utilities Signed-off-by: Aditya Wasan * feat(ssh): add `SSHKeyWriter` Signed-off-by: Aditya Wasan * refactor(ssh): make ssh key generators suspending Signed-off-by: Aditya Wasan * fix(ssh): fix explicit API violations * feat: complete `ED25519KeyWriter` implementation Signed-off-by: Aditya Wasan * factor(ssh/writer): update writer interface Signed-off-by: Aditya Wasan * feat(ssh/provider): add providers for different key types Signed-off-by: Aditya Wasan * feat(ssh): add SSHKeyManager for common key functionality Signed-off-by: Aditya Wasan * feat(ssh): add remaining methods to reach feature parity with old SSH implementation Signed-off-by: Aditya Wasan * wip(app): start using SSHKeyManager instead of SSHKey class Signed-off-by: Aditya Wasan Signed-off-by: Harsh Shandilya * refactor(ssh): update package name Signed-off-by: Aditya Wasan * chore(ssh): fix detekt warnings Signed-off-by: Aditya Wasan * chore: fixes across the board --------- Signed-off-by: Aditya Wasan Signed-off-by: Harsh Shandilya Co-authored-by: Harsh Shandilya --- app/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) (limited to 'app/build.gradle.kts') diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5d005676..c6ca5871 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -50,6 +50,7 @@ dependencies { implementation(projects.formatCommon) implementation(projects.passgen.diceware) implementation(projects.passgen.random) + implementation(projects.ssh) implementation(projects.uiCompose) implementation(libs.androidx.activity.ktx) implementation(libs.androidx.activity.compose) -- cgit v1.2.3