From 3dc822588f9c3d75762982724354b51403426ad3 Mon Sep 17 00:00:00 2001 From: Christopher Moore Date: Fri, 8 Jan 2016 01:12:27 +0000 Subject: [PATCH] add aes256-ctr encryption algorithm --- lib/net/ssh/transport/algorithms.rb | 3 ++- lib/net/ssh/transport/cipher_factory.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/net/ssh/transport/algorithms.rb b/lib/net/ssh/transport/algorithms.rb index cef241f6ca..c00f41d25d 100644 --- a/lib/net/ssh/transport/algorithms.rb +++ b/lib/net/ssh/transport/algorithms.rb @@ -28,7 +28,8 @@ module Net; module SSH; module Transport diffie-hellman-group1-sha1), :encryption => %w(aes128-cbc 3des-cbc blowfish-cbc cast128-cbc aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se - idea-cbc none arcfour128 arcfour256), + idea-cbc none arcfour128 arcfour256 + aes256-ctr), :hmac => %w(hmac-sha1 hmac-md5 hmac-sha1-96 hmac-md5-96 none), :compression => %w(none zlib@openssh.com zlib), :language => %w() diff --git a/lib/net/ssh/transport/cipher_factory.rb b/lib/net/ssh/transport/cipher_factory.rb index 2946aa0314..10c2d441a2 100644 --- a/lib/net/ssh/transport/cipher_factory.rb +++ b/lib/net/ssh/transport/cipher_factory.rb @@ -13,6 +13,7 @@ module Net; module SSH; module Transport "aes256-cbc" => "aes-256-cbc", "aes192-cbc" => "aes-192-cbc", "aes128-cbc" => "aes-128-cbc", + "aes256-ctr" => "aes-256-ecb", "idea-cbc" => "idea-cbc", "cast128-cbc" => "cast-cbc", "rijndael-cbc@lysator.liu.se" => "aes-256-cbc",