From e3d3796d33537e50efe2446bb8630b95a975a3bf Mon Sep 17 00:00:00 2001 From: olegkap_cp Date: Wed, 13 Jul 2011 14:41:13 +0000 Subject: [PATCH] Fix Aes -ctr algorithms Move hmac-md5 hashing algorithm into library --- .../Renci.SshNet.Silverlight.csproj | 9 + .../Renci.SshNet/ConnectionInfo.cs | 2 +- .../Renci.SshNet/Renci.SshNet.csproj | 11 +- .../Renci.SshNet/Security/CipherAESCTR.cs | 2 +- .../Security/Cryptography/HMAC.cs | 142 +++++++ .../Renci.SshNet/Security/Cryptography/MD5.cs | 383 ++++++++++++++++++ Renci.SshClient/Renci.SshNet/Security/HMac.cs | 2 +- .../Renci.SshNet/Security/HMacMD5.cs | 15 +- .../Renci.SshNet/Security/HMacSha1.cs | 13 +- 9 files changed, 565 insertions(+), 14 deletions(-) create mode 100644 Renci.SshClient/Renci.SshNet/Security/Cryptography/HMAC.cs create mode 100644 Renci.SshClient/Renci.SshNet/Security/Cryptography/MD5.cs diff --git a/Renci.SshClient/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj b/Renci.SshClient/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj index 95aabd6c..e2bc6a9a 100644 --- a/Renci.SshClient/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj +++ b/Renci.SshClient/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj @@ -441,6 +441,12 @@ Security\Cryptography\Ciphers\TwofishCipher.cs + + Security\Cryptography\HMAC.cs + + + Security\Cryptography\MD5.cs + Security\Cryptography\Modes\CbcMode.cs @@ -483,6 +489,9 @@ Security\HMac.cs + + Security\HMacMD5.cs + Security\HMacSha1.cs diff --git a/Renci.SshClient/Renci.SshNet/ConnectionInfo.cs b/Renci.SshClient/Renci.SshNet/ConnectionInfo.cs index d0860f6a..01e6a5d6 100644 --- a/Renci.SshClient/Renci.SshNet/ConnectionInfo.cs +++ b/Renci.SshClient/Renci.SshNet/ConnectionInfo.cs @@ -199,9 +199,9 @@ namespace Renci.SshNet /// Connection host. /// Connection port. /// Connection username. - /// is null. /// is invalid, or is null or contains whitespace characters. /// is not within and . + /// is null or empty. protected ConnectionInfo(string host, int port, string username) : this() { diff --git a/Renci.SshClient/Renci.SshNet/Renci.SshNet.csproj b/Renci.SshClient/Renci.SshNet/Renci.SshNet.csproj index 7d7dcfb9..d9b81b6a 100644 --- a/Renci.SshClient/Renci.SshNet/Renci.SshNet.csproj +++ b/Renci.SshClient/Renci.SshNet/Renci.SshNet.csproj @@ -130,6 +130,12 @@ Code + + Code + + + Code + Code @@ -157,9 +163,7 @@ Code - - Code - + Code @@ -381,7 +385,6 @@ -