]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/aes.cpp
Remove an extern, partly because it's unused, partly because it then gets shadowed...
[user/henk/code/inspircd.git] / src / aes.cpp
index 25f29d4bac58807b23014a3a3e01abbc4fea0da6..033d8beb29351710600128a65fbe746c73830547 100644 (file)
@@ -1,5 +1,21 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ *                       E-mail:
+ *                <brain@chatspike.net>
+ *                <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
 
-//Rijndael.cpp
+// Based on existing implementations of the industry standard AES algorithms
+// in the public domain.
 
 #include <cstring>
 #include "aes.h"
@@ -1451,11 +1467,11 @@ int from64tobits(char *out, const char *in, int maxlen)
        {
            ++len;
            if (maxlen && len > maxlen)
-               return(-1);
+                       return(-1);
            *out++ = ((DECODE64(digit2) << 4) & 0xf0) | (DECODE64(digit3) >> 2);
            if (digit4 != '=')
            {
-               ++len;
+                       ++len;
                if (maxlen && len > maxlen)
                    return(-1);
                *out++ = ((DECODE64(digit3) << 6) & 0xc0) | DECODE64(digit4);