From d7f0b84ff29c3e24b7df7f0b3e8d7927bddf5034 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 30 Dec 2005 22:59:40 +0000 Subject: TEST CODE: CBC encryption type in AES rather than ECB git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2710 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 9841cd4cf..369a175e7 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1250,7 +1250,7 @@ class TreeSocket : public InspSocket if ((nbytes > 0) && (nbytes < 1024)) { log(DEBUG,"m_spanningtree: decrypt %d bytes",nbytes); - ctx->Decrypt(out, result, nbytes, 0); + ctx->Decrypt(out, result, nbytes, 1); for (int t = 0; t < nbytes; t++) if (result[t] == '\7') result[t] = 0; ret = result; @@ -1284,7 +1284,7 @@ class TreeSocket : public InspSocket } unsigned int ll = line.length(); log(DEBUG,"Plaintext line with padding = %d chars",ll); - ctx->Encrypt(line.c_str(), result, ll, 0); + ctx->Encrypt(line.c_str(), result, ll, 1); log(DEBUG,"Encrypted."); to64frombits((unsigned char*)result64,(unsigned char*)result,ll); line = result64; -- cgit v1.2.3