summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-30 22:59:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-30 22:59:40 +0000
commitd7f0b84ff29c3e24b7df7f0b3e8d7927bddf5034 (patch)
treef4ce7cc88c4ac916d79d861b9ecd384c62be43d4 /src/modules
parentbe692a499ec76b5496a49c41360bde80cc6a3866 (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree.cpp4
1 files changed, 2 insertions, 2 deletions
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;