--- a/src/freenet/crypt/ciphers/Rijndael.java	2007-01-08 12:15:56.000000000 -0600
+++ b/src/freenet/crypt/ciphers/Rijndael.java	2007-01-08 12:03:10.000000000 -0600
@@ -60,7 +60,7 @@
 	try {
 	    byte[] nkey=new byte[keysize>>3];
 	    System.arraycopy(key, 0, nkey, 0, nkey.length);
-	    sessionKey=Rijndael_Algorithm.makeKey(nkey);
+        sessionKey=Rijndael_Algorithm.makeKey(nkey, blocksize/8);
 	} catch (InvalidKeyException e) {
 	    e.printStackTrace();
 	    Logger.error(this,"Invalid key");
@@ -70,13 +70,13 @@
     public synchronized final void encipher(byte[] block, byte[] result) {
         if(block.length != blocksize/8)
             throw new IllegalArgumentException();
-	Rijndael_Algorithm.blockEncrypt(block, result, 0, sessionKey);
+	Rijndael_Algorithm.blockEncrypt(block, result, 0, sessionKey, blocksize/8);
     }
 
     public synchronized final void decipher(byte[] block, byte[] result) {
         if(block.length != blocksize/8)
             throw new IllegalArgumentException();
-	Rijndael_Algorithm.blockDecrypt(block, result, 0, sessionKey);
+	Rijndael_Algorithm.blockDecrypt(block, result, 0, sessionKey, blocksize/8);
     }
 
     public static void main(String[] args) throws UnsupportedCipherException {
