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 --- settings.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'settings.gradle.kts') diff --git a/settings.gradle.kts b/settings.gradle.kts index 211653de..13c7212a 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -186,3 +186,5 @@ include("passgen:random") include("sentry-stub") include("ui-compose") + +include("ssh") -- cgit v1.2.3