浏览代码

Adding ChaCha20 to FuncToSsh2Cipher

Source commit: 32046d5426a6844e4e66e80a46221eea11b56cc8
Martin Prikryl 9 年之前
父节点
当前提交
92bf73b90c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      source/core/SecureShell.cpp

+ 2 - 2
source/core/SecureShell.cpp

@@ -2019,8 +2019,8 @@ TCipher __fastcall TSecureShell::FuncToSsh1Cipher(const void * Cipher)
 TCipher __fastcall TSecureShell::FuncToSsh2Cipher(const void * Cipher)
 {
   const ssh2_ciphers *CipherFuncs[] =
-    {&ssh2_3des, &ssh2_des, &ssh2_aes, &ssh2_blowfish, &ssh2_arcfour};
-  const TCipher TCiphers[] = {cip3DES, cipDES, cipAES, cipBlowfish, cipArcfour};
+    {&ssh2_3des, &ssh2_des, &ssh2_aes, &ssh2_blowfish, &ssh2_arcfour, &ssh2_ccp};
+  const TCipher TCiphers[] = {cip3DES, cipDES, cipAES, cipBlowfish, cipArcfour, cipChaCha20};
   DebugAssert(LENOF(CipherFuncs) == LENOF(TCiphers));
   TCipher Result = cipWarn;