From cc106ee1577d92880091f99fb5dbf0eed2ce66ac Mon Sep 17 00:00:00 2001 From: Robert Hague Date: Tue, 10 Sep 2024 19:29:22 +0200 Subject: [PATCH 1/3] PrivateKeyFile stuff --- Directory.Build.props | 2 +- src/Renci.SshNet/PrivateKeyFile.cs | 69 ++- src/Renci.SshNet/Renci.SshNet.csproj | 4 + ...ey.OPENSSH.ECDSA.Encrypted.Aes.128.CTR.txt | 9 + ...PENSSH.ECDSA.Encrypted.Aes.128.CTR.txt.pub | 1 + ...OPENSSH.ECDSA384.Encrypted.Aes.256.GCM.txt | 11 + ...SSH.ECDSA384.Encrypted.Aes.256.GCM.txt.pub | 1 + ...OPENSSH.ECDSA521.Encrypted.Aes.192.CBC.txt | 12 + ...SSH.ECDSA521.Encrypted.Aes.192.CBC.txt.pub | 1 + ....OPENSSH.ED25519.Encrypted.Aes.128.CTR.pub | 1 - ....OPENSSH.ED25519.Encrypted.Aes.128.CTR.txt | 8 - ....OPENSSH.ED25519.Encrypted.Aes.192.CBC.pub | 1 - ....OPENSSH.ED25519.Encrypted.Aes.192.CBC.txt | 8 - ....OPENSSH.ED25519.Encrypted.Aes.192.CTR.pub | 1 - ....OPENSSH.ED25519.Encrypted.Aes.192.CTR.txt | 8 - ....OPENSSH.ED25519.Encrypted.Aes.256.GCM.pub | 1 - ....OPENSSH.ED25519.Encrypted.Aes.256.GCM.txt | 8 - .../Key.OPENSSH.RSA.Encrypted.Aes.192.CTR.txt | 39 ++ ....OPENSSH.RSA.Encrypted.Aes.192.CTR.txt.pub | 1 + .../Classes/PrivateKeyFileTest.cs | 545 +++--------------- 20 files changed, 188 insertions(+), 543 deletions(-) create mode 100644 test/Data/Key.OPENSSH.ECDSA.Encrypted.Aes.128.CTR.txt create mode 100644 test/Data/Key.OPENSSH.ECDSA.Encrypted.Aes.128.CTR.txt.pub create mode 100644 test/Data/Key.OPENSSH.ECDSA384.Encrypted.Aes.256.GCM.txt create mode 100644 test/Data/Key.OPENSSH.ECDSA384.Encrypted.Aes.256.GCM.txt.pub create mode 100644 test/Data/Key.OPENSSH.ECDSA521.Encrypted.Aes.192.CBC.txt create mode 100644 test/Data/Key.OPENSSH.ECDSA521.Encrypted.Aes.192.CBC.txt.pub delete mode 100644 test/Data/Key.OPENSSH.ED25519.Encrypted.Aes.128.CTR.pub delete mode 100644 test/Data/Key.OPENSSH.ED25519.Encrypted.Aes.128.CTR.txt delete mode 100644 test/Data/Key.OPENSSH.ED25519.Encrypted.Aes.192.CBC.pub delete mode 100644 test/Data/Key.OPENSSH.ED25519.Encrypted.Aes.192.CBC.txt delete mode 100644 test/Data/Key.OPENSSH.ED25519.Encrypted.Aes.192.CTR.pub delete mode 100644 test/Data/Key.OPENSSH.ED25519.Encrypted.Aes.192.CTR.txt delete mode 100644 test/Data/Key.OPENSSH.ED25519.Encrypted.Aes.256.GCM.pub delete mode 100644 test/Data/Key.OPENSSH.ED25519.Encrypted.Aes.256.GCM.txt create mode 100644 test/Data/Key.OPENSSH.RSA.Encrypted.Aes.192.CTR.txt create mode 100644 test/Data/Key.OPENSSH.RSA.Encrypted.Aes.192.CTR.txt.pub diff --git a/Directory.Build.props b/Directory.Build.props index 1480717e0..c11fdb7a3 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -32,7 +32,7 @@ Disable nullable warnings on old frameworks because of missing annotations. --> - $(NoWarn);CS8602 + $(NoWarn);CS8602;CS8604 - $(NoWarn);CS8602;CS8604 + $(NoWarn);CS8602;CS8604;CS8777